mojira.dev
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.

Linked issues

Comments 0

No comments.

Curi0 Creeper

(Unassigned)

Unconfirmed

Linux, lwjgl

Minecraft 1.12

Retrieved