-
Notifications
You must be signed in to change notification settings - Fork 812
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: Failed to initialize OpenGL #714
Comments
Hi, how did you solve this issue? Could you pls maybe share your solution? many thanks! |
Hi, I'm sorry for replying now. I can't remember the exact details, but I can list all the methods I've tried below. (1) #187 (comment) (2) Check the (3) The following two lines of code conflict with each other and cannot be implemented at the same time, which is a bug of Mujoco. viewer = mujoco_py.MjViewer(sim)
image = sim.render(width=300, height = 300, camera_name='cam0', depth=False) Hope these are helpful to you! |
many thanks! |
Hi, have you addressed the issue? Thanks! |
|
Hi! Should this command ( |
you can enter |
Thank you! |
Yes, I tried that. But that did not help with the error. And finally this problem is addressed by using GPU in my case. |
Hi, I tried this and got this error
|
hello, how did you finally solve this problem? |
I know this type of problem has been asked many times, and I have tried to follow these methods (#665, #187) to solve my problem, but it seems useless.
Here is my test code:
Then I met the following error:
By browsing through some issues, the following code is the reason for this error.
If I replace this line with
viewer.render()
, the glfw window will show up. However, this is not the result that I want and theimage
is not avaliable.The operating system and mujoco_py which I used are
It seems that
unset LD_PRELOAD
is useless for me. When I try this method, the window gets stuck and the following error appearsI also have no
libGL.so
in/usr/lib/nvidia-510
, but I'm not sure if this file does have an impact on this issue.Has anyone successfully solved this problem? I would appreciate a response! Thx!
The text was updated successfully, but these errors were encountered: