Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 842492 - games-action/polymc-1.2.1: minecraft needs dev-java/lwjgl from java overlay
Summary: games-action/polymc-1.2.1: minecraft needs dev-java/lwjgl from java overlay
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thiago
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-03 21:11 UTC by korte
Modified: 2022-05-18 18:33 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description korte 2022-05-03 21:11:53 UTC
polymc is lacking the dependency lwjgl. My system is a Pi400, arm64.
I got the first hint for polymc at https://bugs.gentoo.org/826906#c9


[22:52:26] [Render thread/INFO]: [STDERR]: [LWJGL] Failed to load a library. Possible solutions:
	a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
	b) Add the JAR that contains the shared library to the classpath.
[22:52:26] [Render thread/INFO]: [STDERR]: [LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[22:52:26] [Render thread/INFO]: [STDERR]: [LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.




 Whole log:


PolyMC version: 1.2.1-5adcc261


Launched instance in online mode

authserver.mojang.com resolves to:
    [52.84.51.50, 52.84.51.42, 52.84.51.34, 52.84.51.43]

session.minecraft.net resolves to:
    [34.192.124.100, 107.23.156.212, 34.197.136.50]

textures.minecraft.net resolves to:
    [54.230.206.27, 54.230.206.109, 54.230.206.105, 54.230.206.126]

api.mojang.com resolves to:
    [54.230.206.121, 54.230.206.38, 54.230.206.57, 54.230.206.36]


Minecraft folder is:
/home/j/.local/share/PolyMC/instances/1.17/.minecraft


Java path is:
/opt/openjdk-bin-17.0.2_p8/bin/java


Checking Java version...
Java is version 17.0.2, using aarch64 architecture, from Eclipse Adoptium.


Your Java architecture is not matching your system architecture. You might want to install a 64bit Java version.


OpenGL version string: 2.1 Mesa 21.3.7

Main Class:
  net.minecraft.client.main.Main

Native path:
  /home/j/.local/share/PolyMC/instances/1.17/natives

Traits:
traits FirstThreadOnMacOS
traits XR:Initial

Libraries:
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/blocklist/1.0.5/blocklist-1.0.5.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/patchy/2.1.6/patchy-2.1.6.jar
  /home/j/.local/share/PolyMC/libraries/com/github/oshi/oshi-core/5.7.4/oshi-core-5.7.4.jar
  /home/j/.local/share/PolyMC/libraries/net/java/dev/jna/jna/5.8.0/jna-5.8.0.jar
  /home/j/.local/share/PolyMC/libraries/net/java/dev/jna/jna-platform/5.8.0/jna-platform-5.8.0.jar
  /home/j/.local/share/PolyMC/libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar
  /home/j/.local/share/PolyMC/libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.17.1/log4j-slf4j18-impl-2.17.1.jar
  /home/j/.local/share/PolyMC/libraries/com/ibm/icu/icu4j/66.1/icu4j-66.1.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/javabridge/1.1.23/javabridge-1.1.23.jar
  /home/j/.local/share/PolyMC/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar
  /home/j/.local/share/PolyMC/libraries/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar
  /home/j/.local/share/PolyMC/libraries/com/google/guava/guava/21.0/guava-21.0.jar
  /home/j/.local/share/PolyMC/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar
  /home/j/.local/share/PolyMC/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar
  /home/j/.local/share/PolyMC/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/datafixerupper/4.0.26/datafixerupper-4.0.26.jar
  /home/j/.local/share/PolyMC/libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/authlib/2.3.31/authlib-2.3.31.jar
  /home/j/.local/share/PolyMC/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
  /home/j/.local/share/PolyMC/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar
  /home/j/.local/share/PolyMC/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
  /home/j/.local/share/PolyMC/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar
  /home/j/.local/share/PolyMC/libraries/it/unimi/dsi/fastutil/8.2.1/fastutil-8.2.1.jar
  /home/j/.local/share/PolyMC/libraries/org/apache/logging/log4j/log4j-api/2.17.1/log4j-api-2.17.1.jar
  /home/j/.local/share/PolyMC/libraries/org/apache/logging/log4j/log4j-core/2.17.1/log4j-core-2.17.1.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/minecraft/1.17/minecraft-1.17-client.jar

Native libraries:
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2-natives-linux.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2-natives-linux.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2-natives-linux.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2-natives-linux.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2-natives-linux.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2-natives-linux.jar
  /home/j/.local/share/PolyMC/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2-natives-linux.jar
  /home/j/.local/share/PolyMC/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3-natives-linux.jar

Params:
  --username  --version PolyMC --gameDir /home/j/.local/share/PolyMC/instances/1.17/.minecraft --assetsDir /home/j/.local/share/PolyMC/assets --assetIndex 1.17 --uuid  --accessToken  --userType  --versionType release

Window size: 854 x 480

Java Arguments:
[-Xms512m, -Xmx3101m, -Duser.language=en]


Minecraft process ID: 17625


Using onesix launcher.

[22:45:09] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[22:48:55] [Render thread/ERROR]: Failed to verify authentication
com.mojang.authlib.exceptions.AuthenticationException: com.mojang.authlib.exceptions.MinecraftClientException: Failed to read from https://api.minecraftservices.com/privileges due to null
	at com.mojang.authlib.exceptions.MinecraftClientException.toAuthenticationException(MinecraftClientException.java:28) ~[authlib-2.3.31.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:116) ~[authlib-2.3.31.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.<init>(YggdrasilSocialInteractionsService.java:42) ~[authlib-2.3.31.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createSocialInteractionsService(YggdrasilAuthenticationService.java:151) ~[authlib-2.3.31.jar:?]
	at dvo.a(SourceFile:672) [minecraft-1.17-client.jar:?]
	at dvo.<init>(SourceFile:431) [minecraft-1.17-client.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:179) [minecraft-1.17-client.jar:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) [NewLaunch.jar:?]
	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) [NewLaunch.jar:?]
	at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?]
	at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?]
Caused by: com.mojang.authlib.exceptions.MinecraftClientException: Failed to read from https://api.minecraftservices.com/privileges due to null
	at com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:85) ~[authlib-2.3.31.jar:?]
	at com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:47) ~[authlib-2.3.31.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:104) ~[authlib-2.3.31.jar:?]
	... 13 more
