Segmentation fault when running rviz on docker
Hello,
I am trying to run rviz on docker for ros-kinetic but as soon as it connects to ros master (i.e. after running roscore), the window shuts down and gives segmentation fault
Precisely this error:
rviz
[ INFO] [1642852163.241325570]: rviz version 1.12.17
[ INFO] [1642852163.241360320]: compiled against Qt version 5.5.1
[ INFO] [1642852163.241370195]: compiled against OGRE version 1.9.0 (Ghadamon)
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
Segmentation fault (core dumped)
I tried various solutions but could not get it working ( particularly from here http://wiki.ros.org/docker/Tutorials/GUI )
My docker file is here: https://github.com/pankhurivanjani/ro...
and I use this script to run it : https://github.com/pankhurivanjani/ro...
Update 1: Even though my docker image is cuda based when I run nvidia-smi it gives
bash: nvidia-smi: command not found
If I put --gpus all in docker run command I get the error
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
P.S. In case it is relevant earlier I was having display problem too for which I had opened one similar issue here (https://answers.ros.org/question/3944... )
Not sure if this will work for you in docker, but take a look at this thread and how they solve it: https://github.com/ros-visualization/...
If it works let’s document as an answer for future users