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

libEGL Error #184

Open
Yzhang367 opened this issue Dec 21, 2024 · 1 comment
Open

libEGL Error #184

Yzhang367 opened this issue Dec 21, 2024 · 1 comment

Comments

@Yzhang367
Copy link

Yzhang367 commented Dec 21, 2024

When I ran the go2_train.py in the rsl_rl folder, I came across the following error message.
CPU: 13th Gen Intel(R) Core(TM) i9-13980HX
GPU: GeForce RTX 4060 Laptop
Memory: 16GB
OS: Ubuntu24.04

W 12/21/24 13:03:04.927 6923] [cuda_driver.cpp:load_lib@36] libcuda.so lib not found.
[W 12/21/24 13:03:04.927 6923] [misc.py:adaptive_arch_select@758] Arch=[<Arch.cuda: 3>] is not supported, falling back to CPU
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
Traceback (most recent call last):
  File "/home/yzhang/桌面/rsl_rl/Genesis/examples/locomotion/go2_train.py", line 170, in <module>
    main()
  File "/home/yzhang/桌面/rsl_rl/Genesis/examples/locomotion/go2_train.py", line 155, in main
    env = Go2Env(
          ^^^^^^^
  File "/home/yzhang/桌面/rsl_rl/Genesis/examples/locomotion/go2_env.py", line 68, in __init__
    self.scene.build(n_envs=num_envs)
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/genesis/utils/misc.py", line 38, in wrapper
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/genesis/engine/scene.py", line 556, in build
    self._visualizer.build()
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/genesis/vis/visualizer.py", line 110, in build
    self._rasterizer.build()
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/genesis/vis/rasterizer.py", line 31, in build
    self._renderer = pyrender.OffscreenRenderer(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/genesis/ext/pyrender/offscreen.py", line 29, in __init__
    self._create(pyopengl_platform)
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/genesis/ext/pyrender/offscreen.py", line 193, in _create
    self._platform.init_context()
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/genesis/ext/pyrender/platforms/egl.py", line 205, in init_context
    assert eglInitialize(self._egl_display, major, minor)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py", line 415, in __call__
    return self( *args, **named )
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yzhang/.conda/envs/genesis/lib/python3.12/site-packages/OpenGL/error.py", line 230, in glCheckError
    raise self._errorClass(
OpenGL.raw.EGL._errors.EGLError: EGLError(
        err = EGL_NOT_INITIALIZED,
        baseOperation = eglInitialize,
        cArguments = (
                <OpenGL._opaque.EGLDisplay_pointer object at 0x7de5ec34f6d0>,
                c_long(0),
                c_long(0),
        ),
        result = 0
)

I tried to reinstall libnvidia-egl-wayland1 but it didn't work. And I thought the error might relate to my CUDA version or my memory limits. When I tried to install another CUDA, it conflicted with the existing one built by pytorch.
But when I run fly.py with CPU, the error messgae also occured.

@Yzhang367
Copy link
Author

I have solved the problem by installing 12.6 version CUDA with .deb format file then reboot.

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

1 participant