Caused by: java.net.SocketTimeoutException
	at java.net.SocksSocketImpl.remainingMillis(SocksSocketImpl.java:110) ~[?:?]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
	at java.net.Socket.connect(Socket.java:633) ~[?:?]
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:299) ~[?:?]
	at sun.net.NetworkClient.doConnect(NetworkClient.java:178) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:498) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:603) ~[?:?]
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:896) ~[?:?]
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:726) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1688) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?]
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529) ~[?:?]
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:308) ~[?:?]
	at com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:64) ~[authlib-2.3.31.jar:?]
	at com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:47) ~[authlib-2.3.31.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:104) ~[authlib-2.3.31.jar:?]
	... 13 more
[22:49:52] [Render thread/INFO]: Setting user: xxx
[22:52:26] [Render thread/INFO]: [STDERR]: [LWJGL] Failed to load a library. Possible solutions:
	a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
	b) Add the JAR that contains the shared library to the classpath.
[22:52:26] [Render thread/INFO]: [STDERR]: [LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[22:52:26] [Render thread/INFO]: [STDERR]: [LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
[22:54:23] [Render thread/INFO]: [STDERR]: Failed to start Minecraft:
[22:54:45] [Render thread/INFO]: [STDERR]: java.lang.reflect.InvocationTargetException
[22:54:45] [Render thread/INFO]: [STDERR]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[22:54:45] [Render thread/INFO]: [STDERR]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[22:54:45] [Render thread/INFO]: [STDERR]: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[22:54:45] [Render thread/INFO]: [STDERR]: 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[22:54:45] [Render thread/INFO]: [STDERR]: 	at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
[22:54:45] [Render thread/INFO]: [STDERR]: 	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
[22:54:45] [Render thread/INFO]: [STDERR]: 	at org.multimc.EntryPoint.listen(EntryPoint.java:143)
[22:54:45] [Render thread/INFO]: [STDERR]: 	at org.multimc.EntryPoint.main(EntryPoint.java:34)
[22:54:46] [Render thread/INFO]: [STDERR]: Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.glfw.GLFW
[22:54:46] [Render thread/INFO]: [STDERR]: 	at com.mojang.blaze3d.platform.GLX.getOpenGLVersionString(SourceFile:35)
[22:54:46] [Render thread/INFO]: [STDERR]: 	at com.mojang.blaze3d.systems.RenderSystem.getApiDescription(SourceFile:770)
[22:54:46] [Render thread/INFO]: [STDERR]: 	at ac.a(SourceFile:65)
[22:54:46] [Render thread/INFO]: [STDERR]: 	at dvo.a(SourceFile:2418)
[22:54:46] [Render thread/INFO]: [STDERR]: 	at dvo.a(SourceFile:2412)
[22:54:46] [Render thread/INFO]: [STDERR]: 	at net.minecraft.client.main.Main.main(SourceFile:187)
[22:54:46] [Render thread/INFO]: [STDERR]: 	... 8 more
[22:54:46] [Render thread/INFO]: [STDOUT]: Exiting with -1
Der Prozess wurde mit Status 255 beendet.
Clipboard copy at: 03 May 2022 23:00:30 +0200
Comment 1 Andrew Nowa Ammerlaan gentoo-dev 2022-05-04 08:34:31 UTC
Lwjgl is handled by the launcher itself, you can select which version to use in "Edit Instance --> Version --> Select lwjgl --> Change version". Some Minecraft versions, java versions, or modpacks require specific versions of lwjgl. 

As far as I know it is currently not possible to use a system version of lwjgl.
Comment 2 Andrew Nowa Ammerlaan gentoo-dev 2022-05-04 08:42:06 UTC
> My system is a Pi400, arm64.

arm/arm64 is going to require a lwjgl version compiled specifically for these architectures. That it fails to load the lwjgl library probably indicates that there currently is no proper support for arm/arm64 yet. What you can try is to select "Edit Instance --> Version --> Select lwjgl --> Customize". If you now press "Edit" you can maybe change the url's to download a custom arm64 version of lwjgl.
Comment 3 Carson Rueter 2022-05-04 11:51:03 UTC
Correct, PolyMC manages its own LWJGL. However, ARM support was added in LWJGL 3.3.0 and that's not yet used by Minecraft I believe.