Force rviz software rendering [closed]

asked 2015-01-20 03:12:20 -0600

Hansg91 gravatar image

I'm using a Parallels with a virtual Ubuntu server installed for ROS. My idea was to use ssh with X11 forwarding to this virtual machine so that I more or less have the same functionality of Ubuntu but in my OSX environment. I have installed Parallel tools (video drivers etc.) and if I run glxinfo | grep NVIDIA I do indeed see :

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GT 650M OpenGL Engine
OpenGL version string: 1.4 (2.1 NVIDIA-10.0.43 310.41.05f01)

However OpenGL version string is set to 1.4, don't know why.. When I run rviz I get the following error:

[ INFO] [1421744895.688687978]: rviz version 1.11.4
[ INFO] [1421744895.688798006]: compiled against OGRE version 1.8.1 (Byatis)
[ INFO] [1421744896.655191351]: Stereo is NOT SUPPORTED
[ INFO] [1421744896.657271963]: OpenGl version: 1.4 (GLSL 0).
terminate called after throwing an instance of 'std::runtime_error'
  what():  Your graphics driver does not support OpenGL 2.1. Please enable software rendering before running RViz (e.g. type 'export LIBGL_ALWAYS_SOFTWARE=1').

I tried the suggestion, running it with LIBGL_ALWAYS_SOFTWARE=1, but if I do so I get the exact same error.. as if it is ignoring that environment variable. My question: how can I force rviz to use software rendering, or even better, how come hardware rendering is disabled?

Checking with ldd the libraries rviz depends on shows it depends on the mesa libGL.so. I also found a parallel tools libGL.so but replacing the mesa one with parallels did not change anything..

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-12-20 00:08:49.458407

Comments

1

If you're using Parallels, why not use coherence mode? http://download.parallels.com/desktop...

William gravatar image William  ( 2015-01-20 14:01:44 -0600 )edit
1

I'm not sure why LIBGL_ALWAYS_SOFTWARE=1 is not working, that might be an OGRE thing which changed. I've never had good experience using X11 forwarding with GL apps of any complexity (also things that use shaders).

William gravatar image William  ( 2015-01-20 14:02:47 -0600 )edit

Hey @William, I figured there would be less overhead if I used Ubuntu Server (so no coherence) and use ssh with X11 forwarding. Unfortunately though it seems that the OpenGL forwarding of this scenario is quite limited.. (opengl 1.4 only?)

Hansg91 gravatar image Hansg91  ( 2015-01-22 07:21:45 -0600 )edit

I'm not sure the overhead of running Ubuntu Desktop is enough to justify the X11 option, but that would just be my gut feeling.

William gravatar image William  ( 2015-01-22 12:09:18 -0600 )edit