magmaOffenburg / RoboViz

Monitor and visualization tool for the RoboCup 3D Soccer Simulation League
Apache License 2.0
52 stars 17 forks source link

Exception in thread "main" com.jogamp.opengl.GLException #122

Closed FaazAbidi closed 2 years ago

FaazAbidi commented 2 years ago

I am getting this error on starting RoboViz monitor using the command: ./roboviz.sh

Screenshot: Screenshot from 2022-01-05 12-34-13

I have Java 1.8 and also turned off shadow and high graphics features from config.txt file but still getting the same error.

Any help please?

hannesbraun commented 2 years ago

What version of RoboViz are you using? It's at least not the latest version from what I can see in the stack trace. I suggest upgrading to the latest version (1.8.0). Then, try to run RoboViz again and see if the problem persists. Let me know if that works.

FaazAbidi commented 2 years ago

Thank you for telling me to update. After updating it to the latest version the exception got resolved but now I am getting a different error which seems to be very similar to the previous one.

here it is: Screenshot from 2022-01-05 17-57-31

hannesbraun commented 2 years ago

The error is indeed the same. The error just looks different because we recently restructured a lot of the code. As far as I can tell, this error is not related to RoboViz directly but rather to JOGL or your system. Can you post the output of the command glxinfo?

FaazAbidi commented 2 years ago

Sure. Here you go, Screenshot from 2022-01-05 19-14-17

Seil0 commented 2 years ago

Thank you for telling me to update. After updating it to the latest version the exception got resolved but now I am getting a different error which seems to be very similar to the previous one.

It is a RoboViz <-> GPU Driver issue. RoboViz uses OpenGL2 (I really don't know why that's a hard coded dependency). I'll try to fix this and send you a version with the fix, as soon as my computer stops sabotaging me.

FaazAbidi commented 2 years ago

Thank you so much @Seil0! Looking forward to the fix. I hope your computer behaves.

Seil0 commented 2 years ago

Thank you so much @Seil0! Looking forward to the fix. I hope your computer behaves.

I was a little quick to promise a fix on this issue. It turns out the RoboViz Renderer heavily uses OpenGL2 functions. To fix this one would need to port the renderer to a other opengl profile (opengl4), which I currently can't do.

FaazAbidi commented 2 years ago

That's unfortunate. Any suggestions for fixing this from my end?

Seil0 commented 2 years ago

That's unfortunate. Any suggestions for fixing this from my end?

Since your screenshot shows GL compat version: 4.6, can you tell me:

FaazAbidi commented 2 years ago
FaazAbidi commented 2 years ago

I found the solution for this. There is a command for Mesa that lets you specify the profile. Whoever is facing similar issue can run Roboviz using this command: MESA_GL_VERSION_OVERRIDE=3.0 ./roboviz.sh