Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-119326

Minecraft crashes when starting with custom XRandR resolution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12
    • Unconfirmed

      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.

            Unassigned Unassigned
            Curi0 Curi0 Creeper
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: