Cannot start rviz within ADE
Description
How to Reproduce
On my laptop with an Nvidia
cd AutowareAuto
ade start --update --enter
@ade:~$ rviz2
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-frederik.beaujean'
1619448576.218897 [186] rviz2: using network interface wlp82s0 (udp/192.168.178.54) selected arbitrarily from: wlp82s0, docker0
dbus[10816]: 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
I have an Nvidia card
$ nvidia-smi
Mon Apr 26 16:48:19 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.119.03 Driver Version: 450.119.03 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Quadro T1000 Off | 00000000:01:00.0 On | N/A |
| N/A 48C P8 3W / N/A | 853MiB / 3911MiB | 16% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
Current Behavior
Cannot start rviz2, same for rqt
ade$ sudo apt update
ade$ sudo apt install ros-foxy-rqt*
ade$ rqt
Expected behavior
rviz2 window pops up. This happened before
Things I tried
I removed this line from .aderc
export ADE_DISABLE_NVIDIA_DOCKER=true
and this allowed me to run glxgears
inside ADE but didn't solve the error reported above.
I had someone else try it on his machine and he got the same error.
Similar issues and references
Many hits in a web search but none helped me solve it
Workaround
From #1053 (comment 561670557)
Use the current version of .aderc-lgsvl
Alternatively, remove export ADE_DISABLE_NVIDIA_DOCKER=true
and add --privileged --add-host ade:127.0.0.1
to the `ADE_DOCKER_RUN_ARGS
Edited by Frederik Beaujean