rviz::RenderSystem: error creating render window: std::exception

asked 2016-04-26 06:01:36 -0600

alessia.cao gravatar image

Hello everyone, I'm trying to run rviz on an ARM structured Single Board Computer named LeMaker Guitar, you can find its hardware specifications here: LeMaker Guitar Hardware Specification it's Quad-core ARM® Cortex™-A9R4 CPU and PoweVR SGX544 GPU. The OS I made is based on linaro release ubuntu 14.04 root file system.

When I did't enable the LeMaker_Guitar:GPU_hardware_acceleration the GPU performance is bad for the ROS rviz GUI. Thus, I enabled the GPU hardware acceleration. But it turns out that rviz can't start its GUI, the following log info shows error creating render window. It seems to be conflicts with GPU library and OGRE (opengl.es vs. opengl)::

My questions are: How to specifiy the GPU library that ROS will use when installing ROS by compiling from source? How to orient, set and link the GPU library after the ROS is installed?

[ INFO] [1460092295.219885811]: rviz version 1.11.14
[ INFO] [1460092295.220223561]: compiled against Qt version 4.8.6
[ INFO] [1460092295.220310811]: compiled against OGRE version 1.8.1 (Byatis)
rviz::RenderSystem: error creating render window: std::exception
[ WARN] [1460092295.920253311]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)
rviz::RenderSystem: error creating render window: std::exception
[ WARN] [1460092295.921731061]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)
rviz::RenderSystem: error creating render window: std::exception
[ WARN] [1460092295.922808811]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)
rviz::RenderSystem: error creating render window: std::exception
[ WARN] [1460092295.923860061]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)
rviz::RenderSystem: error creating render window: std::exception
[ WARN] [1460092295.924876561]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)
rviz::RenderSystem: error creating render window: std::exception
[ WARN] [1460092295.925851561]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)
rviz::RenderSystem: error creating render window: std::exception
[ WARN] [1460092295.926790561]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)
rviz::RenderSystem: error creating render window: std::exception
[ WARN] [1460092295.927775561]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists ...
(more)
edit retag flag offensive close merge delete

Comments

This looks similar, did you look at it? http://answers.ros.org/question/54090...

William gravatar imageWilliam ( 2016-04-26 13:44:19 -0600 )edit

Hi William. Thanks. but this is not the same case. The ERROR is not the same. Moreover, I'm compiling from source code on ARM structured SBC, not desktops.

alessia.cao gravatar imagealessia.cao ( 2016-04-26 22:01:33 -0600 )edit

It sounds to me that you don't have the driver for your hardware acceleration installed. You don't need to rebuild rviz to enable different graphics drivers. That is selected by the OS, rviz doesn't link against any particular driver. Make sure you can run glxgears before trying to run rviz.

William gravatar imageWilliam ( 2016-04-27 15:25:36 -0600 )edit

Hi William, the GPU is PoweVR SGX544 and LeMaker Guitar has its hardware acceleration set according to the SoC Producer, Actions. The opengl and opengles lib are originally modified. That's why I asked this Question. One more thing, why do you say glxgears should be working at first?

alessia.cao gravatar imagealessia.cao ( 2016-04-27 22:10:58 -0600 )edit

If glxgears doesn't work then rviz probably won't either. glxgears is a test program to make sure your graphics accelerations are working.

William gravatar imageWilliam ( 2016-04-28 18:15:18 -0600 )edit