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

qt.qpa.xcb: could not connect to display

asked 2022-09-07 05:43:01 -0500

Ruedscher gravatar image

updated 2022-09-07 21:52:53 -0500

ravijoshi gravatar image

I am trying to run turtlesim_node as shown below:

unix20p04p4@DESKTOP-RKF1B6O:~$ ros2 run turtlesim turtlesim_node

Unfortunately, I am getting the following result:

qt.qpa.xcb: could not connect to display                                                                                                                                  qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.                                                                                This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.                                                                                                                                                                                                             Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Please help.

edit retag flag offensive close merge delete

Comments

What OS are you using? Are you using a virtual machine?

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-09-08 06:51:46 -0500 )edit

Did you ever fix this? I am struggling with the same problem...

ItsFark gravatar image ItsFark  ( 2022-10-27 08:45:27 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2022-10-31 07:12:58 -0500

Ruedscher gravatar image

This fixed my problem.

https://answers.ros.org/question/3548...

Greetings

edit flag offensive delete link more
0

answered 2022-09-07 22:10:10 -0500

ravijoshi gravatar image

The problem is unrelated to turtlesim or ROS, for this matter. It is a problem with the display/graphics. A quick Google search gave the following results:

  1. https://forum.qt.io/topic/134114
  2. https://forum.qt.io/topic/134780
  3. https://forum.qt.io/topic/125338
  4. https://forum.qt.io/topic/132855
  5. https://forum.qt.io/topic/137749
  6. https://stackoverflow.com/questions/7...
  7. https://github.com/yuk7/ArchWSL/issue...
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-09-07 05:43:01 -0500

Seen: 14,159 times

Last updated: Oct 31 '22