ERROR: could not initialize GLFW

Discussion in 'Visualization' started by Tina_2018, Nov 10, 2018.

  1. Hi, when I try to test the installation of Mujoco, I got the following errors,and no window appears.
    MuJoCo Pro version 2.00
    ERROR: could not initialize GLFW

    My steps:
    1) mkdir ~/.mujoco200
    2) cp ~/.mujoco200
    3) cd ~/.mujoco200
    4) cp mjkey.txt ~/.mujoco200
    cp mjkey.txt ~/.mujoco200/mujoco200_linux/bin
    5) export LD_LIBRARY_PATH=~/.mujoco200/mujoco200_linux/bin${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
    export MUJOCO_KEY_PATH=~/.mujoco200${MUJOCO_KEY_PATH}
    6) cd ~/.mujoco200/mujoco200_linux/bin
    7) ./simulate ../model/humanoid.xml

    - Mujoco Version:200
    - Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-36-generic x86_64)
    - CUDA Version 9.0.176
    - Python 3.6.6 |Anaconda, Inc.| (default
    - conda list: glfw 1.7.0, PyOpenGL 3.1.0

    calling "ldd /usr/bin/glxinfo" returns the following: => (0x00007ffc70bb8000) => /usr/lib/nvidia-384/ (0x00007f1c351b0000) => /usr/lib/x86_64-linux-gnu/ (0x00007f1c34e76000) => /lib/x86_64-linux-gnu/ (0x00007f1c34aac000) => /lib/x86_64-linux-gnu/ (0x00007f1c348a8000) => /usr/lib/nvidia-384/ (0x00007f1c34678000) => /usr/lib/nvidia-384/ (0x00007f1c343aa000) => /usr/lib/x86_64-linux-gnu/ (0x00007f1c34188000)
    /lib64/ (0x00007f1c35454000) => /usr/lib/x86_64-linux-gnu/ (0x00007f1c33f76000) => /usr/lib/x86_64-linux-gnu/ (0x00007f1c33d72000) => /usr/lib/x86_64-linux-gnu/ (0x00007f1c33b6c000)

    calling "cat /proc/driver/nvidia/version" returns the following:
    NVRM version: NVIDIA UNIX x86_64 Kernel Module 384.145 Thu May 17 21:47:37 PDT 2018
    GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)

    I got no idea how to fix this problem, Please help! Many thanks!
  2. Try with different Display ports, if you are not sure which GPU port is rendering the display.
    export DISPLAY=:0
    run again
    export DISPLAY=:1
    run again
    export DISPLAY=:2
    run again