Open hyparxis opened 5 years ago
Version mismatch in the underlying compiled library can be a cause for a segfault, but it's hard for us to control external factors like that.
Way to go forward is to either upgrade all your dependencies to MuJoCo 2.0 or to stick to an older version of mujoco-py.
Describe the bug I have an OpenAI Gym library (https://github.com/p-morais/gym-cassie) that uses a custom ctypes wrapper for a C library that uses MuJoCo 1.5. The problem is when I import my library AND the gym mujoco envs, gym.make("Walker2d-v2") etc triggers a segfault. They are using separate versions of Mujoco (1.5 vs 2.0) so that may have something to do with it. I posted the gdb trace below.
To Reproduce I'm not sure what the minimal reproducible code is, but provided you have gym_cassie installed (which is easy with pip install provided you have mjpro150 and mjkey.txt in ~/.mujoco) then the following triggers it:
Expected behavior Should either support both environments being imported, or should fail gracefully without segfaulting.
Error Messages Running in gdb produces:
Desktop (please complete the following information):
Environment
echo $LD_LIBRARY_PATH
:/home/beast/.mujoco/mujoco200/binecho $HOME
/home/beastecho $USER
beast