failed to load the required native library #40

Closed
opened 2023-12-16 05:30:42 +02:00 by linearcurve · 3 comments

ran on a 2020 m1 mbp 13-inch; my assumption from knowing very little about what's going is that something relating to the architecture is causing the malformed url https://natives.e4mc.link/libnetty_quiche_osx_aarch_64_49.dylib to be queried instead of whatever the correct one should be (osx_aarch_64.dylib?). hope this helps!

[22:22:12] [Render thread/INFO]:
 Using default channel type
[22:22:12] [Render thread/INFO]:
 Using default channel type
[22:22:12] [Thread-10/INFO]:
 req: https://broker.e4mc.link/getBestRelay GET
[22:22:12] [Render thread/INFO]:
 Started serving on 49851
[22:22:12] [Render thread/INFO]:
 [System] [CHAT] Local game hosted on port [49851]
[22:22:12] [Thread-10/INFO]:
 resp: (GET https://broker.e4mc.link/getBestRelay) 200
[22:22:12] [Thread-10/INFO]:
 using relay us
[22:22:13] [Thread-10/ERROR]:
 Uncaught exception in thread "Thread-10"
java.lang.UnsatisfiedLinkError: failed to load the required native library
	at io.netty.incubator.codec.quic.Quic.ensureAvailability(Quic.java:78) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at io.netty.incubator.codec.quic.QuicheQuicSslContext.<init>(QuicheQuicSslContext.java:75) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at io.netty.incubator.codec.quic.QuicSslContextBuilder.build(QuicSslContextBuilder.java:374) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at vg.skye.e4mc_minecraft.QuiclimeHandler.start(QuiclimeHandler.kt:198) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at vg.skye.e4mc_minecraft.QuiclimeHandler$startAsync$1.invoke(QuiclimeHandler.kt:176) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at vg.skye.e4mc_minecraft.QuiclimeHandler$startAsync$1.invoke(QuiclimeHandler.kt:175) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30) ~[org_jetbrains_kotlin_kotlin-stdlib-1.9.21-d9da54c5981884e9.jar:?]
Caused by: java.lang.ExceptionInInitializerError
	at io.netty.incubator.codec.quic.Quic.<clinit>(Quic.java:43) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	... 6 more
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: https://natives.e4mc.link/libnetty_quiche_osx_aarch_64_49.dylib
	at io.netty.incubator.codec.quic.Quiche.loadNativeLibrary(Quiche.java:98) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at io.netty.incubator.codec.quic.Quiche.<clinit>(Quiche.java:61) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at io.netty.incubator.codec.quic.Quic.<clinit>(Quic.java:43) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	... 6 more
Caused by: java.io.FileNotFoundException: https://natives.e4mc.link/libnetty_quiche_osx_aarch_64_49.dylib
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[?:?]
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:?]
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) ~[?:?]
	at java.net.URL.openStream(Unknown Source) ~[?:?]
	at io.netty.incubator.codec.quic.Quiche.loadNativeLibrary(Quiche.java:91) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at io.netty.incubator.codec.quic.Quiche.<clinit>(Quiche.java:61) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	at io.netty.incubator.codec.quic.Quic.<clinit>(Quic.java:43) ~[e4mc-4.0.1+1.19.4-fabric.jar:?]
	... 6 more
ran on a 2020 m1 mbp 13-inch; my assumption from knowing very little about what's going is that something relating to the architecture is causing the malformed url `https://natives.e4mc.link/libnetty_quiche_osx_aarch_64_49.dylib` to be queried instead of whatever the correct one should be (`osx_aarch_64.dylib`?). hope this helps! ``` [22:22:12] [Render thread/INFO]: Using default channel type [22:22:12] [Render thread/INFO]: Using default channel type [22:22:12] [Thread-10/INFO]: req: https://broker.e4mc.link/getBestRelay GET [22:22:12] [Render thread/INFO]: Started serving on 49851 [22:22:12] [Render thread/INFO]: [System] [CHAT] Local game hosted on port [49851] [22:22:12] [Thread-10/INFO]: resp: (GET https://broker.e4mc.link/getBestRelay) 200 [22:22:12] [Thread-10/INFO]: using relay us [22:22:13] [Thread-10/ERROR]: Uncaught exception in thread "Thread-10" java.lang.UnsatisfiedLinkError: failed to load the required native library at io.netty.incubator.codec.quic.Quic.ensureAvailability(Quic.java:78) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at io.netty.incubator.codec.quic.QuicheQuicSslContext.<init>(QuicheQuicSslContext.java:75) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at io.netty.incubator.codec.quic.QuicSslContextBuilder.build(QuicSslContextBuilder.java:374) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at vg.skye.e4mc_minecraft.QuiclimeHandler.start(QuiclimeHandler.kt:198) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at vg.skye.e4mc_minecraft.QuiclimeHandler$startAsync$1.invoke(QuiclimeHandler.kt:176) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at vg.skye.e4mc_minecraft.QuiclimeHandler$startAsync$1.invoke(QuiclimeHandler.kt:175) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30) ~[org_jetbrains_kotlin_kotlin-stdlib-1.9.21-d9da54c5981884e9.jar:?] Caused by: java.lang.ExceptionInInitializerError at io.netty.incubator.codec.quic.Quic.<clinit>(Quic.java:43) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] ... 6 more Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: https://natives.e4mc.link/libnetty_quiche_osx_aarch_64_49.dylib at io.netty.incubator.codec.quic.Quiche.loadNativeLibrary(Quiche.java:98) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at io.netty.incubator.codec.quic.Quiche.<clinit>(Quiche.java:61) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at io.netty.incubator.codec.quic.Quic.<clinit>(Quic.java:43) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] ... 6 more Caused by: java.io.FileNotFoundException: https://natives.e4mc.link/libnetty_quiche_osx_aarch_64_49.dylib at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:?] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) ~[?:?] at java.net.URL.openStream(Unknown Source) ~[?:?] at io.netty.incubator.codec.quic.Quiche.loadNativeLibrary(Quiche.java:91) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at io.netty.incubator.codec.quic.Quiche.<clinit>(Quiche.java:61) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] at io.netty.incubator.codec.quic.Quic.<clinit>(Quic.java:43) ~[e4mc-4.0.1+1.19.4-fabric.jar:?] ... 6 more ```
Owner

oh hey fuck it should be jnilib not dylib
will fix that up on CDN side

oh hey fuck it should be jnilib not dylib will fix that up on CDN side
Owner

can you verify this is fixed? I... don't own an Apple Silicon Mac, but Intel Mac seems to be working now

can you verify this is fixed? I... don't own an Apple Silicon Mac, but Intel Mac seems to be working now
Owner

assuming this is fixed

assuming this is fixed
me closed this issue 2024-01-20 16:13:28 +02:00
Sign in to join this conversation.
No description provided.