Closed runlevel5 closed 1 year ago
Hi @runlevel5, what are the contents of /Users/tle/Library/Application Support/PolyMC/instances/1.20.2/natives
?
I'm not familiar with the launcher but since there are no entries under the Native libraries:
section, this looks like a PolyMC issue.
Hi @runlevel5, what are the contents of /Users/tle/Library/Application Support/PolyMC/instances/1.20.2/natives?
There is no such folder.
I've reported the bug with PolyMC and waiting for their responses.
@TheMrMilchmann I believe this issue might be related to the JAR that upstream Mojang (Minecraft company) is using.
I would like to ask where I could download the official JARs? I could try to compare the checksum to confirm if Mojang employs the same packages or build everything from scratches themselves.
You can find official builds on Maven Central. However, I doubt that Mojang modifies them in any relevant way.
You are facing the error because LWJGL cannot load shared native libraries. LWJGL can load these in various ways and the logs are a bit lacking but here is what I believe is happening: In your message, you stated that Minecraft uses the org.lwjgl:lwjgl-{binding}-natives-macos-arm64:3.3.2
artifacts, but those are not mentioned anywhere in the logs. While LWJGL can load native libraries from JARs at runtime, the preferred way is to extract them to directories. This is where the /Users/tle/Library/Application Support/PolyMC/instances/1.20.2/natives
directory comes in. However, for some reason, your launcher fails to extract the shared libraries properly. Thus, the directory is empty and LWJGL cannot find any natives.
If you want to work around this issue, you could try extracting the dylibs into the specified directory yourself or adding the natives-macos-arm64
artifacts to the list of libraries.
@TheMrMilchmann Great thanks for the advice. Let me dig in and come back to you
@TheMrMilchmann it is definitely the issue of PolyMC. I am closing this ticket now.
Version
3.3.2
Platform
macOS arm64
JDK
OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
Module
LWJGL core
Bug description
The Minecraft 1.20.2 uses following modules:
org.lwjgl:lwjgl-glfw-natives-macos-arm64:3.3.2
org.lwjgl:lwjgl-jemalloc-natives-macos-arm64:3.3.2
org.lwjgl:lwjgl-natives-macos-arm64:3.3.2
org.lwjgl:lwjgl-openal-natives-macos-arm64:3.3.2
org.lwjgl:lwjgl-opengl-natives-macos-arm64:3.3.2
org.lwjgl:lwjgl-stb-natives-macos-arm64:3.3.2
org.lwjgl:lwjgl-tinyfd-natives-macos-arm64:3.3.2
NOTE: The JAR files are downloaded from minecraft server
https://libraries.minecraft.net/org/lwjgl/lwjgl-<NAME>/3.3.2/
. So I am unsure if they are exactly the same to the official JAR https://libraries.io/maven/org.lwjgl:lwjgl/3.3.2when I try to run it, I got following error:
The games run fine with v3.3.1 and so I could conclude the issue is definitely caused by 3.3.2
Stacktrace or crash log output