Ask Your Question

rviz segmentation fault in electric, deb package

asked 2012-07-18 22:22:29 -0500

prince gravatar image

updated 2012-07-18 22:22:55 -0500

I am facing segmentation fault in running rviz (version 1.6.7-s1338538703) in ROS electric on Ubuntu. Installation is done using deb packages.

/opt/ros/electric/stacks/visualization/rviz$ rosrun rviz rviz
[ INFO] [1342705533.959849989]: rviz revision number 1.6.7
[ INFO] [1342705533.959953268]: ogre_tools revision number 1.6.3
[ INFO] [1342705533.959972962]: compiled against OGRE version 1.7.3 (Cthugha)
[ INFO] [1342705533.987722300]: Loading general config from [/home/dst/.rviz/config]
[ INFO] [1342705533.987899751]: Loading display config from [/home/dst/.rviz/display_config]
[ INFO] [1342705534.008773642]: RTT Preferred Mode is PBuffer.
[ INFO] [1342705534.142266475]: Texture for pass 0: creating with size 1 x 1
Segmentation fault

How I could avoid it? Is anyone facing this problem ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-07-19 00:09:21 -0500

weiin gravatar image

updated 2012-10-11 13:17:10 -0500

Have you looked at troubleshooting rviz? It is likely you just need to set OGRE_RTT_MODE

The relevant section says:

Various OpenGL or Ogre things can go wrong during startup. One of them seems to relate to the render-to-texture system. Ogre supports 3 different modes, and rviz uses the "PBuffer" mode by default. Some users have reported some modes cause a segfault during startup, but it is not clear which should be used when.

If you have a problem and want to try another "RTT mode", run rviz with the environment variable OGRE_RTT_MODE set to either "Copy", "PBuffer", or "FBO". For example:

export OGRE_RTT_MODE=Copy
edit flag offensive delete link more


it worked! thanks for the link

prince gravatar image prince  ( 2012-07-19 00:54:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-07-18 22:22:29 -0500

Seen: 330 times

Last updated: Oct 11 '12