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(
at org.lwjgl.opengl.LinuxDisplay.nCreateWindow(Native Method)
at org.lwjgl.opengl.LinuxDisplay.createWindow(
at org.lwjgl.opengl.Display.createWindow(
at org.lwjgl.opengl.Display.create(
at org.lwjgl.opengl.Display.create(
at com.jme3.system.lwjgl.LwjglCanvas.createContext(
at com.jme3.system.lwjgl.LwjglCanvas.restoreCanvas(
at com.jme3.system.lwjgl.LwjglCanvas.runLoop(

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.