ERROR: GLEW initalization error: Missing GL version

Discussion in 'Bug Reports' started by Benelot, May 22, 2018.

  1. Hello!

    In the newest version of mujoco (150), there is a problem when running the visualizer of mujoco. When starting it, it tries to initialize, but breaks with the following error:
    ERROR: GLEW initalization error: Missing GL version

    According several sources, this seems to be solvable by preloading libraries you forgot to dynamically link. Here is an example on how to preload the libs when using mujoco-py (but this should be very generally applicable):

    LD_PRELOAD=/usr/lib/x86_64-linux-gnu/ python path/to/example

    This being applied with the appropriate nvidia-XXX version solves the problem, for some the second path seems not to be required.

    In the deepmind control suite, they seem to have directly implemented a workaround to preload these libraries. See here:

    Maybe this helps you to work the problem out at the root of it.

  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    There is a reason these libraries are optional. On Linux, the MuJoC renderer gives you the freedom to access OpenGL via X11, EGL or Mesa. If I were to introduce additional dependencies, it will not run on some of the platforms that people are currently using (headless rendering in the cloud in particular).