[SOLVED] Crash on Linux after updating Nvidia Drivers on Ubuntu 16.10

Hey Guys,
Today I thought I could try the new nvidia update since I thought the old driver problem is solved by now, however it looks like there is yet another problem:

SCHWERWIEGEND: Failed to create display
org.lwjgl.LWJGLException: X Error - disp: 0x7f5b8c02def0 serial: 87 error: BadValue (integer parameter out of range for operation) request_code: 154 minor_code: 24
        at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:320)
        at org.lwjgl.opengl.LinuxContextImplementation.nCreate(Native Method)
        at org.lwjgl.opengl.LinuxContextImplementation.create(LinuxContextImplementation.java:51)
        at org.lwjgl.opengl.ContextGL.<init>(ContextGL.java:132)
        at org.lwjgl.opengl.Display.create(Display.java:850)
        at org.lwjgl.opengl.Display.create(Display.java:757)
        at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:143)
        at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:113)
        at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
        at java.lang.Thread.run(Thread.java:748)

Others blame that on lwjgl and suggest updating to master.
From here it looks like that won’t happen anymore.

This is quite a problem for us, since iirc lwjgl3 is also broken

Edit: When trying lwjgl3, I get this:

SCHWERWIEGEND: EGL: Failed to initialize EGL: EGL is not or could not be initialized
java.lang.Exception: EGL: Failed to initialize EGL: EGL is not or could not be initialized
        at com.jme3.system.lwjgl.LwjglWindow$1.invoke(LwjglWindow.java:179)
        at org.lwjgl.glfw.GLFWErrorCallbackI.callback(GLFWErrorCallbackI.java:24)
        at com.jme3.system.lwjgl.LwjglWindow$1.callback(LwjglWindow.java:189)
        at org.lwjgl.system.JNI.invokeI(Native Method)
        at org.lwjgl.glfw.GLFW.glfwInit(GLFW.java:693)
        at com.jme3.system.lwjgl.LwjglWindow.createContext(LwjglWindow.java:193)
        at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:474)
        at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:600)
        at com.jme3.system.lwjgl.LwjglWindow.create(LwjglWindow.java:445)
        at com.jme3.app.LegacyApplication.start(LegacyApplication.java:463)
        at com.jme3.app.LegacyApplication.start(LegacyApplication.java:424)
        at com.jme3.app.SimpleApplication.start(SimpleApplication.java:125)
        at de.darkigames.TheSlaughter.Main.main(Main.java:182)

Jul 02, 2017 4:28:31 PM com.jme3.app.LegacyApplication handleError
SCHWERWIEGEND: GLX: Failed to create context: BadValue (integer parameter out of range for operation)
java.lang.Exception: GLX: Failed to create context: BadValue (integer parameter out of range for operation)
        at com.jme3.system.lwjgl.LwjglWindow$1.invoke(LwjglWindow.java:179)
        at org.lwjgl.glfw.GLFWErrorCallbackI.callback(GLFWErrorCallbackI.java:24)
        at com.jme3.system.lwjgl.LwjglWindow$1.callback(LwjglWindow.java:189)
        at org.lwjgl.system.JNI.invokePPPP(Native Method)
        at org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:1484)
        at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1637)
        at com.jme3.system.lwjgl.LwjglWindow.createContext(LwjglWindow.java:250)
        at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:474)
        at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:600)
        at com.jme3.system.lwjgl.LwjglWindow.create(LwjglWindow.java:445)
        at com.jme3.app.LegacyApplication.start(LegacyApplication.java:463)
        at com.jme3.app.LegacyApplication.start(LegacyApplication.java:424)
        at com.jme3.app.SimpleApplication.start(SimpleApplication.java:125)
        at de.darkigames.TheSlaughter.Main.main(Main.java:182)

Jul 02, 2017 4:28:31 PM com.jme3.app.LegacyApplication handleError
SCHWERWIEGEND: Failed to create display
java.lang.RuntimeException: Failed to create the GLFW window
        at com.jme3.system.lwjgl.LwjglWindow.createContext(LwjglWindow.java:253)
        at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:474)
        at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:600)
        at com.jme3.system.lwjgl.LwjglWindow.create(LwjglWindow.java:445)
        at com.jme3.app.LegacyApplication.start(LegacyApplication.java:463)
        at com.jme3.app.LegacyApplication.start(LegacyApplication.java:424)
        at com.jme3.app.SimpleApplication.start(SimpleApplication.java:125)
        at de.darkigames.TheSlaughter.Main.main(Main.java:182)

I don’t know if this is related to the bug, or rather our old problem with “no awt window before the context has been initialized”…

Edit: glxgears also fails with

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  27
  Current serial number in output stream:  28

So it seems Nvidia just messed it up.

I could never imagine that possible however it seems a reboot solved it.
lwjgl3 doesn’t work though, it says BadPicture.

2 Likes