Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Minecraft: Failed to locate library: liblwjgl.so
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 121
Location: USA/Michigan

PostPosted: Sun Mar 17, 2019 11:20 pm    Post subject: Minecraft: Failed to locate library: liblwjgl.so Reply with quote

Hello,

For now, I'm getting by with https://gpo.zugaina.org/games-action/minecraft but it'd be nice to just download the game directly from Mojang for updates, rather than relying on someone else's time/effort, so hopefully I can solve this issue.

I'm struggling to find any relevant references about lwjgl in my searching so far...certainly no mention of a way to install it (or add support via USE flag, or whatever). Feels like one of those issues where I'm the only one in the world who's had this, yet somehow the above ebuild is working?

Any help is, as always, greatly appreciated!!

Here is the crash log, fwiw:

Code:
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 3/17/19 7:05 PM
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 cgd.a(SourceFile:127)
   at cft.an(SourceFile:557)
   at cft.am(SourceFile:436)
   at cft.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 cgd.a(SourceFile:127)
   at cft.an(SourceFile:557)
   at cft.am(SourceFile:436)

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

-- System Details --
Details:
   Minecraft Version: 1.13.2
   Operating System: Linux (amd64) version 4.19.27-gentoo-r1
   Java Version: 1.8.0_191, Oracle Corporation
   Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
   Memory: 420614928 bytes (401 MB) / 536870912 bytes (512 MB) up to 2147483648 bytes (2048 MB)
   JVM Flags: 8 total; -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
   Launched Version: 1.13.2
   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>

_________________
Links of me:
https://bitbucket.org/experimentfailed/
https://experimentfailed.bandcamp.com/


Last edited by statikregimen on Mon Mar 18, 2019 4:23 am; edited 2 times in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Mon Mar 18, 2019 12:28 am    Post subject: Reply with quote

Where are you seeing 1.14? The official source says the latest is 19w11b, which the java launcher runs just fine.
Back to top
View user's profile Send private message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 121
Location: USA/Michigan

PostPosted: Mon Mar 18, 2019 4:14 am    Post subject: Reply with quote

Well, I'm a moron about the latest version... something in the minecraft wiki lead me to beleive 1.14 was released. Anyway, i see here, that it is still upcoming. My bad.

Nevertheless, that doesn't change nor solve my problem at all and I would still like to sort it.
_________________
Links of me:
https://bitbucket.org/experimentfailed/
https://experimentfailed.bandcamp.com/
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Mon Mar 18, 2019 5:26 am    Post subject: Reply with quote

lwjgl.so is supposed to be extracted from the game files at runtime, do you have /home mounted noexec?
Back to top
View user's profile Send private message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 121
Location: USA/Michigan

PostPosted: Mon Mar 18, 2019 5:49 am    Post subject: Reply with quote

Thanks for the replies

Home is mounted thusly, in fstab:

Code:
/dev/bcache0                                            /home           ext4            noatime                 0 1

_________________
Links of me:
https://bitbucket.org/experimentfailed/
https://experimentfailed.bandcamp.com/
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Mon Mar 18, 2019 6:27 am    Post subject: Reply with quote

Doesn't look like a filesystem issue...I'm not sure what it could be. Does the file exist? Look in ~/.minecraft/versions/<ver>/ for a directory with "natives" in the name, you might need something like inotify-tools to catch it being written if it cleans up on crash though.

Alternatively, there's a lwjgl package in java-overlay that might work as a workaround.
Back to top
View user's profile Send private message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 121
Location: USA/Michigan

PostPosted: Mon Mar 18, 2019 9:14 pm    Post subject: Reply with quote

I still have the game installed via the working overlay, mentioned above, so any files in ~/.minecraft have likely been created by that. I did not realize that directory existed, so I renamed it, to get it out of the way and tried again. This time it seemed to download a bunch of stuff, but still threw the same error in the end.

It predictably created a new ~/.minecraft/ and in versions/1.13.2/ there is a .jar and a .json file. I'm not familiar with inotify-tools, but will try to firgure it out when I get a chance. I will try the java-overlay as well.

THanks!

Edit:

I forgot to mention

Code:
find ~/.minecraft/ -name "*lwjgl*"
/home/statik/.minecraft/libraries/org/lwjgl
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl/3.1.6/lwjgl-3.1.6.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl/3.1.6/lwjgl-3.1.6-natives-linux.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-openal
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-openal/3.1.6/lwjgl-openal-3.1.6.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-openal/3.1.6/lwjgl-openal-3.1.6-natives-linux.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-glfw
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-glfw/3.1.6/lwjgl-glfw-3.1.6-natives-linux.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-glfw/3.1.6/lwjgl-glfw-3.1.6.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-jemalloc
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-jemalloc/3.1.6/lwjgl-jemalloc-3.1.6.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-jemalloc/3.1.6/lwjgl-jemalloc-3.1.6-natives-linux.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-stb
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-stb/3.1.6/lwjgl-stb-3.1.6-natives-linux.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-stb/3.1.6/lwjgl-stb-3.1.6.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-opengl
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-opengl/3.1.6/lwjgl-opengl-3.1.6.jar
/home/statik/.minecraft/libraries/org/lwjgl/lwjgl-opengl/3.1.6/lwjgl-opengl-3.1.6-natives-linux.jar


The output appears to be more or less the same on the working overlay, as well. No sign of the .so file, so I'm really confused how the overlay is magically working.

Also, it is worth mentioning, I have the same issue on 2 different machines, with vastly different hardware (one is all AMD, the other is intel/nvidia).
_________________
Links of me:
https://bitbucket.org/experimentfailed/
https://experimentfailed.bandcamp.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum