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

Rviz errors out with an "X Window System error"

asked 2011-10-19 20:58:01 -0500

this post is marked as community wiki

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

When I run the command

$ rosrun rviz rviz

It fails with:

The program 'rviz' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.
(Details: serial 17 error_code 16 request_code 153 minor_code 17)
(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.)

It seemed to happen out of nowhere. It was working before.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
1

answered 2011-10-20 23:03:37 -0500

this post is marked as community wiki

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

yesterday,this problem occur,and i try to restart my PC so many time but problem still there. today,when i use the ubuntu(10.04) ,the "Update Manager" pop a window to tell us to update,i do so. then i try to run rviz again,awesome it works!!

ok,i still don't how the problem is solved,but it works anyway.

edit flag offensive delete link more
1

answered 2011-10-21 05:14:58 -0500

this post is marked as community wiki

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

I had this same problem after updating Ubuntu. I came across this related answer and tried the suggestion and it worked:

http://answers.ros.org/question/2109/rviz-in-ros-electric

Basically I did sudo rm /usr/lib/libGL.so* and it worked.

edit flag offensive delete link more

Comments

I would warn against removing libraries using `rm`. It is immensely much preferred to remove them via the package system if possible. At the very least, always back up the files you are going to delete so that you can undo if necessary.
Asomerville gravatar image Asomerville  ( 2011-10-21 07:49:58 -0500 )edit
1

answered 2011-10-20 03:41:39 -0500

this post is marked as community wiki

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

I have this problem as well on my laptop. The practical answer is to restart rviz a couple of times.

edit flag offensive delete link more
0

answered 2011-10-19 23:35:24 -0500

Julian L gravatar image

same here:

[ INFO] [1319109792.329615682]: rviz revision number 1.6.4
[ INFO] [1319109792.329736412]: ogre_tools revision number 1.6.2
[ INFO] [1319109792.329762633]: 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 'BadLength (poly request too large or internal Xlib length erro'.
      (Details: serial 17 error_code 16 request_code 155 minor_code 17)
      (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.)

It occurs since the last update of Ubuntu 10.10. The History of the Ubuntu Software Center shows that beside others xserver-common and xserver-xorg-core were updated. The same error occurs when I switch back to ros diamondback and then run the roscore and rviz.

edit flag offensive delete link more

Comments

Point of Order: Since this isn't an answer, this really should be added as a comment instead.
Asomerville gravatar image Asomerville  ( 2011-10-20 02:05:48 -0500 )edit
I use ubuntu 10.04 ,diamondback,and never upgrade to 10.10.so how to solve it?
emerson gravatar image emerson  ( 2011-10-20 02:32:50 -0500 )edit

Question Tools

Stats

Asked: 2011-10-19 20:58:01 -0500

Seen: 2,166 times

Last updated: Oct 21 '11