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

RuntimeError: Failed to initialize OpenGL #1

Open
Sjey-Lyn opened this issue Sep 20, 2024 · 9 comments
Open

RuntimeError: Failed to initialize OpenGL #1

Sjey-Lyn opened this issue Sep 20, 2024 · 9 comments

Comments

@Sjey-Lyn
Copy link

Dear author.

Thank you for your awesome work, Have you ever encountered this problem? I have tried this, openai/mujoco-py#187 , but it did not work .
image

@hu-hy17
Copy link
Owner

hu-hy17 commented Sep 20, 2024

Are you running on a Linux server? I have only tested rendering on Windows platform and it works fine.

@Sjey-Lyn
Copy link
Author

yeah, on Ubuntu 20.04

@hu-hy17
Copy link
Owner

hu-hy17 commented Sep 20, 2024

MjViewer seems unable to be created properly on Linux. Offscreen rendering is only available through

img = sim.render(640, 480)

I will make modifications later.
If you want to run the test code as soon as possible, I suggest using the Windows system.

@Sjey-Lyn
Copy link
Author

please allow me to ask a few very simple questions. Does the object come off the hand in the early stages of training? Why objects don't fall out of hands(kinematic) in the picture?
image

@hu-hy17
Copy link
Owner

hu-hy17 commented Sep 20, 2024

The kinematic pose in the picture is not a simulation result. The pose is directly set and then use sim.forward().

@Sjey-Lyn
Copy link
Author

Thank you for your response. I wonder if the object tends to slip out of the hand during the early stages of training?

@Moreland-cas
Copy link

MjViewer seems unable to be created properly on Linux. Offscreen rendering is only available through

img = sim.render(640, 480)

I will make modifications later. If you want to run the test code as soon as possible, I suggest using the Windows system.

I met the same problem when running eval_handmimic.py on linux, where to use "img = sim.render(640, 480)"

@OuphiLi
Copy link

OuphiLi commented Nov 29, 2024

Try using img = viewer.read_pixels(640, 480, depth=False) instead of img = viewer._read_pixels_as_in_window((640, 480))
Before it, I had to export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so .
Now I can run it lol.

@Moreland-cas
Copy link

Try using img = viewer.read_pixels(640, 480, depth=False) instead of img = viewer._read_pixels_as_in_window((640, 480)) Before it, I had to export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so . Now I can run it lol.

Thanks, I will try :)

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

4 participants