Bug 231017 - games/minecraft-client: (1.13) can't find lwjgl
Summary: games/minecraft-client: (1.13) can't find lwjgl
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-30 09:34 UTC by Johannes Lundberg
Modified: 2022-08-21 20:36 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Lundberg 2018-08-30 09:34:11 UTC
Minecraft fails to start because it can't find lwjgl.

Describes in this forum thread:

https://forums.freebsd.org/threads/minecraft-11-2-failed-to-locate-library-liblwjgl-so.66923/

In my case, FreeBSD 12.0-ALPHA2.
Comment 1 Johannes Lundberg 2018-08-30 09:39:38 UTC
---- Minecraft Crash Report ----
// Why is it breaking :(

Time: 8/30/18 11:21 AM
Description: Initializing game

java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.so
	at org.lwjgl.system.Library.loadSystem(Library.java:147)
	at org.lwjgl.system.Library.loadSystem(Library.java:67)
	at org.lwjgl.system.Library.<clinit>(Library.java:50)
	at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:61)
	at org.lwjgl.system.MemoryStack.<init>(MemoryStack.java:61)
	at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
	at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
	at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
	at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
	at java.lang.ThreadLocal.get(ThreadLocal.java:170)
	at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
	at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
	at cgc.a(SourceFile:127)
	at cfs.an(SourceFile:557)
	at cfs.am(SourceFile:436)
	at cfs.a(SourceFile:380)
	at net.minecraft.client.main.Main.main(SourceFile:144)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
	at org.lwjgl.system.Library.loadSystem(Library.java:147)
	at org.lwjgl.system.Library.loadSystem(Library.java:67)
	at org.lwjgl.system.Library.<clinit>(Library.java:50)
	at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:61)
	at org.lwjgl.system.MemoryStack.<init>(MemoryStack.java:61)
	at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
	at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
	at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
	at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
	at java.lang.ThreadLocal.get(ThreadLocal.java:170)
	at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
	at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
	at cgc.a(SourceFile:127)
	at cfs.an(SourceFile:557)
	at cfs.am(SourceFile:436)

-- Initialization --
Details:
Stacktrace:
	at cfs.a(SourceFile:380)
	at net.minecraft.client.main.Main.main(SourceFile:144)

-- System Details --
Details:
	Minecraft Version: 1.13.1
	Operating System: FreeBSD (amd64) version 12.0-ALPHA2
	Java Version: 1.8.0_172, Oracle Corporation
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 154556368 bytes (147 MB) / 252968960 bytes (241 MB) up to 1060372480 bytes (1011 MB)
	JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	Launched Version: 1.13.1
	LWJGL: 3.1.6 build 14
	OpenGL: ~~ERROR~~ NoClassDefFoundError: Could not initialize class org.lwjgl.system.Library
	GL Caps: 
	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: 
	Current Language: ~~ERROR~~ NullPointerException: null
	Profiler Position: N/A (disabled)
	CPU: <unknown>




