-
Notifications
You must be signed in to change notification settings - Fork 438
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
[Question] Off-screen rendering results in ERROR: GLEW initalization error: Missing GL version
#114
Comments
Hi @hermanjakobsen can you let us know your system runtime, like your OS and Python version? Thanks. |
OS: Ubuntu 20.04.1 LTS
|
I don't think I've run into this issue before. Have you tried updating some of the packages, as suggested in this comment here? |
Yes, I have tried it without any luck :// |
Hmm, unfortunately none of our team is directly able to replicate the issue -- Ubuntu 20.04 is relatively new, and we officially support 16.04 / 18.04, and MacOS since that is what our team uses. Is there any way you might be able to test on an earlier distro of Ubuntu? I would also suggest posting this issue on the mujoco-py repo as it sounds like an issue directly related to mujoco. |
I will try to look into it! Thank you for your help and time :) |
Hi, I have come to the same issue. When I use on_screen renderer, it works normally:
But when I use off_screen renderer, it shows 'ERROR: GLEW initalization error: Missing GL version':
Do you have any ideas? |
@HeegerGao, could you state your system runtime? It might be useful information for @cremebrule. |
OK. I am using Ubuntu 18.04. The error message is like this:
|
And I am using mujoco200 |
Hi, I think I have solved this problem, though I am not quite sure about the principle behind it. I found the same issue in mujoco-py. They said we should do as following:
The I run my code again. It starts compiling mujoco_py/cymj.pyx and cythonizing mujoco_py/cymj.pyx, and after a while, it starts running normally. According to the discussion in the issue, the problem may come from a too higher version of OpenGL. That's my solution, and I would appreciate it if you can explain the principle behind it. Thank you! |
Hi HeegerGao, Unfortunately, we don't have much control over the mujoco-py backend -- we've always had issues with the renderer specifically as well, which are still unsolved to date. So this sounds like one of those issues you simply have to find a workaround for :/ We do have some alternative rendering options in the works, so I would stay tuned for some updates in the near future! |
add the following lines on the base.py, could solve the problem for me
|
hi, the code is not complete~ |
|
It really does help! |
Update collect demos scripts, add controller input type and reference frame options
For instance, creating the environment
gives the mentioned error. The environment renders fine, however, using on-screen rendering
I have checked out the issues in the mujoco-py repo and it looks like this is a known problem with mujoco-py.
My question is: Do you guys know of any workaround to make off-screen rendering work? I have tried the tips given in the linked issue without any luck :(
The text was updated successfully, but these errors were encountered: