Mujoco-py: Black screen

3

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 picture richardrl  ·  31 Mar 2019

Most helpful comment

2

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 picture tkelestemur  ·  1 Apr 2019

All comments

1

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 picture richardrl  ·  31 Mar 2019
2

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 picture tkelestemur  ·  1 Apr 2019
1

Same here

haanvid picture haanvid  ·  8 Apr 2019
1

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 picture underactuated  ·  25 Apr 2019
0

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

richardrl picture richardrl  ·  26 Apr 2019
0

@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 picture tkelestemur  ·  8 Jul 2019