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

Minecraft crashes at startup on Linux when using a dual monitor setup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.4.2, Minecraft 1.4.6
    • None
    • Ubuntu Linux 12.10 (Kernel 3.5.0)
    • Unconfirmed

      When starting Minecraft on Linux with an external monitor connected and the internal screen disabled (e.g. a docked notebook), the game crashes before showing anything using OpenGL. The login screen works fine.

      The stack trace is:
      me@mymachine ~/Downloads % java -jar minecraft.jar
      xxx achievements
      xxx recipes
      Setting user: xxx, -4994602101999570082
      Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerErro
      r
      at net.minecraft.client.Minecraft.a(SourceFile:205)
      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)
      ... 3 more
      java -jar minecraft.jar 11,77s user 0,41s system 123% cpu 9,902 total

      I'm pretty sure that the problem is the version of lwjgl shipped with Minecraft, as it doesn't happen when manually copying an updated jar and native binary to the .minecraft directory with the exact same setup.

      So I guess updating lwjgl (at least for Linux) should be enough to fix this.

            Unassigned Unassigned
            lxgr Lukas R
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: