Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Cannot find a suitable rendering device #92

Closed
ZiLianC opened this issue May 11, 2023 · 10 comments
Closed

RuntimeError: Cannot find a suitable rendering device #92

ZiLianC opened this issue May 11, 2023 · 10 comments

Comments

@ZiLianC
Copy link

ZiLianC commented May 11, 2023

After I install the package, I run the following command:
python -m mani_skill2.examples.demo_random_action

opts: []
env_kwargs: {}
Traceback (most recent call last):
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/mani_skill2/examples/demo_random_action.py", line 71, in
main()
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/mani_skill2/examples/demo_random_action.py", line 34, in main
env: BaseEnv = gym.make(
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/gym/envs/registration.py", line 235, in make
return registry.make(id, **kwargs)
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/gym/envs/registration.py", line 129, in make
env = spec.make(kwargs)
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/gym/envs/registration.py", line 87, in make
env = self.entry_point(
_kwargs)
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/mani_skill2/utils/registration.py", line 92, in make
env = env_spec.make(kwargs)
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/mani_skill2/utils/registration.py", line 34, in make
return self.cls(
_kwargs)
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/mani_skill2/envs/pick_and_place/pick_cube.py", line 22, in init
super().init(*args, **kwargs)
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/mani_skill2/envs/pick_and_place/base_env.py", line 27, in init
super().init(*args, **kwargs)
File "/home/ps/anaconda3/envs/maniskill/lib/python3.8/site-packages/mani_skill2/envs/sapien_env.py", line 102, in init
self._renderer = sapien.SapienRenderer(**renderer_kwargs)
RuntimeError: Cannot find a suitable rendering device

@xuanlinli17
Copy link
Collaborator

Do you have GPU on your device and try nvidia-smi?

@ZiLianC
Copy link
Author

ZiLianC commented May 11, 2023

Yes. My configuration is as follows
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.103.01 Driver Version: 470.103.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 On | N/A |
| 0% 45C P8 38W / 350W | 2381MiB / 24265MiB | 2% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

@xuanlinli17
Copy link
Collaborator

Could you troubleshoot vulkan following https://haosulab.github.io/ManiSkill2/getting_started/installation.html#troubleshooting

And ensure that the 3 nvidia json files exist?

@ZiLianC
Copy link
Author

ZiLianC commented May 11, 2023

The files /usr/share/vulkan/icd.d/nvidia_icd.json and /usr/share/glvnd/egl_vendor.d/10_nvidia.json don't exist. I create the files as the tutorial. After I run the command 'sudo apt-get install libglvnd-dev', the file /usr/share/glvnd/egl_vendor.d/10_nvidia.json is still not exist. So I create it manually. But the above problem still exist.

@xuanlinli17
Copy link
Collaborator

xuanlinli17 commented May 11, 2023

sudo apt-get install vulkan-utils
vulkaninfo

Does this produce any error?

@ZiLianC
Copy link
Author

ZiLianC commented May 11, 2023

I run vulkaninfo, and the error is as follow:

ERROR: [Loader Message] Code 0 : libGLX_nvidia.so.0: cannot open shared object file: No such file or directory
ERROR: [Loader Message] Code 0 : libGLX_nvidia.so.0: cannot open shared object file: No such file or directory
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.

@xuanlinli17
Copy link
Collaborator

could you check the 3 json file contents exactly as in the tutorial?

@ZiLianC
Copy link
Author

ZiLianC commented May 11, 2023

I don't have the file 'libGLX_nvidia.so.0' in my computer. So should I change the file name in the 3 json? What name should I put in?

@xuanlinli17
Copy link
Collaborator

xuanlinli17 commented May 11, 2023

Could you reinstall your nvidia driver, using newer versions like sudo apt install nvidia-driver-530?

Then ensure that the 3 json files exist, and run vulkaninfo

@xuanlinli17
Copy link
Collaborator

Has the issue been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants