Same problem here and as well, 1.13 works fine. Using lower versions I get the same OpenGL error.
Full crash-report:
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.Time: 7/31/18 4:13 PM
Description: Initializing gamejava.lang.ExceptionInInitializerError
at bib.av(SourceFile:661)
at bib.aq(SourceFile:456)
at bib.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 bib.av(SourceFile:661)
at bib.aq(SourceFile:456)-- Initialization --
Details:
Stacktrace:
at bib.a(SourceFile:404)
at net.minecraft.client.main.Main.main(SourceFile:123)-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Linux (amd64) version 4.15.0-29-generic
Java Version: 1.8.0_171, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 149086808 bytes (142 MB) / 268435456 bytes (256 MB) up to 2147483648 bytes (2048 MB)
JVM Flags: 7 total; -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.12.2
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: PureBDcraft 128x MC112.zip
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
CPU: <unknown>
The suggested workaround (downloading the .deb from minecraft.net) didn't work for me... well the game starts but same issue with "authentication servers currently down for maintenance".
@kumasasa thanks for the link, I'll keep track of that issue as well.
But since it's "just" a note regarding the mentioned workaround, the original error still persists here.