ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

RViz Crashes with Out of Memory Exception

asked 2016-02-01 18:07:58 -0500

Bidski gravatar image

updated 2016-02-01 19:49:19 -0500

I am repeatedly publishing Markers and MarkerArrays to RViz and then, randomly, this error occurs. Does anyone know what might be causing this?

I am running RViz from inside a docker container using the X11 server of my Ubuntu 12.04 host. The docker container is running ROS Jade and Ubuntu 14.04. RViz reports the OpenGL version as 4.5.

[ WARN] [1454370341.533289122]: OGRE EXCEPTION(7:InternalErrorException): Index Buffer: Out of memory in GLHardwareIndexBuffer::lock at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLHardwareIndexBuffer.cpp (line 121)
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Ogre::InternalErrorException'
  what():  OGRE EXCEPTION(7:InternalErrorException): Index Buffer: Out of memory in GLHardwareIndexBuffer::lock at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLHardwareIndexBuffer.cpp (line 121)
bash: line 1:  2140 Aborted                 (core dumped) rosrun rviz rviz --no-stereo -d /home/bidski/catkin_ws/src/structure_modeller/structure_modeller.rviz
edit retag flag offensive close merge delete



Are you properly publishing the markers? That is, deleting/rewriting them ?

Javier V. Gómez gravatar image Javier V. Gómez  ( 2016-02-02 05:13:18 -0500 )edit

Does publishing a marker with the same namespace and id not overwrite the previous one?

Bidski gravatar image Bidski  ( 2016-02-02 16:05:49 -0500 )edit

How much memory do you have? Have you checked that your machine still has free RAM when rviz crashes?

ahendrix gravatar image ahendrix  ( 2016-03-05 13:57:45 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2016-03-05 10:08:25 -0500

ruffsl gravatar image

Does this error appear during the starting rviz, or well after its running?
Is this an issue that --env="QT_X11_NO_MITSHM=1" would solve?
See the end of this ros wiki tutorial:

The other thing, how are you enabling hardware acceleration for opengl in the container? I've only been able to install the graphics driver in the image, and mount the GPU devices to the container to get dedicated hardware to work. I though I got away without this if my machine was using an integrated graphics instead.
More on those topics:

edit flag offensive delete link more

Question Tools



Asked: 2016-02-01 18:07:58 -0500

Seen: 1,066 times

Last updated: Mar 05 '16