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

Black screen #380

Open
richardrl opened this issue Mar 31, 2019 · 7 comments
Open

Black screen #380

richardrl opened this issue Mar 31, 2019 · 7 comments

Comments

@richardrl
Copy link

Describe the bug
Screen is black for any mujoco-py gym environments
To Reproduce
Ubuntu 18.04
Nvidia 1080 Ti
Mujoco 1.5 or 2.0

Simulation runs (prints outputs), but screen is completely black
Expected behavior
Should show simulation

Environment

  • output of: echo $LD_LIBRARY_PATH
    :/home/richard/.mujoco/mjpro150/bin:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/home/richard/.mujoco/mujoco200/bin

  • output of: echo $HOME
    /home/richard

  • output of: echo $USER
    richard

@richardrl
Copy link
Author

If I set LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so:/usr/lib/x86_64-linux-gnu/libGL.so

Instead of a black screen, I get the:
ERROR: GLEW initalization error: Missing GL version

Press Enter to exit ...

@tkelestemur
Copy link

Same here. I get a black screen and the same error.

My setup:
Ubuntu 18.04, RTX2080Ti. MuJoCo 200.
mujoco-py version 2.0.2.0
gym version 0.12.1

@haanvid
Copy link

haanvid commented Apr 8, 2019

Same here

@underactuated
Copy link

I had the same problem (ubuntu 18.04). I am no expert, but reading related discussions helped me solve it. Solution:

  1. install GLEW:
    sudo apt-get install libglew-dev

  2. add to .bashrc:
    export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so

@richardrl
Copy link
Author

@underactuated As stated earlier in the thread these are not solutions for me

@tkelestemur
Copy link

@underactuated's solution works for me but I'm wondering if there is a better solution. (I don't wanna put LD_PRELOAD in bashrc.)

@mh-mu
Copy link

mh-mu commented Sep 20, 2022

Has anyone been able to resolve this issue? I have tried all methods in this thread but none worked for me so far.

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

5 participants