-
Notifications
You must be signed in to change notification settings - Fork 10
Error in launching Rviz from Autoware Docker #359
Comments
I am also having the problem with Launching RVIZ in autoware Docker. Graphics card: NVIDIA GeForce GTX 1070 could anyone help to fix this issue? |
Did you install nvidia-docker1 or nvidia-docker2? Nvidia-docker2 requires libglvnd (GL Vendor-Neutral Dispatch library) to be installed inside the image to get OpenGL calls working correctly. Probably Autoware docker doesn't have OpenGL installed inside so it can't work with nvidia-docker2. See details here: http://wiki.ros.org/docker/Tutorials/Hardware%20Acceleration |
Thanks for your reply, |
I didn't try this solution (to rebuild Autoware docker).
I tried a lot of solution and after a few days I decided not to use docker images. I built Autoware from source. And it works. |
I had the same issue, too. It is related to using nvidia-docker2. There is an open PR to solve this problem. autowarefoundation/autoware#1416 Steps: Replace build.sh and run.sh files (+ created Dockerfile.nvidia-docker-v2) with the ones in the PR. or just merge PR into your branch. |
Thank you so much for your kind response. Much appreciated. it worked for me. |
After modifying the changes provided in the PR, when rebuiding autoware I saw this error:
Anyone has seen this error before and can kindly points out why? Thanks! |
Hello Yugli, did you tried command with $sudo ?? this seems to access permission, So just try adding sudo |
@ajay1606 Thanks for the reply. I did used sudo. This is the command I run:
It seems there are actually two errors:
The second error I later found out is this issue: the error is also "kinetic image cannot find". I also did not change the autoware version tag as suggested in the official installation guide Modifying the run.sh file in this pull request, change the docker build command to I am still looking into the first issue. |
@ajay1606 I also directly pull the PR and merged to my local branch. Do I need to modify other configurations? I'm very new to autoware / ros / github and it took me a while to figure out how to get that PR to my local repo.. |
Still have not resolve the first error (Permission denied) I had, but rviz is running now in docker. Thanks! |
Hello Yuqli, |
Hi, You can simply just docker pull the image for testing docker pull twbabyduck/autoware:1.9.1-kinetic-opengl |
Exactly the same issue here. |
Here you can find the list of all necessary steps to install Autoware with version 2.0 of NVIDIA Docker Plugin and Docker Image based on the image prepared by user twbabyduck: https://icave2.cse.buffalo.edu/AutowareInstallation.htm |
As for release 1.10. Nvidia Docker v1 is the preferred method. |
Fill-out only one section depending on whether you are reporting a bug or a new feature.
Bug
Unable to run Rviz from the Runtime Manager.
So, I have installed Autoware using the docker method as described in:
https://github.com/CPFL/Autoware/wiki/Generic-x86-Docker
Now, when I try to run the demo ( as per : https://github.com/CPFL/Autoware-Manuals/blob/master/en/Autoware_QuickStart_v1.1.pdf ), I get stuck at the step 3.2 where I try and launch Rviz from the runtime manager.
I get the following error:
[ INFO] [1539583851.181537990]: rviz version 1.12.16
[ INFO] [1539583851.181578002]: compiled against Qt version 5.5.1
[ INFO] [1539583851.181587881]: compiled against OGRE version 1.9.0 (Ghadamon)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
/home/autoware/Autoware/ros/src/util/packages/runtime_manager/../../../.config/rviz/cmd.sh: line 44: 2362 Segmentation fault (core dumped) rosrun rviz rviz
Note: I have both Docker CE and Nvidia docker installed and am using Nvidia GTX 1080.
Expected Behavior
Rviz should launch successfully.
Specifications
The text was updated successfully, but these errors were encountered: