rviz over ssh

asked 2020-07-22 15:12:49 -0500

madmax gravatar image

We have a host with ubuntu 18.04 and ROS2 eloquent installed.
Then we have 2 clients, one with native ubuntu 18.04 and nvidia graphics card and the other client runs inside a virtual machine (also ubuntu 18.04).

The client on the virtual machine works fine but the native one fails with these errors:

libGL error: No matching fbConfigs or visuals found
[rviz2-1] libGL error: failed to load driver: swrast
[rviz2-1] libGL error: No matching fbConfigs or visuals found
[rviz2-1] libGL error: failed to load driver: swrast
[rviz2-1] libGL error: No matching fbConfigs or visuals found
[rviz2-1] libGL error: failed to load driver: swrast
[rviz2-1] 1595445979.467852569: [rviz2] [ERROR] Failed to create an OpenGL context. BadValue (integer parameter out of range for operation)
[rviz2-1] 1595445979.468437428: [rviz2] [ERROR] RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /tmp/binarydeb/ros-eloquent-rviz-ogre-vendor-7.0.5/obj-x86_64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)
[rviz2-1] 1595445979.474320727: [rviz2] [ERROR] rviz::RenderSystem: error creating render window: RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /tmp/binarydeb/ros-eloquent-rviz-ogre-vendor-7.0.5/obj-x86_64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)

Why is it working on the client with virtualized hardware and not on the other one?
I tried the known environment vars suggested for opengl bugs in rviz but they didn't help.

edit retag flag offensive close merge delete