KJaebye / mujoco-docker

Dockerfile for mujoco200 environment. Visualization via X server.
3 stars 0 forks source link

error: cant create window #1

Open qingzew opened 1 month ago

qingzew commented 1 month ago
root@4fc466b6e198:~/.mujoco/mujoco200/bin# ./simulate ../model/humanoid.xml
MuJoCo Pro version 2.00
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
ERROR: could not create window

Press Enter to exit ...

container on ubuntu

Linux pc 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

xserver(xquatz) run on mac m1

any idea?

qingzew commented 1 month ago

same error

root@4fc466b6e198:~/.mujoco/mujoco200/bin# export LIBGL_ALWAYS_INDIRECT=1
root@4fc466b6e198:~/.mujoco/mujoco200/bin# ./simulate ../model/humanoid.xml
MuJoCo Pro version 2.00
ERROR: could not create window

Press Enter to exit ...
KJaebye commented 1 month ago

I guess something broke in your localhost PC libGL. You can check this on local and make sure to execute xhost + to give access.

qingzew commented 1 month ago

I think it's the problem of the opengl,

if i run xeyes, it works fine

image