Mojira Archive
MC-119326

Minecraft crashes when starting with custom XRandR resolution

When starting Minecraft with a custom 61hz resolution active it crashes with the error

java.lang.ExceptionInInitializerError
        at bhz.av(SourceFile:661)
        at bhz.aq(SourceFile:456)
        at bhz.a(SourceFile:404)
        at net.minecraft.client.main.Main.main(SourceFile:123)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at org.lwjgl.opengl.XRandR.findPrimary(XRandR.java:326)
        at org.lwjgl.opengl.XRandR.ScreentoDisplayMode(XRandR.java:315)
        at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:746)
        at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:743)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:743)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
        ... 4 more

To reproduce make a custom resolution in XRandR and set it. Then start Minecraft and it should crash.

Duplicate

Curi0 Creeper

2017-07-10, 05:53 PM

2018-07-10, 09:45 AM

2017-07-12, 02:16 AM

0

0

Unconfirmed

Linux, lwjgl

Minecraft 1.12

-