Ask Your Question
0

rosrun rviz rviz error [closed]

asked 2012-03-27 00:51:35 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

lihaiyang@ubuntu:~$ rosrun rviz rviz

(rviz:3193): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“pixmap”,

(rviz:3193): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“pixmap”,

(rviz:3193): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“pixmap”,

(rviz:3193): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“pixmap”, The program 'rviz' received an X Window System error. This probably reflects a bug in the program. The error was 'BadRequest (invalid request code or no such operation)'. (Details: serial 12 error_code 1 request_code 155 minor_code 19) (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.)

When I run the command it does not show the rviz interface,i don`t know why?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by kwc
close date 2012-03-30 11:57:37

Comments

1

Today I reinstall the ros,and when I run the command 'rosrun rviz rviz',it showed the rviz interface.I`m very happy,and also I want to thank Torres all the same.

Ocean gravatar image Ocean  ( 2012-03-28 19:12:39 -0500 )edit

@Ocean please answer your own question and accept it or accept Torres's answer so others know that this is not an open issue.

tfoote gravatar image tfoote  ( 2012-03-29 21:17:26 -0500 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2012-03-28 07:14:08 -0500

Torres gravatar image

updated 2012-03-28 07:14:47 -0500

Hi lihaiyang, 你好. Just try running "rosrun rviz rviz" a few times (<10).

If the problem still persist, try this:

1) cd

2) nano ~/.rviz/display_config

3) remove all the contents (hold on to Ctrl-k to cut it line by line)

4) exit (Ctrl-x)

5) save modified buffer (y)

6) enter

7) rosrun rviz rviz

Hope it helps.

edit flag offensive delete link more
0

answered 2012-03-30 03:34:47 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

The problem does not exist in Ubuntu-VMware when I reinstall ROS.But it still exists in Ubuntu(not in VirtualBox),and I followed Torres` advice.However,when I run step 2 the terminal does not show any content,and when I run step 5,it warns me 'write to /home/lihaiyang/.rviz/display_config error:does not have the file or directory ]‘,so does anyone know how to do next?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-03-27 00:51:35 -0500

Seen: 774 times

Last updated: Mar 30 '12