[11:36:30 INFO]: Half command: /usr/local/share/minecraft-client/minecraft-runtime -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Djava.library.path=/home/johannes/.minecraft/versions/1.13.1/1.13.1-natives-650889809265207 -Dminecraft.launcher.brand=java-minecraft-launcher -Dminecraft.launcher.version=1.6.89-j -cp /home/johannes/.minecraft/libraries/com/mojang/patchy/1.1/patchy-1.1.jar:/home/johannes/.minecraft/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar:/home/johannes/.minecraft/libraries/net/java/dev/jna/jna/4.4.0/jna-4.4.0.jar:/home/johannes/.minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar:/home/johannes/.minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar:/home/johannes/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar:/home/johannes/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:/home/johannes/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:/home/johannes/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:/home/johannes/.minecraft/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:/home/johannes/.minecraft/libraries/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar:/home/johannes/.minecraft/libraries/com/google/guava/guava/21.0/guava-21.0.jar:/home/johannes/.minecraft/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar:/home/johannes/.minecraft/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar:/home/johannes/.minecraft/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/home/johannes/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/home/johannes/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/home/johannes/.minecraft/libraries/com/mojang/brigadier/1.0.14/brigadier-1.0.14.jar:/home/johannes/.minecraft/libraries/com/mojang/datafixerupper/1.0.16/datafixerupper-1.0.16.jar:/home/johannes/.minecraft/libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar:/home/johannes/.minecraft/libraries/com/mojang/authlib/1.5.25/authlib-1.5.25.jar:/home/johannes/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/home/johannes/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/home/johannes/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/johannes/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/johannes/.minecraft/libraries/it/unimi/dsi/fastutil/8.2.1/fastutil-8.2.1.jar:/home/johannes/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.8.1/log4j-api-2.8.1.jar:/home/johannes/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1.jar:/home/johannes/.minecraft/libraries/com/mojang/realms/1.13.6/realms-1.13.6.jar:/home/johannes/.minecraft/libraries/org/lwjgl/lwjgl/3.1.6/lwjgl-3.1.6.jar:/home/johannes/.minecraft/libraries/org/lwjgl/lwjgl-jemalloc/3.1.6/lwjgl-jemalloc-3.1.6.jar:/home/johannes/.minecraft/libraries/org/lwjgl/lwjgl-openal/3.1.6/lwjgl-openal-3.1.6.jar:/home/johannes/.minecraft/libraries/org/lwjgl/lwjgl-opengl/3.1.6/lwjgl-opengl-3.1.6.jar:/home/johannes/.minecraft/libraries/org/lwjgl/lwjgl-glfw/3.1.6/lwjgl-glfw-3.1.6.jar:/home/johannes/.minecraft/libraries/org/lwjgl/lwjgl-stb/3.1.6/lwjgl-stb-3.1.6.jar:/home/johannes/.minecraft/libraries/com/mojang/text2speech/1.10.3/text2speech-1.10.3.jar:/home/johannes/.minecraft/versions/1.13.1/1.13.1.jar net.minecraft.client.main.Main
[11:36:30 INFO]: Looking for orphaned versions to clean up...
[11:36:30 INFO]: Looking for old natives & assets to clean up...
[11:36:34 ERROR]: Game ended with bad state (exit code 255)
[11:36:34 INFO]: Ignoring visibility rule and showing launcher due to a game crash
[11:36:34 INFO]: Crash report detected, opening: /home/johannes/.minecraft/crash-reports/crash-2018-08-30_11.36.34-client.txt
[11:36:34 INFO]: Deleting /home/johannes/.minecraft/versions/1.13.1/1.13.1-natives-650889809265207
Comment 2 Steve Wills freebsd_committer freebsd_triage 2018-08-30 11:39:07 UTC
The minecraft-client port is only the loader that downloads the actual game and runs it. The 1.13.x and newer builds seem to use a newer version of lwjgl. If you set the version in your profile back to 1.12.x or older, I believe it will still work. I think the solution here is to update games/lwjgl, but it has changed a lot so that is not as trivial as one might like.
Comment 3 Johannes Lundberg 2018-08-30 12:09:12 UTC
(In reply to Steve Wills from comment #2)

Oh I didn't know you can select older version in the profile. 
Running 1.12.2 works fine :)
Comment 4 Walter Schwarzenfeld freebsd_triage 2019-08-13 20:09:45 UTC
We have version 1.7.9. I close here with overcome by events.

Please, reopen it there are still problems.
Comment 5 Steve Wills freebsd_committer freebsd_triage 2019-09-17 21:24:46 UTC
This is still a problem. You can't play anything newer than 1.12.2 until this is fixed. Please do not re-close it until that is fixed.
Comment 6 pete 2019-09-19 15:49:50 UTC
Just for reference, I've had some success using this repo from Johannes:
https://github.com/johalun/lwjgl3-port

I haven't had time to test it recently, but might be a good place to start for getting the ports updated etc.