ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

LGSVL quits immediately upon starting

asked 2021-03-25 00:09:22 -0500

vrichard gravatar image

jumping from https://gitlab.com/autowarefoundation...

I am trying to start LGSVL with a clean autoware.auto environment I have installed docker, nvidia-docker2, ade, restarted pc, etc according to the documentation (https://autowarefoundation.gitlab.io/...) When I start lgsvl simulator inside ade, a window appears then suddenly disappears. No error message, the program only returns with error code 1.

From the AutowareAuto master/1.0.0 branch I tried the following:

$ ade --rc .aderc-lgsvl start --update --enter

$ /opt/lgsvl/simulator

The documentations mentions mesa-vulkan-drivers may conflict with lgsvl, but removing the driver does not fix the issue.

sourcing /opt/AutowareAuto/setup.bash does not fix the issue either

Full logs here: https://gitlab.com/-/snippets/2095270

edit retag flag offensive close merge delete

Comments

What kind of GPU does your host machine have? What OS/kernel is it running? The one thing I didn't see you mention installing is the Nvidia proprietary graphics driver. Can you run nvidia-smi on your host and post the output?

Josh Whitley gravatar image Josh Whitley  ( 2021-03-25 00:20:44 -0500 )edit

I have the following setup: - Ubuntu 18.04 - kernel 5.4.0-67-generic - nvidia driver 450.102.04 - cuda 11.0 - gpu is Quadro P4000 - nvidia-smi gives this output from host: https://gitlab.com/-/snippets/2095278 - result is similar from ade except no Processes are detected

vrichard gravatar image vrichard  ( 2021-03-25 01:04:34 -0500 )edit

This one may need help from LG. Can you please create a new snippet with the contents of the file .config/unity3d/LG Silicon Valley Lab/LGSVL Simulator/player.log in your adehome folder? This is the log from the simulator and may help with troubleshooting.

Josh Whitley gravatar image Josh Whitley  ( 2021-03-29 11:53:11 -0500 )edit

https://gitlab.com/-/snippets/2097364 According to the logs it seems it is just the vulkan drivers that dont work

vulkaninfo also give me an error: WARNING: [Loader Message] Code 0 : loader_icd_scan: Can not find 'ICD' object in ICD JSON file /usr/share/vulkan/icd.d/nvidia_layers.json. Skipping ICD JSON /build/vulkan-tools-136mCR/vulkan-tools-1.1.126.0+dfsg1/vulkaninfo/vulkaninfo.h:399: failed with ERROR_INITIALIZATION_FAILED

The first warning line is explained here: https://vulkan.lunarg.com/issue/home?... Moving the file /usr/share/vulkan/icd.d/nvidia_layers.json away does not fix the issue

As for the ERROR_INITIALIZATION_FAILED error, people usually face this issue when their GPU is too old and cannot support vulkan. According to this page: https://developer.nvidia.com/vulkan-d..., the Quadro P4000 is supposed to be supported

vrichard gravatar image vrichard  ( 2021-03-29 20:17:42 -0500 )edit

But after some more digging I realized some people had similar vulkan issues when using X forwarding. Nowadays I am working remotely using chrome-remote-desktop and it seems vulkan does not support such use case: https://askubuntu.com/questions/12311...

However the comment provides some workaround. I will try it out later

vrichard gravatar image vrichard  ( 2021-03-29 20:18:49 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2021-05-26 14:12:26 -0500

Josh Whitley gravatar image

This is a somewhat known issue, especially if your CPU also has integrated graphics. Inside the container, run sudo apt purge mesa-vulkan-driversand the issue should be resolved. See https://gitlab.com/autowarefoundation... for details.

edit flag offensive delete link more

Comments

Thanks for the answer. Every time I enter inside the ade, I need to uninstall the vulkan-drivers. Is there a better way to remove so that it does not ask me everytime I enter ade?

kk2105 gravatar image kk2105  ( 2021-06-08 09:50:42 -0500 )edit

See https://gitlab.com/autowarefoundation... for discussion about this issue.

Josh Whitley gravatar image Josh Whitley  ( 2021-06-08 16:18:30 -0500 )edit
1

answered 2021-05-25 18:24:05 -0500

Vini71 gravatar image

updated 2021-05-25 18:29:50 -0500

Hi Why don't you use the SVL simulator instead of LGSVL? This is an old version...also you should use the simulator externally, not inside the docker image (you can use but is not good to develop). Then later you could just connect with ROS/Autoware using the ros2-web-bridge or lgsvlbridge..... But I believe the issue is regarding the need to install the libvulkan. For me at least it worked. Take a look on this link: https://zoomadmin.com/HowToInstall/Ub...

The cmds in this link should solve your issue. I have also used Autoware.Auto with LGSVL internally and had lot of problems. I needed to work around their .aderc file and customize the image to be built properly.

You can open your .aderc-amd64-foxy-lgsvl file inside adehome/AutowareAuto folder (HINT: Use Ctrl+h to enable visualization of the hidden files in this folder) ERASE all the lines and then copy and paste the lines below:

export ADE_DOCKER_RUN_ARGS="--cap-add=SYS_PTRACE --net=host --privileged --add-host ade:127.0.0.1 -e RMW_IMPLEMENTATION=rmw_cyclonedds_cpp"
export ADE_GITLAB=gitlab.com
export ADE_REGISTRY=registry.gitlab.com
export ADE_IMAGES="
  registry.gitlab.com/autowarefoundation/autoware.auto/autowareauto/amd64/ade-foxy:master
  registry.gitlab.com/autowarefoundation/autoware.auto/autowareauto/amd64/binary-foxy:master
  registry.gitlab.com/autowarefoundation/autoware.auto/ade-lgsvl/foxy:2020.06
"

Afterwards just start and enter the image again. You must be aware that you need to ALWAYS remove the line that enable the Nvidia is set to True (Take a look if you have this line in your .aderc file) and enable to false or remove (as I always do):

export ADE_DOCKER_RUN_ARGS="--cap-add=SYS_PTRACE --net=host --privileged --add-host ade:127.0.0.1 -e RMW_IMPLEMENTATION=rmw_cyclonedds_cpp --runtime=nvidia -ti --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \
-e NVIDIA_VISIBLE_DEVICES=all \
-e NVIDIA_DRIVER_CAPABILITIES=compute,utility,display"
export ADE_GITLAB=gitlab.com
export ADE_REGISTRY=registry.gitlab.com
export ADE_DISABLE_NVIDIA_DOCKER=false
export ADE_IMAGES="
  registry.gitlab.com/autowarefoundation/autoware.auto/autowareauto/amd64/ade-foxy:master   registry.gitlab.com/autowarefoundation/autoware.auto/autowareauto/amd64/binary-foxy:master
  registry.gitlab.com/autowarefoundation/autoware.auto/ade-lgsvl/foxy:2020.06
  nvidia/cuda:11.0-base
"

You can take a look here too for more deeper understanding of Nvidia driver issues: https://gitlab.com/autowarefoundation...

Finally if the lgsvl was still not enabled you should clean your Autoware.Auto system and re-compile, rebuild...It is quicker just follow the "CLEANUP" topic here: https://autowarefoundation.gitlab.io/... Or better follow "Start from clean State" topic here: https://autowarefoundation.gitlab.io/...

I hope you can enable the lgsvl inside docker :)

edit flag offensive delete link more

Comments

Hi, Thank you for the detailed answer. Although it seems to be very practical to run the simulator outside the autoware.auto docker, my initial motivation was to reproduce the demos as described in the documentation. As I described in my latest comment, the issue comes from the fact I am working using remote desktop to access my work computer and unfortunately the vulkan driver does not work in such configuration. I pointed to a link that shows a hacky way to make to work anyway, but I have not been able to test the whole thing in practice yet

vrichard gravatar image vrichard  ( 2021-05-26 01:07:56 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2021-03-25 00:09:22 -0500

Seen: 736 times

Last updated: May 26 '21