X Error of failed request: BadMatch (invalid parameter attributes)

Discussion in 'Visualization' started by Ethan Brooks, Oct 25, 2017.

  1. Mujoco was running fine on my system until yesterday. Now I'm getting a strange error when I try to run the `basic` script:

    ❯ LD_LIBRARY_PATH=. ./basic ../model/humanoid.xml
    MuJoCo Pro library version 1.50
    X Error of failed request:  BadMatch (invalid parameter attributes)
      Major opcode of failed request:  42 (X_SetInputFocus)
      Serial number of failed request:  152
      Current serial number in output stream:  154
    I've tried recompiling, but to no avail. The error occurs at `GLFWwindow* window = glfwCreateWindow(1200, 900, "Demo", NULL, NULL);`.

    GLFW is version 3.2.0
    Ubuntu is 16.04
    Mujoco is 1.50
    Last edited: Oct 25, 2017
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    This seems to be an evolving video driver mess... did you update the drivers or anything else in the meantime?

    It is not clear what can be done if the errors are in low-level X libraries, other than using older drivers where these errors did not occur. It could be that GLFW had bugs in it all along that are now being exposed, but the more likely explanation is that the video driver has bugs.
  3. I was able to eventually solve this problem by removing some recently installed apt packages and restarting. The apt packages were: