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

QXcb connection XCB error 170

asked 2018-05-25 04:04:25 -0500

parzival gravatar image

updated 2019-12-25 08:43:05 -0500

130s gravatar image

I'm running ROS Kinetic on unbuntu 16.04 on a windows 10 machine along with Xming. I've been trying the Moveit! tutorials but when i type:

roslaunch panda_moveit_config demo.launch rviz_tutorial:=true

the rviz logo flashes for less than a second then the window disappears.

I'm getting an error which says QXcb connection XCB error 170, but then it says you can start planning now! but no window appears.

Please help.

The ros beginner tutorials and turtlesim worked perfectly. So it's not a problem with Xming.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2020-02-11 19:50:38 -0500

M@t gravatar image

updated 2020-02-11 20:00:32 -0500

I found one possible cause/solution to this problem in this blog post: Running ROS on Windows 10. The problem was that the LIBGL_ALWAYS_INDIRECT flag was set to 1. As per the blog post:

it is not possible to launch rviz when this indirection is active

Setting it to 0 fixed the problem for me and allowed me to run rviz properly:


You can check what it is currently set to using:


It seems that every new WSL (I assume you are using WSL to run Linux/ROS on Windows) shell defaults this flag to 1. So you may need to add the export command to your .bashrc file.

I should also mention that I do still see the error. The only difference is that with it set to 0, Rviz will actually launch.

edit flag offensive delete link more

answered 2019-12-25 08:56:45 -0500

130s gravatar image

May not answer to the question directly though,

  • I see Qxcb error, meaning the problem is related X. RViz is graphic instensive much more than other simpler GUI tools.
    • I see you're on Windows. For Windows + X, #q335787 gives a good list of things to look at.
  • Took a brief look at panda_moveit_config/launch (as I've seen multiple questions reporting similar issue with this package). So far I don't see anything particularly concerning regarding RViz operation.
    • I've struggled a lot in using RViz over X in our product development. My conclusion so far is unfortunately I moved away from X and use something else (Remote Desktop etc.) to guarantee a consistent behavior.
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-05-25 04:04:25 -0500

Seen: 3,290 times

Last updated: Feb 11 '20