Failed to init OpenGL context, Ubuntu Canvas mode

Hey guys,

I’m trying to help someone with our virtual reality library. Looks like he is getting an exception when X Windows (on his Ubuntu 14.04 machine) tries to create a window via Java:

SEVERE: Failed to initialize OpenGL context
org.lwjgl.LWJGLException: X Error - disp: 0x7efecc030dd0 serial: 51 error: BadMatch (invalid parameter attributes) request_code: 1 minor_code: 0
at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:320)
at org.lwjgl.opengl.LinuxDisplay.nCreateWindow(Native Method)
at org.lwjgl.opengl.LinuxDisplay.createWindow(LinuxDisplay.java:495)
at org.lwjgl.opengl.Display.createWindow(Display.java:306)
at org.lwjgl.opengl.Display.create(Display.java:848)
at org.lwjgl.opengl.Display.create(Display.java:757)
at com.jme3.system.lwjgl.LwjglCanvas.createContext(LwjglCanvas.java:469)
at com.jme3.system.lwjgl.LwjglCanvas.restoreCanvas(LwjglCanvas.java:267)
at com.jme3.system.lwjgl.LwjglCanvas.runLoop(LwjglCanvas.java:196)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:233)
at java.lang.Thread.run(Thread.java:745)

Any ideas? :-\

This is one of the reasons we stopped using canvas in the SDK … Issues like this.

They are a key element to getting my “easy Extended” mode to work in the virtual reality library. It works great on my laptop & someone confirmed it working great on another Linux machine. I hope this mode continues to be supported! I’ll see if I can get some more information…

Also, I’ll quickly add: when you guys port to LWJGL 3.0, which has better multi-display support, it’ll likely be safe to drop this canvas stuff.