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

rviz segmentation fault at launch

asked 2011-09-29 17:27:10 -0600

Freek gravatar image

updated 2011-11-05 10:43:47 -0600

kwc gravatar image

Hi all,

I've been working with ROS for about 1.5 year now. I've just upgraded from Diamondback to Electric and everything seemed to be working fine, even rviz was still working. Today rviz started having a segmentation fault at launch.

I've tried to look for similar errors on the web and tried a few solutions, but haven't got it to work yet.

Output of rviz launch (sorry, but couldn't get it as a bullet points...):

freek@freek:~$ rosrun rviz rviz -l 
[ INFO] [1317359486.500866894]: rviz revision number 1.6.4 
[ INFO] [1317359486.500952896]: ogre_tools revision number 1.6.2 
[ INFO] [1317359486.500971041]: compiled against OGRE version 1.7.3 (Cthugha)
[ INFO] [1317359486.555935684]: Loading general config from [/home/freek/.rviz/config] 
[ INFO] [1317359486.556150849]: Loading display config from [/home/freek/.rviz/display_config] 
[ INFO] [1317359486.610373794]: RTT Preferred Mode is PBuffer. 
[ INFO] [1317359486.972239772]: Texture for pass 0: creating with size 1 x 1 
[ INFO] [1317359486.980397155]: Texture for pass 1: creating with size 1 x 1 
[ INFO] [1317359487.161710770]: RTT Preferred Mode is PBuffer. Segmentation fault (core dumped)

As you can see I've got the core file (memory dump) as well, but can't upload it here. I've tried setting the RTT mode to either Copy or FBO but this doesn't solve the issue. I've also got the .Ogre file if anyone is interested.

I'm running Ubuntu 10.10 and have the latest nvidia (Quadro FX880M) drivers installed:

freek@freek:~$ glxinfo |grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL version string: 3.3.0 NVIDIA 280.13
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler

Any help is welcome :)

edit retag flag offensive close merge delete

7 Answers

Sort by ยป oldest newest most voted
4

answered 2011-09-30 06:41:05 -0600

Dave gravatar image

I just had the same issue. I fixed it by editing the .rviz/display_config file that rviz was using by default. I basically just deleted most of it, and then rviz launched sucessfully.

edit flag offensive delete link more

Comments

I will try this today or tomorrow, will let you know. Thanks
Freek gravatar image Freek  ( 2011-10-03 17:31:45 -0600 )edit
This solved the issue for me as well! Thank you, can't believe I didn't try this :)
Freek gravatar image Freek  ( 2011-10-05 14:44:22 -0600 )edit
Freek, please mark this as the solution if it worked for you.
Asomerville gravatar image Asomerville  ( 2011-11-03 06:57:15 -0600 )edit
4

answered 2011-11-03 06:25:15 -0600

Daniel Canelhas gravatar image

I had a similar issue (segfault at start-up). After deleting my personal configuration files in ~/.rviz i got it to work.

There was a bug earlier caused by doing this, but it is marked as fixed now. Warning: You do lose your topic subscriptions and window settings by doing this though.

edit flag offensive delete link more
3

answered 2017-04-16 18:40:02 -0600

sachitv gravatar image

Hi all,

I spent a load of time fixing these issues. What I realised is that Virtualbox is being a nasty little rascal with it's 3d Acceleration.

Switching if off fixed these issues for me.

  1. Switch off your VM
  2. Just go to the VM Settings -> Display -> Uncheck Enable 3D Acceleration.
  3. Start your VM again.
  4. Rejoice!
edit flag offensive delete link more

Comments

Hey sachitv , Thanks for solution. This is worked for me

viveksudani gravatar image viveksudani  ( 2018-02-05 11:01:56 -0600 )edit
2

answered 2011-11-21 14:24:59 -0600

Roman Burdakov gravatar image

updated 2011-11-21 14:27:29 -0600

I just got this problem as well. I use 10.4 and electric:

user@ubuntu:~/.rviz$ rosrun rviz rviz
[ INFO] [1321935622.778521758]: rviz revision number 1.6.6
[ INFO] [1321935622.778786716]: ogre_tools revision number 1.6.2
[ INFO] [1321935622.778826499]: compiled against OGRE version 1.7.3 (Cthugha)
[ INFO] [1321935622.887818975]: Loading general config from [/home/user/.rviz/config]
[ INFO] [1321935622.888264749]: Loading display config from [/home/user/.rviz/display_config]
[ INFO] [1321935622.966972423]: RTT Preferred Mode is PBuffer.
[ INFO] [1321935623.281105694]: Texture for pass 0: creating with size 1 x 1
Segmentation fault

I tried to remove lines in display_config - it didn't help. I removed both configs - got same results. Few times I had different error which actually did come up here as well:

user@ubuntu:~/.rviz$ rosrun rviz rviz -d 'rospack find turtlebot_interactive_markers'/config/interactive_markers.vcg 
[ INFO] [1321935611.525499608]: rviz revision number 1.6.6
[ INFO] [1321935611.525703015]: ogre_tools revision number 1.6.2
[ INFO] [1321935611.525739543]: compiled against OGRE version 1.7.3 (Cthugha)
[ INFO] [1321935611.639785830]: Loading general config from [/home/user/.rviz/config]
[ INFO] [1321935611.640200506]: Loading display config from [/home/user/.rviz/display_config]
[ INFO] [1321935611.700409981]: RTT Preferred Mode is PBuffer.
The program 'rviz' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 21 error_code 9 request_code 55 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Any ideas (other than remove files)? Thanks.

edit flag offensive delete link more

Comments

@Roman Burdakov this is a different error you should ask a different question.
tfoote gravatar image tfoote  ( 2011-11-21 17:36:15 -0600 )edit
1

answered 2011-10-02 05:17:17 -0600

Paul0nc gravatar image

I get the same error (running Ubuntu 10.4, electric), but with the following added when I try to run rviz a second time:

The program 'rviz' received an X Window System error. This probably reflects a bug in the program. The error was 'BadDrawable (invalid Pixmap or Window parameter)'. (Details: serial 22 error_code 9 request_code 136 minor_code 3) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)

edit flag offensive delete link more

Comments

I received this error from rviz once too. Restarting my computer solved the problem, but that is not a particularly desirable solution as I still have no idea what caused the original error.
akargol gravatar image akargol  ( 2011-10-10 07:33:55 -0600 )edit
i have the same question,i don't know how
emerson gravatar image emerson  ( 2011-10-20 02:52:57 -0600 )edit
0

answered 2011-11-21 03:17:03 -0600

Alaina gravatar image

Daniel, thanks! I did exactly that (deleted everything in ~/.rviz) and it worked.

edit flag offensive delete link more

Comments

1
Hi Alaina. This really shouldn't be posted as an answer but rather a comment on Dave's answer. I'd suggest deleting it and repost as a comment (and up-vote his answer as well)
Asomerville gravatar image Asomerville  ( 2011-11-21 05:55:27 -0600 )edit
0

answered 2015-03-28 08:14:22 -0600

sudo apt-get remove --purge xserver-xorg

sudo apt-get install xserver-xorg

sudo dpkg-reconfigure xserver-xorg

And then: sudo reboot

This solution work for me

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-09-29 17:27:10 -0600

Seen: 13,513 times

Last updated: Nov 21 '11