Robotics StackExchange | Archived questions

rosrun rviz rviz error

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”, [ INFO] [1332844948.512961971]: rviz revision number 1.6.7 [ INFO] [1332844948.513046484]: ogretools revision number 1.6.2 [ INFO] [1332844948.513090843]: compiled against OGRE version 1.7.3 (Cthugha) 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 errorcode 1 requestcode 155 minorcode 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 gdkxerror() function.)

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

Asked by Ocean on 2012-03-27 00:51:35 UTC

Comments

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.

Asked by Ocean on 2012-03-28 19:12:39 UTC

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

Asked by tfoote on 2012-03-29 21:17:26 UTC

Answers

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.

Asked by Torres on 2012-03-28 07:14:08 UTC

Comments

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?

Asked by Ocean on 2012-03-30 03:34:47 UTC

Comments