问题描述:
最近在docker中安装ros后,启动rviz后,会出现如下报错
# rosrun rviz rviz
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
[ INFO] [1614239106.900079430]: rviz version 1.13.15
[ INFO] [1614239106.900133052]: compiled against Qt version 5.9.5
[ INFO] [1614239106.900144142]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1614239106.911075450]: Forcing OpenGl version 0.
dbus[623]: 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
Aborted (core dumped)
解决方法:
两种解决方法:
1.在
docker run
中添加--privileged
参数2.在
docker run
中去掉--network host
参数