You are not logged in.

#1 2011-07-29 05:03:48

kinghajj
Member
Registered: 2008-07-15
Posts: 35

Minecraft crashes with jre7.

Upgraded to the latest jre/jdk today, and just a while ago I tried running minecraft and got an exception. I can post the whole error message later, but basically it seems that the lwjgl library binaries are (for some reason) incompatible. Is anyone else having this issue?

Offline

#2 2011-07-29 05:29:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Minecraft crashes with jre7.

Maybe you need to rebuild lwjgl.

Offline

#3 2011-07-29 05:39:33

kinghajj
Member
Registered: 2008-07-15
Posts: 35

Re: Minecraft crashes with jre7.

Tried it, didn't help. I see in my ~/.minecraft/bin/natives directory there are both 32- and 64-bit versions of lwjgl, but the error message mentions the 32-bit one, and I'm on a 64-bit OS. Shouldn't the jre load the 64-bit one? Maybe there's a problem with the package?

Offline

#4 2011-07-29 05:54:44

kinghajj
Member
Registered: 2008-07-15
Posts: 35

Re: Minecraft crashes with jre7.

OK, so I replaced the 32-bit library with the 64-bit one from the AUR (not whichever Minecraft downloads for you.) This gave me another error about not finding libjawt.so, which is in a subdirectory of /opt/java! So I added the path to LD_LIBRARY_PATH, and now the game launches, but when I attempt to play either multi- or single-player, the escape menu comes up and the "Back" button won't work, so I can't actually play. At least it's progress.

Offline

#5 2011-07-29 07:01:57

cookiecaper
Member
Registered: 2007-09-22
Posts: 198

Re: Minecraft crashes with jre7.

Getting the same thing with today's jre 7 packages. I've rebuilt lwjgl as well and now run into the libjawt problem. Here's the ldd on lwjgl and libjawt:

$ ldd bin/lwjgl/liblwjgl64.so
        linux-vdso.so.1 =>  (0x00007fffacdff000)                                                                                       
        libm.so.6 => /lib/libm.so.6 (0x00007fe998a2b000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fe9986ec000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fe9984d9000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007fe9982cf000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007fe9980c7000)
        libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007fe997ec1000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007fe997ca4000)
        libjawt.so => not found
        libc.so.6 => /lib/libc.so.6 (0x00007fe997942000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fe997727000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007fe997523000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007fe997318000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007fe997112000)
        /lib/ld-linux-x86-64.so.2 (0x00007fe998f7d000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fe996f10000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fe996d0a000)
