Simple Voice Chat

Simple Voice Chat

31M Downloads

opus class load errors on client when starting and connecting to server Apple Silicon M1

jason-green-io opened this issue ยท 1 comments

commented

Minecraft 1.17.1
fabric API 0.361+17
version 1.17.1-1.0.0

java:
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+10)
OpenJDK 64-Bit Server VM (build 16.0.1+10, mixed mode)

If you don't have the hardware, I'm willing to jump through hoops for you if it's just a matter of getting it to recognize the architecture.

I get this when I join a server:

[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: java.lang.UnsatisfiedLinkError: /Users/greener/Library/Caches/JNA/temp/jna13755703148013468449.tmp: dlopen(/Users/greener/Library/Caches/JNA/temp/jna13755703148013468449.tmp, 1): no suitable image found.  Did find:
	/Users/greener/Library/Caches/JNA/temp/jna13755703148013468449.tmp: no matching architecture in universal wrapper
	/Users/greener/Library/Caches/JNA/temp/jna13755703148013468449.tmp: no matching architecture in universal wrapper
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2383)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at java.base/java.lang.Runtime.load0(Runtime.java:746)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at java.base/java.lang.System.load(System.java:1857)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at com.sun.jna.Native.<clinit>(Native.java:195)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:87)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.opus4j.Opus.<clinit>(Opus.java:16)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.common.OpusEncoder.<init>(OpusEncoder.java:23)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.MicThread.<init>(MicThread.java:26)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.Client.startMicThread(Client.java:133)
[14:41:26] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.Client.run(Client.java:150)
[14:41:36] [Render thread/INFO]: Received secret
[14:41:36] [Render thread/INFO]: Disconnecting client
[14:41:36] [Render thread/INFO]: Connecting to server: 'overworld.greener.ca:24454'
[14:41:36] [Render thread/INFO]: Setting sample rate to 48000 Hz, codec to VOIP and frame size to 1920 bytes
[14:41:36] [VoiceChatAuthenticationThread/INFO]: Trying to authenticate voice connection
[14:41:36] [VoiceChatClientThread/INFO]: Server acknowledged authentication
[14:41:36] [VoiceChatClientThread/INFO]: [STDERR]: java.lang.NoClassDefFoundError: Could not initialize class de.maxhenkel.opus4j.Opus
[14:41:36] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.common.OpusEncoder.<init>(OpusEncoder.java:23)
[14:41:36] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.MicThread.<init>(MicThread.java:26)
[14:41:36] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.Client.startMicThread(Client.java:133)
[14:41:36] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.Client.run(Client.java:150)
[14:41:46] [Render thread/INFO]: Received secret
[14:41:46] [Render thread/INFO]: Disconnecting client
[14:41:46] [Render thread/INFO]: Connecting to server: 'overworld.greener.ca:24454'
[14:41:46] [Render thread/INFO]: Setting sample rate to 48000 Hz, codec to VOIP and frame size to 1920 bytes
[14:41:46] [VoiceChatAuthenticationThread/INFO]: Trying to authenticate voice connection
[14:41:46] [VoiceChatClientThread/INFO]: Server acknowledged authentication
[14:41:46] [VoiceChatClientThread/INFO]: [STDERR]: java.lang.NoClassDefFoundError: Could not initialize class de.maxhenkel.opus4j.Opus
[14:41:46] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.common.OpusEncoder.<init>(OpusEncoder.java:23)
[14:41:46] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.MicThread.<init>(MicThread.java:26)
[14:41:46] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.Client.startMicThread(Client.java:133)
[14:41:46] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.Client.run(Client.java:150)
[14:41:56] [Render thread/INFO]: Received secret
[14:41:56] [Render thread/INFO]: Disconnecting client
[14:41:56] [Render thread/INFO]: Connecting to server: 'overworld.greener.ca:24454'
[14:41:56] [Render thread/INFO]: Setting sample rate to 48000 Hz, codec to VOIP and frame size to 1920 bytes
[14:41:56] [VoiceChatAuthenticationThread/INFO]: Trying to authenticate voice connection
[14:41:56] [VoiceChatClientThread/INFO]: Server acknowledged authentication
[14:41:56] [VoiceChatClientThread/INFO]: [STDERR]: java.lang.NoClassDefFoundError: Could not initialize class de.maxhenkel.opus4j.Opus
[14:41:56] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.common.OpusEncoder.<init>(OpusEncoder.java:23)
[14:41:56] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.MicThread.<init>(MicThread.java:26)
[14:41:56] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.Client.startMicThread(Client.java:133)
[14:41:56] [VoiceChatClientThread/INFO]: [STDERR]: 	at de.maxhenkel.voicechat.voice.client.Client.run(Client.java:150)
commented

Please use a template when creating an issue.