mojira.dev
MC-68732

Starting the game a second time crashes the game on Linux

java.lang.ExceptionInInitializerError
	at bss.ao(SourceFile:549)
	at bss.aj(SourceFile:350)
	at bss.a(SourceFile:299)
	at net.minecraft.client.main.Main.main(SourceFile:120)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at org.lwjgl.opengl.XRandR.findPrimary(XRandR.java:357)
	at org.lwjgl.opengl.XRandR.ScreentoDisplayMode(XRandR.java:346)
	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

Restarting the Minecraft client results in the client failing to start back up.

What I expected to happen was...:
The game would launch as normally.

What actually happened was...:
The game crashed before the game window opened.

Steps to Reproduce:
1. Open Minecraft 1.8 pre-release
2. Close Minecraft 1.8 pre-release
3. Open Minecraft 1.8 pre-release (fails, generates attached crash report)

Linked issues

Attachments

Comments 4

Tried to reproduce this, but couldn't. What are your launcher visibility settings and do you close the launcher between restarts?

I'm also annoyed by this issue with 1.8.2 and 1.8.3. I could circumvent it by reverting the version back to 1.8.1.

In my case, the crash is not related to restarting the game / the launcher. It happens upon the first program launch.

Just FYI, my desktop environment is wmii on Debian testing amd64.

Caused by broken graphics card drivers:

OpenGL: ~ERROR~ RuntimeException: No OpenGL context found in the current thread.

This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.

This is absolutely a bug and nothing to do with graphics drivers. However, it's a bug in lwjgl.

I have just reported it: https://github.com/LWJGL/lwjgl/issues/130

DeprecatedNether

(Unassigned)

Unconfirmed

Minecraft 1.8-pre1

Retrieved