Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Docker display and GUI apps with Qt Platform in ROS #1478

Open
developajarit opened this issue Dec 21, 2023 · 1 comment
Open

Comments

@developajarit
Copy link

Hello everyone! I am using Docker on Ubuntu 20.04. Also, I am using the ROS Noetic Image in Docker. (because I am practicing with Docker). I use 'docker pull ros:noetic' to install ros:noetic image.

I'm going to explain the steps I follow to open a GUI application like RVIZ:

  1. I create a docker containner with the image of ros:noetic with 'docker run -it ros:noetic
  2. When I am inside te containner, y use 'source /opt/ros/noetic/setup.bash', then I run 'sudo apt-get update'.
  3. When this has finalized, I run 'sudo apt-get install ros-noetic-rviz' to install RVIZ
  4. After that, I run roscore with 'roscore'
  5. Then, I open a new terminal and I use 'docker exec -it (containner name) bash
  6. I repeat 'source /opt/ros/noetic/setup.bash' in this containner and then I run 'rosrun rviz rviz'
  7. And here is the error:

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: dxcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.


I see some issues like this but it didn't give me the solution...
(I am a begginer in this)

@thisiseshan
Copy link

Running into the same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants