qt.qpa.xcb: could not connect to display
-
wrote on 2 Dec 2020, 20:16 last edited by
FYI I had this issue when I had ssh-ed into localhost for port forwarding and tried to start it from there. A fresh terminal worked.
What I am trying to say is: Check if your $DISPLAY ist set correctly for the process and that it can communicate. -
wrote on 6 Feb 2022, 11:20 last edited by
hi guys,
I have the same error when issuing the following command:
ros2 run turtlesim turtlesim_nodeMy environment:
Running ubuntu20.04 server with ROS2 foxy desktop on Raspberry Pi 4.
Using windows10 putty ssh to access raspberry pi 4 and login into its ubuntu,
and issued the command "ros2 run turtlesim turtlesim_node"Error message:
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 advise.
Thanks. -
hi guys,
I have the same error when issuing the following command:
ros2 run turtlesim turtlesim_nodeMy environment:
Running ubuntu20.04 server with ROS2 foxy desktop on Raspberry Pi 4.
Using windows10 putty ssh to access raspberry pi 4 and login into its ubuntu,
and issued the command "ros2 run turtlesim turtlesim_node"Error message:
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 advise.
Thanks.wrote on 6 Feb 2022, 15:06 last edited by@John-M-T
Duplicate post of your https://forum.qt.io/topic/134114/error-when-launching-rqt.