mujoco-py icon indicating copy to clipboard operation
mujoco-py copied to clipboard

Black screen

Open richardrl opened this issue 5 years ago • 7 comments

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 avatar Mar 31 '19 10:03 richardrl

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 ...

richardrl avatar Mar 31 '19 10:03 richardrl

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

tkelestemur avatar Mar 31 '19 22:03 tkelestemur

Same here

haanvid avatar Apr 08 '19 17:04 haanvid

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

underactuated avatar Apr 25 '19 19:04 underactuated

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

richardrl avatar Apr 26 '19 04:04 richardrl

@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.)

tkelestemur avatar Jul 07 '19 23:07 tkelestemur

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

mh-mu avatar Sep 20 '22 17:09 mh-mu