[MC-3090] Unable to play game unless LWJGL is manually replaced Created: 15/Nov/12  Updated: 05/May/15  Resolved: 19/Apr/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.4
Fix Version/s: Snapshot 13w16a

Type: Bug
Reporter: Antennen Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: crash
Environment:
ante@Balthazar:~$ java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
ante@Balthazar:~$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="12.04.1 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.1 LTS)"
VERSION_ID="12.04"
ante@Balthazar:~$ uname -a
Linux Balthazar 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Issue Links:
Duplicate
is duplicated by MC-13551 Minecraft won't launch in Ubuntu - Po... Resolved
is duplicated by MC-4233 32bit natives dont load on 64 bit jav... Resolved
is duplicated by MC-4496 Fresh Minecraft install downloads wro... Resolved
Confirmation Status: Unconfirmed

 Description   

If I delete ~/.minecraft, start the client, enter my login credentials and click login; The window turns black and stays that way. In other words: The game doesn't start and I am unable to play it.

The problem seems to be LWJGL which is resolved if I replace it manually, with an updated version, in the bin folder. This also fixes stuck key issues that makes serious gameplay impossible. I've heard the problem is that Mac OS X bugs out if it's updated, but wouldn't it be possible to download different versions depending on OS?

Here's the console output:

ante@Balthazar:~$ mv .minecraft/ .mc
ante@Balthazar:~$ XMODIFIERS= java -jar minecraft.jar
java.io.FileNotFoundException: /home/ante/.minecraft/lastlogin (Filen eller katalogen finns inte)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at net.minecraft.LoginForm.readUsername(LoginForm.java:131)
	at net.minecraft.LoginForm.<init>(LoginForm.java:76)
	at net.minecraft.LauncherFrame.<init>(LauncherFrame.java:30)
	at net.minecraft.LauncherFrame.main(LauncherFrame.java:158)
	at net.minecraft.MinecraftLauncher.main(MinecraftLauncher.java:13)
Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: /home/ante/.minecraft/bin/natives/liblwjgl.so: /home/ante/.minecraft/bin/natives/liblwjgl.so: fel ELF-klass: ELFCLASS32 (Possible cause: architecture word width mismatch)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
	at java.lang.Runtime.load0(Runtime.java:792)
	at java.lang.System.load(System.java:1059)
	at org.lwjgl.Sys$1.run(Sys.java:69)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
	at org.lwjgl.Sys.loadLibrary(Sys.java:81)
	at org.lwjgl.Sys.<clinit>(Sys.java:98)
	at net.minecraft.client.Minecraft.F(SourceFile:1975)
	at asr.<init>(SourceFile:20)
	at net.minecraft.client.Minecraft.<init>(SourceFile:75)
	at asi.<init>(SourceFile:36)
	at net.minecraft.client.MinecraftApplet.init(SourceFile:36)
	at net.minecraft.Launcher.replace(Launcher.java:143)
	at net.minecraft.Launcher$1.run(Launcher.java:87)
ante@Balthazar:~$ XMODIFIERS= java -jar minecraft.jar
Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: /home/ante/.minecraft/bin/natives/liblwjgl.so: /home/ante/.minecraft/bin/natives/liblwjgl.so: fel ELF-klass: ELFCLASS32 (Possible cause: architecture word width mismatch)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
	at java.lang.Runtime.load0(Runtime.java:792)
	at java.lang.System.load(System.java:1059)
	at org.lwjgl.Sys$1.run(Sys.java:69)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
	at org.lwjgl.Sys.loadLibrary(Sys.java:81)
	at org.lwjgl.Sys.<clinit>(Sys.java:98)
	at net.minecraft.client.Minecraft.F(SourceFile:1975)
	at asr.<init>(SourceFile:20)
	at net.minecraft.client.Minecraft.<init>(SourceFile:75)
	at asi.<init>(SourceFile:36)
	at net.minecraft.client.MinecraftApplet.init(SourceFile:36)
	at net.minecraft.Launcher.replace(Launcher.java:143)
	at net.minecraft.Launcher$1.run(Launcher.java:87)


 Comments   
Comment by Thue [ 19/Apr/13 ]

The fact that this "invalid" bug was fixed shows that it was not invalid in the first place. IMO the mods should be more careful with the "invalid" tag.

Comment by [Mod] CubeTheThird [ 12/Dec/12 ]

Note that the path may vary depending on how java is installed.

Comment by Kumasasa [ 12/Dec/12 ]

The execption

Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: /home/fsa/.minecraft/bin/natives/liblwjgl.so: /home/fsa/.minecraft/bin/natives/liblwjgl.so: неправильный класс ELF: ELFCLASS32 (Possible cause: architecture word width mismatch)

is neither a Minecraft nor a LWJGL issue, it's just a configuration issue because the 32bit version of the native libraries are loaded instead of the 64bit versions and can be fixed by adding

export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"

to rc.local or .bashrc or whatever.

Comment by FSA [ 03/Dec/12 ]

Confirm. Minecraft 1.4.5. Gentoo Linux:
Linux fsa-mobile 3.6.8-gentoo #1 SMP Tue Nov 27 12:54:36 YEKT 2012 x86_64 AMD Athlon(tm) X2 Dual-Core QL-65 AuthenticAMD GNU/Linux

fsa@fsa-mobile ~/Games $ java -jar minecraft.jar
Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: /home/fsa/.minecraft/bin/natives/liblwjgl.so: /home/fsa/.minecraft/bin/natives/liblwjgl.so: неправильный класс ELF: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at org.lwjgl.Sys$1.run(Sys.java:69)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
at org.lwjgl.Sys.loadLibrary(Sys.java:81)
at org.lwjgl.Sys.<clinit>(Sys.java:98)
at net.minecraft.client.Minecraft.F(SourceFile:1975)
at asr.<init>(SourceFile:20)
at net.minecraft.client.Minecraft.<init>(SourceFile:75)
at asi.<init>(SourceFile:36)
at net.minecraft.client.MinecraftApplet.init(SourceFile:36)
at net.minecraft.Launcher.replace(Launcher.java:134)
at net.minecraft.Launcher$1.run(Launcher.java:78)

Comment by Thue [ 20/Nov/12 ]

Minecraft is crashing. And would not crash if the Linux version was updated with a never version of LWJGL. Which Mojang could easily do. Saying that this is a "troubleshooting and support" request and not a bug report is absurd. When Mojang is integrating and distributing LWJGL as p0art of their game, LWJGL bugs and using the right version of LWJGL becomes Mojang's problem.

Comment by Antennen [ 18/Nov/12 ]

I have since reported this updated to Ubuntu 12.10 (64 bit) Gnome remix. Once again I have Oracle Java 7 installed from the Webupd8 PPA. I am able to recreate this 100%. My reason for reporting was the concern that it affected all Linux users. I guess users that use the PPA can recreate this.

I was upset this was closed without a second thought, and for no apparent reason. I have since not been able to find anyone else with the same issue. I brought it up on Reddit a couple of days ago.

As far as I'm concerned this is a legit bug report, but I am not as concerned about its severity anymore since there doesn't seem to be that many affected by it.

Comment by EvilSeph (Warren Loo) [ 18/Nov/12 ]

Personally I feel that this is possibly a bug report, but falls more under the realm of "troubleshooting and support" than that of a "bug report" and so I agree with the resolution of 'invalid'. Furthermore, I can somewhat agree with CubeTheThird's rationale that you could go and submit a feature request to the Minecraft forums for the related reason he's explained above, however I also understand the confusion this suggestion has caused since it doesn't directly relate to this issue but is rather a possible solution moving forward.

That being said, I feel that CubeTheThird's decision to Resolve this as Invalid is the correct decision and that further discussion on this topic should be moved over to a help request on the Minecraft Forums where the community can help you troubleshoot and investigate the issue.

I hope this clears everything up for you and everyone else!

Comment by [Mod] CubeTheThird [ 16/Nov/12 ]

I am not suggesting that this issue is a feature request. The version of LWJGL currently packaged with Minecraft is considered to be overall stable, which unfortunately means an update is required for linux. However, newer versions have shown to cause problems on other operating systems, and thus a newer version will not be packaged until issues are resolved. The fact that it is relatively easy to fix on linux systems also supports this. What you should suggest as a feature, as you indicated, is packaging different versions depending on the operating system. I agree this is a good idea for stability reasons, but that in itself is a request, hence posting it on the forums instead of here.

Comment by [Mod] Ezekiel (ezfe) [ 15/Nov/12 ]

I agree with the OP, this is a bug report, not a feature request. CubeTheThird, can you explain?

Comment by Antennen [ 15/Nov/12 ]

How can this not be the right place? The game is unplayable (doesn't even start) out of the box on the supported platform Linux. Please explain why this isn't a bug?

Comment by [Mod] CubeTheThird [ 15/Nov/12 ]

Unfortunately this really isn't the place to post this, and should be posted on the MC forums here.

Generated at Sun Jan 12 12:00:03 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.