robosuite icon indicating copy to clipboard operation
robosuite copied to clipboard

OpenGL.raw.EGL._errors.EGLError

Open TinyDreamer1 opened this issue 2 years ago • 5 comments

Hello, I'm using robosuite 1.4 with offscreen rendering. When I run the demo_video_recording.py following instructions, everything including the recorded video seems okay, but when the program exits, I get errors

Exception` ignored in: <function MjRenderContext.__del__ at 0x7f1ed31689d0>
Traceback (most recent call last):
  File ".../robosuite/utils/binding_utils.py", line 199, in __del__
  File ".../robosuite/renderers/context/egl_context.py", line 149, in free
  File ".../site-packages/OpenGL/error.py", line 230, in glCheckError
OpenGL.raw.EGL._errors.EGLError: <exception str() failed>
Exception ignored in: <function EGLGLContext.__del__ at 0x7f1ed3168820>
Traceback (most recent call last):
  File ".../robosuite/renderers/context/egl_context.py", line 155, in __del__
  File ".../robosuite/renderers/context/egl_context.py", line 149, in free
  File ".../site-packages/OpenGL/error.py", line 230, in glCheckError
OpenGL.raw.EGL._errors.EGLError: <exception str() `failed>

I have verified my EGL installation using this repo, and the output is

Loaded` EGL 1.5 after reload.
GL_VENDOR=NVIDIA Corporation
GL_RENDERER=NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
GL_VERSION=4.6.0 NVIDIA 470.57.02
GL_SHADING_LANGUAGE_VERSION=4.60 `NVIDIA`

what might be wrong here?

TinyDreamer1 avatar Apr 02 '24 13:04 TinyDreamer1

Have you resolved it? I have the same question

haicaoha avatar Apr 04 '24 12:04 haicaoha

See https://github.com/ARISE-Initiative/robosuite/issues/370#issuecomment-1362042285

zichunxx avatar Apr 12 '24 07:04 zichunxx

See #370 (comment)

Thanks, it solved my problem

TinyDreamer1 avatar Apr 12 '24 08:04 TinyDreamer1

Have you resolved it? I have the same question

Adding env.close() at the end of the file solved my problem

TinyDreamer1 avatar Apr 12 '24 08:04 TinyDreamer1

Sorry, could you please provide a more detailed description of where env. close() should be placed in the file?

chenquan2002 avatar Nov 04 '24 06:11 chenquan2002