FS#25305 - [jre] LWJGL games crash with JRE 7

Attached to Project: Community Packages
Opened by Jeff Cook (cookiecaper) - Friday, 29 July 2011, 07:10 GMT
Last edited by Thomas Dziedzic (tomd123) - Wednesday, 17 August 2011, 03:06 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Minecraft and Revenge of the Titans, both games that utilize liblwjgl.so, crash since installing jre 7-1 earlier today. This is something involving ld and/or missing libraries. I am using x64.

Other complaints and additional detail has been filed at: https://bbs.archlinux.org/viewtopic.php?pid=967053

This ldd output is consistent on custom-built lwjgl and the sos included with both ROTT and Minecraft:

linux-vdso.so.1 => (0x00007fff257ff000)
libm.so.6 => /lib/libm.so.6 (0x00007ff9156da000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007ff91539b000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007ff915188000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007ff914f7e000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007ff914d76000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007ff914b70000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff914953000)
libjawt.so => not found
libc.so.6 => /lib/libc.so.6 (0x00007ff9145f1000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007ff9143d6000)
libdl.so.2 => /lib/libdl.so.2 (0x00007ff9141d2000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007ff913fc7000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007ff913dc1000)
/lib/ld-linux-x86-64.so.2 (0x00007ff915c2b000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007ff913bbf000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007ff9139b9000)

ldd on libjawt.so:
$ ldd /opt/java/jre/lib/amd64/libjawt.so
linux-vdso.so.1 => (0x00007fff3fd2f000)
libawt.so => /opt/java/jre/lib/amd64/libawt.so (0x00007ffad0ce9000)
libmawt.so => not found
libjava.so => /opt/java/jre/lib/amd64/libjava.so (0x00007ffad0a6a000)
libjvm.so => not found
libc.so.6 => /lib/libc.so.6 (0x00007ffad0709000)
libjvm.so => not found
libm.so.6 => /lib/libm.so.6 (0x00007ffad0486000)
libdl.so.2 => /lib/libdl.so.2 (0x00007ffad0282000)
libjvm.so => not found
libverify.so => /opt/java/jre/lib/amd64/libverify.so (0x00007ffad0071000)
/lib/ld-linux-x86-64.so.2 (0x00007ffad11bd000)
libjvm.so => not found
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Wednesday, 17 August 2011, 03:06 GMT
Reason for closing:  Upstream
Additional comments about closing:  it is upstream after all
Comment by Jeff Cook (cookiecaper) - Friday, 29 July 2011, 07:16 GMT
Just tried with jre 7-2 and get the same results, though I didn't try logging in/out or resourcing my profile.
Comment by Jelle van der Waa (jelly) - Friday, 29 July 2011, 09:22 GMT
Please report it under community packages and include [jre] to your title
Comment by Jelle van der Waa (jelly) - Friday, 29 July 2011, 09:23 GMT Comment by Thomas Dziedzic (tomd123) - Friday, 29 July 2011, 13:41 GMT
the above link is all I can recommend.

Please contact mojang and the other game.
I can not do anything about this.
Comment by Jeff Cook (cookiecaper) - Friday, 29 July 2011, 23:58 GMT
I am not sure that this is not a packaging bug. As stated in the thread on lwjgl's forums (http://lwjgl.org/forum/index.php/topic,4085.0.html) , sudo ldconfig /opt/java/jre/lib/amd64/ after installation makes Minecraft and ROTT work fine on JVM 7.
Comment by Thomas Dziedzic (tomd123) - Saturday, 30 July 2011, 00:40 GMT
"sudo ldconfig /opt/java/jre/lib/amd64/"
This doesn't fix the initial bug where it uses 32bit libraries instead of the 64bit ones does it?
Comment by Jeff Cook (cookiecaper) - Saturday, 30 July 2011, 00:51 GMT
It does appear to fix that bug for me, yes. jre 7-2.
Comment by Thomas Dziedzic (tomd123) - Wednesday, 03 August 2011, 15:18 GMT
I'm still unconvinced that this is a packaging bug.

jre6 also had the same missing links and worked fine.

I will wait for upstream to at least comment on the bugs before moving on.
Comment by Thomas Dziedzic (tomd123) - Monday, 08 August 2011, 03:44 GMT
Marking as upstream because there are other problems with minecraft and java 7.
Comment by Patrick Stewart (patstew) - Tuesday, 09 August 2011, 00:58 GMT
running "sudo ldconfig /opt/java/jre/lib/amd64/" fixes Revenge of the Titans for me with jre-7-3. Before, it failed to load with "java.lang.UnsatisfiedLinkError: Can't load library: /liblwjgl.so"
Comment by Thomas Dziedzic (tomd123) - Tuesday, 09 August 2011, 21:07 GMT
I made a jre6 package at http://aur.archlinux.org/packages.php?ID=51241
and a jdk6 package at http://aur.archlinux.org/packages.php?ID=51242
as a temporary solution for this issue.
Comment by Katrina L. Halliwell (canuckkat) - Saturday, 13 August 2011, 17:12 GMT
running "sudo ldconfig /opt/java/jre/lib/amd64/" fixes it for Minecraft and Spiral Knights, but I have to run it every time I log in. I didn't have this issue with jre6 heh.
Comment by Thomas Dziedzic (tomd123) - Saturday, 13 August 2011, 17:57 GMT
thanks for your feedback. The fact that it worked in jre6 is the major reason why I haven't "fixed" this yet because I think this is a library issue within lwjgl or minecraft and similar games.
Comment by Thomas Dziedzic (tomd123) - Wednesday, 17 August 2011, 03:06 GMT
as I thought, it seems that according to http://lwjgl.org/forum/index.php/topic,4085.msg22080.html#msg22080 the problem was in lwjgl

this will be fixed as soon as those games start using the latest lwjgl with the fix in it.

closing

Loading...