ROS & Docker: Unable to get rqt to start

asked 2020-05-12 02:02:15 -0500

ea-testing gravatar image


Every time I try to start rqt or rviz I get the following string of errors:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
dbus[1795]: The last reference on a connection was dropped without closing the connection. This is a bug in an application. See dbus_connection_unref() documentation for details.
Most likely, the application was supposed to call dbus_connection_close(), since this is a private connection.
  D-Bus not built with -rdynamic so unable to print a backtrace
zsh: abort (core dumped)  rqt

The docker container is given as

sudo docker run -it --env "DISPLAY" --env="QT_X11_NO_MITSHM=1" --device=/dev/dri:/dev/dri --net=host --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --name ros_main_test ros:melodic-ros-core-bionic

I started roscore.

Installed ros-melodic-desktop-full, Qt5, Qt4, xserver-xorg, and a few other packages

Checked the docs and was following this for intel:

glx gears work fine, but I cannot launch rqt.

Anyone have any ideas on what I can do?

edit retag flag offensive close merge delete


I was able to get rqt working in docker with the docker-nvidia extensions installed. If you have an nvidia card did you also setup those extensions?

guru_florida gravatar image guru_florida  ( 2020-12-04 23:04:20 -0500 )edit