Ask Your Question
0

Minecraft drops to a black screen after login

asked 2013-02-24 17:29:45 -0600

ryanlerch gravatar image

updated 2013-08-16 09:28:46 -0600

UPDATE: This issue seems to be fixed with the release of Minecraft 1.6 and the new minecraft launcher.

I installed Minecraft on fedora (as described in this question), and it seems to start okay. However, after logging into minecraft, it drops to a black screen.

I ran the minecraft command (java -Xmx1024M -Xms512M -jar ~/.minecraft/minecraft.jar) on the terminal, and the following message is output to the terminal after trying to log in to Minecraft:

Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
at net.minecraft.client.Minecraft.a(SourceFile:205)
at asq.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(SourceFile:515)
at java.lang.Thread.run(Thread.java:722)

Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:234)
at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:196)
at org.lwjgl.opengl.XRandR.populate(XRandR.java:87)
at org.lwjgl.opengl.XRandR.access$100(XRandR.java:52)
at org.lwjgl.opengl.XRandR$1.run(XRandR.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.opengl.XRandR.getConfiguration(XRandR.java:108)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:618)
at org.lwjgl.opengl.Display.<clinit>(Display.java:135)

Any idea how to fix this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-02-24 17:56:38 -0600

ryanlerch gravatar image

updated 2013-06-24 15:44:35 -0600

Yes, this is a Known Issue with the lwjgl library that Minecraft bundles and downloads during its initial setup. Typically, you will hit this bug when trying to run minecraft on computers with more than one display connected (e.g. A laptop with an external monitor connected).

According to the bug tracking this issue, the Minecraft developers are aware of this issue, and will hopefully fix this issue in the future.

Can I workaround this issue

Fortunately, you can manually update the lwjgl library from the one that minecraft bundles to version 2.6, and it will fix the issue. To do this:

  1. Open Up a terminal, and download lwjgl version 2.9 from sourceforge:

    wget http://downloads.sourceforge.net/project/java-game-lib/Official%20Releases/LWJGL%202.9.0/lwjgl-2.9.0.zip

  2. Extract the zip file and change into the lwjgl directory with the following commands in the Terminal:

    unzip lwjgl-2.6.zip

    cd lwjgl-2.6/

  3. Now run the following 2 commands to copy the new lwjgl files into the .minecraft folder in your home directory

    cp jar/* ~/.minecraft/bin/

    cp native/linux/* ~/.minecraft/bin/natives/

  4. Try running Minecraft again, and if you see the main titlescreen and Minecraft menu, you are done!

edit flag offensive delete link more
0

answered 2013-06-28 10:26:14 -0600

Working OK for me on my Fedora 18. Thanks!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-24 17:29:45 -0600

Seen: 9,967 times

Last updated: Aug 16 '13