Hi, i’m getting a trouble with starting up my application. The jMonkey runs perfectly, it gives no error. But when i run the project, and then clicked continue to start the game, the error appears.
My OS is Ubuntu 16.04.3 LTS 64-bit.
At first, the app are close and gaves 134 exit code, which is the forum tells it’s the driver problem, then i tried to switch the graphics cards, (because my nvidia driver were just installed and it’s really the latest one). I used intell, restarted, and got no luck. Then one of the forum says, try to run it on Root Privileges, i tried, but this one, it gaves me this kind of error:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Nov 12, 2017 3:55:24 AM com.jme3.app.LegacyApplication handleError
SEVERE: Failed to create display
org.lwjgl.LWJGLException: X Error - disp: 0x7f559c013470 serial: 95 error: GLXBadContext request_code: 154 minor_code: 4
The project is running normally when i switched to Windows. Did i do something wrong? Or has suggestion to overcome the problem?
What do you mean by this? Can you run a sample jME project? (The one with the blue cube)
Assuming you have a Nvidia graphics card (and that you already tried all proprietary drivers you can), can you try using the Nouveau driver? (You can select it by going to the Dashboard and typing “Additional Drivers”
Also are you trying to launch the game in fullscreen mode? I’m having a similar issue, but in case you are, try launching in windowed mode (which works for me).
How did you install this driver? and which version do you use?
As far as I remember, jME samples use JWJGL2 as backend, but I think you use LWJGL3, so you can switch to LWJGL2 for your project.
If you’re using jMonkey’s SDK, you can simply Create a New Project > jME3 > BasicGame. It will bootstrap your project with the sample blue cube.
Also, I found out the root problem in my case: it was the refresh rate. If you run your game, it should show the settings dialog. Can you take a screenshot of that please?
That’s bad. Did you run anything related to jMonkey (the project or the SDK) with sudo? I know that can break a lot of things, you should never use sudo unless specifically told to.
Does the project run in windowed mode?
Also, tick the fullscreen check box, I’m interested in seeing what refresh rate values it gives you.
I don’t know how to do it in the SDK(I don’t use it), but in the case with other IDEs, you need to replace the module jme3-lwjgl3 to jme3-lwjgl in your dependencies.
Im currently investigating a jME/Java problem that is happening on Ubuntu. In case you still have the system installed, can you write this simple test case and tell me the results?
I’ll try then. I even tried installing the latest nvidia drivers, which resulted in my computer being unusable, so I had to uninstall them and use only the latest version Ubuntu points me to. I’ll report when I finish then.