pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

ValueError: Invalid device ID (0)

Open lllllialois opened this issue 2 years ago • 3 comments

Does anybody meet this bug when using pyrender? I only have one GPU whose number is 0, I don't know why it will tell me an Invalid device ID.

File "/home/dande/anaconda3/envs/pymafx/lib/python3.8/site-packages/pyrender/offscreen.py", line 31, in __init__
   self._create()
 File "/home/dande/anaconda3/envs/pymafx/lib/python3.8/site-packages/pyrender/offscreen.py", line 137, in _create
   egl_device = egl.get_device_by_index(device_id)
 File "/home/dande/anaconda3/envs/pymafx/lib/python3.8/site-packages/pyrender/platforms/egl.py", line 83, in get_device_by_index
   raise ValueError('Invalid device ID ({})'.format(device_id, len(devices)))
ValueError: Invalid device ID (0)

If anybody meets this bug too, please tell me how to handle it!!

lllllialois avatar Feb 06 '23 04:02 lllllialois

Having the same issue

tomer-grin avatar Mar 28 '23 08:03 tomer-grin

Having the same issue

https://github.com/HongwenZhang/PyMAF/issues/79

lllllialois avatar Mar 28 '23 08:03 lllllialois

Having the same issue

HongwenZhang/PyMAF#79

Actually, I need GPU support + offscreen rendering, and osmesa does not support this feature, does it?

tomer-grin avatar Mar 28 '23 14:03 tomer-grin