Closed bluenote10 closed 9 years ago
Looks like this is the first crash:
org.lwjgl.LWJGLException: X Error - disp: 0x7efecc030dd0 serial: 51 error: BadMatch (invalid parameter attributes) request_code: 1 minor_code: 0
Once that crashes, stuff apparently still tries to run like Keyboard initialization, which fails.
"X Error" I suspect means "X" as in "X Windows", and it is having trouble creating an X window that is suppose to be the JFrame where jMonkeyEngine will be rendering stuff. I'll post this question to the main jME3 team & see if they have any ideas.
Posted question here:
http://hub.jmonkeyengine.org/t/failed-to-init-opengl-context-ubuntu-canvas-mode/33204
Looking a little more into this... I bet a display mode is trying to be set for the Rift, but failing. Do you have your Rift plugged in, or any other external display device? It shouldn't try setting any display mode that isn't listed as an available one, so this is rather odd...
Can you use the source, instead of the JMonkeyVR.jar file, and step through the problem? Perhaps you can see what DisplayMode is trying to be set inside VRApplication...
I managed to get it to run. The problem was caused by my xorg configuration: I was running two separate screens, one for the Desktop and one for the Rift (because this gave me better performance in some cases). It looks like this configuration does not work currently. I now switched back to a regular twin mode and now it works. Unfortunately, I have exactly the same massive judder I get with JOVR. I take it that by default you have timewarp enabled, right?
Timewarp isn't implemented in OpenVR. However, it isn't that useful when you are hitting your target frame rate (which is a must, in my opinion).
I suspect the judder you are seeing is because of refresh rate problems. I bet your "twin" screen wants to refresh at the same rate as your primary monitor. You are not trying to use an Optimus NVidia/Intel HD setup, are you?
I made a new commit -- looks like display configuration might not have been initialized right. Can you give this another try? Here is the commit:
I was just trying to run your recent JME demo you posted on reddit. I hope that this is the right place to report issues (though I'm not sure if it's an issue with the demo or the engine itself). I'm currently stuck with the issue that the OpenGL context cannot be created.
I get a popup window which reports the
java.lang.IllegalStateException: Keyboard must be created before you can poll the device
but I guess the actual cause is a problem with the OpenGL context itself. I have no idea what could be wrong -- all other OpenGL stuff is running fine on my system (Ubuntu 14.04, GeForce GTX 670).