You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run the bullet_scene_renderer, I get an eglInitialize() failed with error: 3008 error. I am able to reproduce the issue with the following code
import os
import subprocess
import xml.etree.ElementTree as ET
import pkgutil
import pybullet as pb
_client_id = pb.connect(pb.DIRECT)
os.environ['MESA_GL_VERSION_OVERRIDE'] = '3.3'
os.environ['MESA_GLSL_VERSION_OVERRIDE'] = '330'
# Get EGL device
assert 'CUDA_VISIBLE_DEVICES' in os.environ
devices = os.environ.get('CUDA_VISIBLE_DEVICES', ).split(',')
device_id = str(devices[-1])
out = subprocess.check_output(['nvidia-smi', '--id='+device_id, '-q', '--xml-format'])
tree = ET.fromstring(out)
gpu = tree.findall('gpu')[0]
dev_id = gpu.find('minor_number').text
os.environ['EGL_VISIBLE_DEVICES'] = str(dev_id)
egl = pkgutil.get_loader('eglRenderer')
assert egl
pb.loadPlugin(egl.get_filename(), "_eglRendererPlugin", physicsClientId=_client_id) # Fails here
Which outputs:
pybullet build time: May 24 2021 16:57:46
EGL device choice: 8 of 13 (from EGL_VISIBLE_DEVICES)
eglInitialize() failed with error: 3008
The rendering code works when I change "_eglRendererPlugin" to "eglRendererPlugin" but then the rendering slows down a ton.
It looks like the error is maybe triggered here. For reference, I am working on a headless machine / cluster. Please let me know if there is any additional information I can provide. Thanks!
The text was updated successfully, but these errors were encountered:
me too I got the same issue!! I want to train cosypose on the GPU server~! but I seems like, EGL prevent it. It supports only local, GUI available environment... Please help us.
When I try to run the bullet_scene_renderer, I get an
eglInitialize() failed with error: 3008
error. I am able to reproduce the issue with the following codeWhich outputs:
The rendering code works when I change
"_eglRendererPlugin"
to"eglRendererPlugin"
but then the rendering slows down a ton.It looks like the error is maybe triggered here. For reference, I am working on a headless machine / cluster. Please let me know if there is any additional information I can provide. Thanks!
The text was updated successfully, but these errors were encountered: