start rviz2 failed in the docker container for jetson agx xavier
create a container,as follows:
docker run -it --rm \ --user=$(id -u $USER):$(id -g $USER) \ --workdir="/home/$USER/" \ --volume="/home/$USER:/home/$USER" \ --volume="/etc/group:/etc/group:ro" \ --volume="/etc/passwd:/etc/passwd:ro" \ --volume="/etc/shadow:/etc/shadow:ro" \ --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \ --volume="/dev/shm:/dev/shm" \ --net=host \ --gpus=all \ -e DISPLAY \ -e QT_X11_NO_MITSHM=1 \ -e XAUTHORITY=/tmp/.docker.xauth \ -v /tmp/.docker.xauth:/tmp/.docker.xauth \ -v /tmp/.X11-unix:/tmp/.X11-unix \ image_name
after entering the container ,run rviz2 in a terminator,there is a error that:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-cookoo' qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<qsurfaceformat::formatoption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) No XVisualInfo for format QSurfaceFormat(version 2.0, options QFlags<qsurfaceformat::formatoption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) Falling back to using screens root_visual. Segmentation fault (core dumped)
How should i solved it?
Did you solve this? I have the same issue
I have the same issue