haosulab / SAPIEN

SAPIEN Embodied AI Platform
https://sapien.ucsd.edu/
MIT License
427 stars 41 forks source link

No Vulkan extensions found for window surface creation and libGLX_nvidia.so.0: cannot open shared object file #172

Closed andyoung009 closed 2 months ago

andyoung009 commented 2 months ago

System:

Describe the bug When I try to run python -m sapien.example.hello_world, the error comes as followling:

Traceback (most recent call last):
  File "/home/axe/miniconda3/envs/centergrasp_env/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/axe/miniconda3/envs/centergrasp_env/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/axe/miniconda3/envs/centergrasp_env/lib/python3.10/site-packages/sapien/example/hello_world.py", line 56, in <module>
    main()
  File "/home/axe/miniconda3/envs/centergrasp_env/lib/python3.10/site-packages/sapien/example/hello_world.py", line 19, in main
    renderer = sapien.SapienRenderer()  # Create a renderer
RuntimeError: createInstance: No Vulkan extensions found for window surface creation (hint: set VK_ICD_FILENAMES to `locate icd.json`).

Screenshots

If applicable, add screenshots to help explain your problem. image

Additional context Is there a problem with my nvidia driver installation? The system also cannot find the libGLX_nvidia.so.0 file. Is there any other solution besides downgrading and reinstalling the nvidia driver? I am worried that it will bring other system-related package problems. My computer configuration is ubuntu20.04, NVIDIA GeForce RTX 4070. The nvidia Driver Version is 550.76 while the cuda version is 11.8. I use locate icd.json to find the icd.json, receive that in terminal.

/etc/vulkan/icd.d/nvidia_icd.json
/home/axe/miniconda3/envs/lerobot/lib/python3.10/site-packages/sapien/vulkan_library/nvidia_icd.json
/usr/share/code/vk_swiftshader_icd.json

I use sudo apt install libvulkan1 libvulkan-dev to install the vulkan driver, use vulkaninfo to get some detail info of Vulkan, but all these did not solve the problem. There may be some useful infomation in here. Thanks for your help!

wzds2015 commented 3 weeks ago

I see this issue is closed. How did you solve it? Thanks.

andyoung009 commented 3 weeks ago

Hi, I just reinstalled the Nvidia driver then reslove this issue.