-
When I start an autoware container with:
and try to start
Workaround/fixThis stack overflow post suggested a workaround of adding:
to the
Now
According to the rocker docs:
Are other docker users hitting the same issue or is there something broken with my setup that requires this flag? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
I tested on two machines with GPU cards by my side. Both are Ubuntu 20.04 (x86)
I met the same issue on GTX 1050 but run successfully on RTX 5000. prime-select query
# It should show on-demand by default
sudo prime-select nvidia
# Force to use NVIDIA GPU After reboot, your system will use NVIDIA GPU card by default and rviz2 can run successfully. Another solution: rocker -e LIBGL_ALWAYS_SOFTWARE=1 --x11 --user --volume $HOME/autoware --volume $HOME/autoware_map -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda |
Beta Was this translation helpful? Give feedback.
I tested on two machines with GPU cards by my side. Both are Ubuntu 20.04 (x86)
I met the same issue on GTX 1050 but run successfully on RTX 5000.
I think the problem is that rviz2 does not use NVIDIA GPU but Intel integrated graphics.
You can force to use NVIDIA GPU by the following commands:
After reboot, your system will use NVIDIA GPU card by default and rviz2 can run successfully.
Another solution:
If you don't want to use GPU card and want to run with software computation, you can add
LIBGL_ALWAYS_SOFTWARE=1
.But it causes bad …