ldd /opt/java/jre/lib/amd64/libjawt.so
        linux-vdso.so.1 =>  (0x00007fff8b7ad000)
        libawt.so => /opt/java/jre/lib/amd64/libawt.so (0x00007f9c8
        libmawt.so => not found
        libjava.so => /opt/java/jre/lib/amd64/libjava.so (0x00007f9
        libjvm.so => not found
        libc.so.6 => /lib/libc.so.6 (0x00007f9c801a8000)
        libjvm.so => not found
        libm.so.6 => /lib/libm.so.6 (0x00007f9c7ff25000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f9c7fd21000)
        libjvm.so => not found
        libverify.so => /opt/java/jre/lib/amd64/libverify.so (0x000
        /lib/ld-linux-x86-64.so.2 (0x00007f9c80c5c000)
        libjvm.so => not found

LD_LIBRARY_PATH:

/opt/java/:/home/jeff/GNUstep/Library/Libraries:/usr/lib

I got around the ELFCLASS errors by copying the *64 libs over the libs without such a suffix (so both libs are now the 64-bit libs).

Offline

#6 2011-07-29 07:15:29

cookiecaper
Member
Registered: 2007-09-22
Posts: 198

Re: Minecraft crashes with jre7.

Offline

#7 2011-07-29 07:52:50

ejmarkow
Member
From: Siemiechów, Poland
Registered: 2008-09-02
Posts: 84
Website

Re: Minecraft crashes with jre7.

Same results here, Minecraft crashing and not working using both jre 7-1 and 7-2.

Last edited by ejmarkow (2011-07-29 07:53:39)

Offline

#8 2011-07-29 07:57:47

mah0
Member
Registered: 2011-04-21
Posts: 47

Re: Minecraft crashes with jre7.

my log with jre7-2 and lwjgl 2.7.1:

Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/maho/.minecraft/bin/natives/liblwjgl.so: libjawt.so: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
    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:70)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
    at org.lwjgl.Sys.loadLibrary(Sys.java:82)
    at org.lwjgl.Sys.<clinit>(Sys.java:99)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:130)
    at net.minecraft.client.Minecraft.a(SourceFile:244)
    at net.minecraft.client.Minecraft.run(SourceFile:716)
    at java.lang.Thread.run(Thread.java:722)

Offline

#9 2011-07-29 09:00:13

B_E
Member
Registered: 2011-07-29
Posts: 3

Re: Minecraft crashes with jre7.

I can confirm the same problems on my x86_64-machine with jre 7-1 and the lwjgl downloaded by Minecraft.

Offline

#10 2011-07-29 09:23:12

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Offline

#11 2011-07-29 18:26:54

rcoit
Member
Registered: 2011-07-29
Posts: 2

Offline

#12 2011-07-29 18:42:35

rcoit
Member
Registered: 2011-07-29
Posts: 2

Re: Minecraft crashes with jre7.

Bug report filed by Revenge of The Titans Developer at lwjgl.org


http://lwjgl.org/forum/index.php/topic,4085.0.html

Offline

#13 2011-07-30 00:52:58

cookiecaper
Member
Registered: 2007-09-22
Posts: 198

Re: Minecraft crashes with jre7.

Everyone: please try saying "sudo ldconfig /opt/java/jre/lib/amd64/" and then running Minecraft/other LWJGL games and post back here with results. It seems to fix the problem for me.

Offline

#14 2011-07-30 04:57:12

kinghajj
Member
Registered: 2008-07-15
Posts: 35

Re: Minecraft crashes with jre7.

cookiecaper, that gets minecraft to run, but when I continue a game I'm immediately taken to the pause menu, and clicking "Back to game" just makes the text "Saving level" appear in the lower left corner.

Offline

#15 2011-07-30 14:30:19

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: Minecraft crashes with jre7.

I've always run minecraft with openjdk6, with very good success - though that might not be the case for everyone i bet.

From about version 1.3 to 1.7.3 as of today: http://prep.mine.nu/minecraft/screens/index.html

I have an Nvidia 570 gtx570 (and an i5 2500k, though that is probably not important)

Last edited by PReP (2011-07-30 14:33:43)


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#16 2011-07-30 19:17:35

tdreyer1
Member
From: US
Registered: 2011-03-26
Posts: 13
Website

Re: Minecraft crashes with jre7.

I'm getting similar problems too. I'm running 32bit and minecraft just blackscreens after login. Downgrading to jre6 fixed it.

Offline

#17 2011-07-31 07:02:22

Hiram
Member
From: Brisbane, Australia
Registered: 2010-02-13
Posts: 67
Website

Re: Minecraft crashes with jre7.

Verifying that PReP's recommendation of using openjdk6 works perfectly. Played for about 40 minutes with no problems. Running Arch 32bit.

Offline

#18 2011-07-31 08:10:35

ChemBro
Member
Registered: 2008-10-22
Posts: 703

Re: Minecraft crashes with jre7.

Is there a server I could join to test? Minecraft crashes for me by creating a world in singleplayer and the server I found was offline, it seems.

Offline

#19 2011-07-31 22:29:12

icetonic
Member
From: Germany
Registered: 2008-10-21
Posts: 104

Re: Minecraft crashes with jre7.

I'm on 32bit Arch and also had the libjawt.so/blackscreen error after update to jdk7..

LD_LIBRARY_PATH="/opt/java/jre/lib/i386" java -jar minecraft.jar

works fine for me...

Offline

#20 2011-08-01 02:15:33

k3ttc4r
Member
From: around somewhere
Registered: 2008-12-28
Posts: 137
Website

Re: Minecraft crashes with jre7.

cookiecaper wrote:

Everyone: please try saying "sudo ldconfig /opt/java/jre/lib/amd64/" and then running Minecraft/other LWJGL games and post back here with results. It seems to fix the problem for me.

That fixed it for me (x86_64). Thanks!

Edit:
Nvm, I'm not able to get out of the pause menu, either :S

Last edited by k3ttc4r (2011-08-01 02:17:12)


arch64   ||   github | dotshare | blog

Offline

#21 2011-08-02 20:30:04

Beelzebud
Member
From: Illinois, U.S.
Registered: 2010-07-16
Posts: 154

Re: Minecraft crashes with jre7.

icetonic wrote:

I'm on 32bit Arch and also had the libjawt.so/blackscreen error after update to jdk7..

LD_LIBRARY_PATH="/opt/java/jre/lib/i386" java -jar minecraft.jar

works fine for me...

That is also working fine for me, with no other issues.   Thank you.

Offline

#22 2011-08-03 01:44:20

samueldr
Member
Registered: 2009-04-19
Posts: 18

Re: Minecraft crashes with jre7.

I can get past the pause screen only while fullscreen.

Offline

#23 2011-08-06 22:05:16

kulpae
Member
From: Bremen
Registered: 2010-02-06
Posts: 34

Re: Minecraft crashes with jre7.

This bug is fixed in the nighties of LWJGL.
http://lwjgl.org/forum/index.php/topic,4085.0.html

Still have to wait until it ships with the next release of LWJGL and notch updates his libs...

Offline

#24 2011-08-07 02:25:29

ryanklee
Member
Registered: 2011-06-09
Posts: 33

Re: Minecraft crashes with jre7.

You don't have to actually wait, just replace the relevant files in ~/.minecraft/bin and ~/.minecraft/bin/native

Edit: This is actually not working for me as I anticipated. Throws a bunch of exceptions.

Last edited by ryanklee (2011-08-07 06:35:46)

Offline

#25 2011-08-08 17:58:42

lamiska
Member
From: Kosice - Slovakia
Registered: 2011-05-03
Posts: 5

Re: Minecraft crashes with jre7.

for me it crashes even with openjdk hmm
specs:
i3 350m
ati mobility hd5145 with catalyst driver

  Minecraft has crashed!      
      ----------------------      

Minecraft has stopped running because it encountered a problem.

If you wish to report this, please copy this entire text and email it to support@mojang.com.
Please include a description of what you did when the error occured.



--- BEGIN ERROR REPORT a1dce528 --------
Generated 8/8/11 7:58 PM

Minecraft: Minecraft Beta 1.7.3
OS: Linux (amd64) version 3.0-ARCH
Java: 1.6.0_22, Sun Microsystems Inc.
VM: OpenJDK 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.7.1
[failed to get system properties (java.lang.NullPointerException)]

org.lwjgl.LWJGLException: Could not choose GLX13 config
    at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
    at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:61)
    at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:759)
    at org.lwjgl.opengl.DrawableGL.setPixelFormat(DrawableGL.java:57)
    at org.lwjgl.opengl.Display.create(Display.java:897)
    at org.lwjgl.opengl.Display.create(Display.java:808)
    at org.lwjgl.opengl.Display.create(Display.java:769)
    at org.lwjgl.opengl.Display.create(Display.java:790)
    at net.minecraft.client.Minecraft.a(SourceFile:294)
    at net.minecraft.client.Minecraft.run(SourceFile:716)
    at java.lang.Thread.run(Thread.java:679)
--- END ERROR REPORT eb7fb3c0 ----------

Last edited by lamiska (2011-08-08 17:59:43)

Offline

Board footer

Powered by FluxBB