The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

OpenJDK7: Cannot find display (minecraft)

asked 2013-03-22 17:43:55 +0000

wlhlm gravatar image

updated 2013-03-22 17:45:51 +0000

There is a problem with Java finding the correct display on my dual monitor setup in i3. When I`m trying to launch Minecraft, I get a black window when the game starts and it puts out:

Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
    at net.minecraft.client.Minecraft.a(SourceFile:208)
    at avv.a(SourceFile:56)
    at net.minecraft.client.Minecraft.run(SourceFile:507)
    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)
    ... 4 more

I`m running i3 version 4.5.1.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2013-03-22 18:07:26 +0000

wlhlm gravatar image

updated 2013-03-22 18:09:56 +0000

It seems that it rather is a problem of lwjgl which is being distributed with Minecraft in an older version that has some bugs with multidisplay-setups. Replacing it with a newer version helped me.

edit flag offensive delete link more

Comments

See "http://blog.stevenocchipinti.com/2012/02/minecraft-exception-in-linux.html" for instructions.

wlhlm gravatar imagewlhlm ( 2013-03-22 18:07:51 +0000 )edit
0

answered 2013-03-22 17:52:00 +0000

Michael gravatar image

i3 doesn’t modify any RandR information, so this seems unrelated to i3 on the first glance. Unfortunately Minecraft isn’t open source, so we can’t look at what it does…

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-22 17:43:55 +0000

Seen: 974 times

Last updated: Mar 22 '13

Related questions