-
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
Failed to initialize OpenGL #187
Comments
Are there any updates on this? |
met same issue here, track into this file: ./mujoco_py/gl/eglshim.c mjpro150/sample/record with same logic works fine ... |
Did anyone solve this problem? |
I've found that if I want to call However, if I want to call |
@vitchyr Thx a lot! |
I got the same problem,too.How to fix it? |
@chenyiwen97 have you tried the solution posted above? |
Yes.I add the 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so:/usr/lib/nvidia-415/libGL.so' to the bashrc, but it still doesn't work. |
Sorry, I misunderstood what you said. Now it works.Thanks a lot. |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia-384 |
when training, the following has to be commented, unless do testing. |
Is there a solution to this (can't use env.render and env.sim.render in the same environment) yet? |
After lots of trying and lots of reading, with no success, I tried (for no reason at all) something that worked! my code lines (inside my gym environment): |
The most import is to check the usage inside
or
The second one should has a |
undsetting LD_PRELOAD does't work for me, is there a workaround that doesn't involve it? |
I also had this problem, but it had to do with incorrect Ubuntu version. I had this error message using |
Here is a better solution I found: #390 (comment) |
Here is a full-writing targeting our HPC cluster: https://github.com/geyang/jaynes-starter-kit/tree/master/07_supercloud_setup |
I don't even have a /usr/lib/nvidia-384 folder. Only nvidia folder without any .so files inside. But actually CUDA is installed and working properly. |
I have the same issue as you, but |
@QUIlToT as far as I understand you can not use the gym for rendering in window as well as in background at the same time on Ubuntu. You need to switch between using |
Thx! You made my day! |
I was rendering on a remote server and met the same problem. I tried to open an VNC server with port 9 and |
@huangjiancong1's and @vitchyr's answer guided me to the right solution on an ARM M1 Mac running an Ubuntu 20.04 VM. The NVIDIA drivers don't exist on this system (which has an Apple GPU), but making libGLX_mesa available for linking fixed things for me.
|
For rgb array mode, this code works for me:
by default my cuda visible device is 0. |
I want to use raw image observations, so I am trying to call the _read_pixels_as_in_window(self) in mjviewer.py. However, getting this error:
My setup works for training and rendering video of the non-pixel Mujoco environment on my screen, but this '_read_pixels_as_in_window(self)', which I am using to access raw image data, fails. And actually even this method was working until I tried installing CUDA (which overwrote my nvidia-384 driver with nvidia-390') and installing CUDA broke everything, so now I think I rolled everything back to nvidia-384 properly and yet this read_pixels is still not working.
The text was updated successfully, but these errors were encountered: