Affected versions: 1.8.2 through 1.12
Unaffected versions: 1.8.1 and lower.
The issue is therefore with something changed between 1.8.1 and 1.8.2.
The issue only occurs when my built-in display is disabled. It launches normally if both my TV and laptop screen are enabled.
Steps to reproduce on my laptop:
1. Disable built-in screen and only output to a TV
2. Launch Minecraft 1.8.2 or higher
3. It will immediately crash with this crash report:
Crash log:
Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.
Time: 6/21/17 12:12 PM
Description: Initializing game
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.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 4 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
– Head –
Thread: Client thread
Stacktrace:
at bhz.av(SourceFile:661)
at bhz.aq(SourceFile:456)
– Initialization –
Details:
Stacktrace:
at bhz.a(SourceFile:404)
at net.minecraft.client.main.Main.main(SourceFile:123)
Environment
– System Details –
Details:
Minecraft Version: 1.12
Operating System: Linux (amd64) version 4.8.0-56-generic - Xubuntu 16.04.2 LTS 64-bit
Java Version: 1.8.0_131, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 16154496 bytes (15 MB) / 150999040 bytes (144 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.12
LWJGL: 2.9.4
OpenGL: ~ERROR~ RuntimeException: No OpenGL context found in the current thread.
GL Caps:
Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs:
Current Language: ~ERROR~ NullPointerException: null
Profiler Position: N/A (disabled)
CPU: i7-3610QM
GPU: Nvidia GeForce GT 650M with the Nvidia-340.102 graphics drivers.
Please attach the full crash log file from (minecraft/crash-reports/crash-<DATE>-client.txt) to this ticket