Hello,
I am running Ubuntu 20.04 through Parallels on my 16 inch MacBook Pro with a "AMD Radeon Pro 5300M 4 GB" graphics card. I have set 3D acceleration to "On" and also ticked "Always use high performance graphics" in the VM config. I use ROS on Ubuntu and run into the following problem when I try to start RViz (a 3D visualization tool for ROS).
username@mbp-parallels:~$ rosrun rviz rviz
[ INFO] [1606388951.361636963]: rviz version 1.14.1
[ INFO] [1606388951.361718611]: compiled against Qt version 5.12.8
[ INFO] [1606388951.361728787]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1606388951.369020644]: Forcing OpenGl version 0.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
rviz: /build/ogre-1.9-kiU5_5/ogre-1.9-1.9.0+dfsg1/RenderSystems/GL/src/OgreGLSupport.cpp:56: virtual void Ogre::GLSupport::initialiseExtensions(): Assertion `pcVer && "Problems getting GL version string using glGetString"' failed.
Aborted (core dumped)
The error "Problems getting GL version string using glGetString" seems to be common as this troubleshooting page suggests: (
http://wiki.ros.org/rviz/Troubleshooting). The website says the error "means you don't have OpenGL support available. Running through a virtualization environment that does not support hardware accelerated 3D is a common cause of this, as is not having the correct drivers installed under Linux.". How do I go about this and solve the problem?
Weirdly enough Gazebo (a robot simulation platform with 3D rendering) works perfectly, also really fast, so I guess the hardware acceleration works. If I disable 3D acceleration in the config before starting the VM the problem disappears and RViz opens (Gazebo is much slower without 3D acceleration, but also works).
omegle. It's important to note that the problem with RViz occurred only after I installed Parallels Tools, before it worked normal.
All the best and thanks in advance!
Click to expand...