-
Notifications
You must be signed in to change notification settings - Fork 745
Segmentation Fault on checking mujoco licences #2
Description
Hi all, thanks for open-sourcing such a great toolkit!
I would like to share and report a bug or issue in which segmentation fault occurs, which might also be happening for others.
>>> from dm_control import suite
>>> env = suite.load(domain_name="cartpole", task_name="swingup")
[1] 28081 segmentation fault (core dumped) pythonI found that it happens during verifying the mujoco license, say when we call _maybe_register_license() (and mjlib.mj_activate).
stacktrace on gdb:
#0 0x0000000000017946 in ?? ()
#1 0x00007ffff0a84fff in mjl_check () from $HOME/.mujoco/mjpro150/bin/libmujoco150.so
#2 0x00007ffff0a4c013 in mjl_activate () from $HOME/.mujoco/mjpro150/bin/libmujoco150.so
#3 0x00007ffff0a30e4d in mj_activate () from $HOME/mujoco/mjpro150/bin/libmujoco150.so
...
So the segfault happens when mj_activate from libmujoco150.so is invoked. I think it might be a problem of mujoco, not of this package; but maybe something can be wrong with auto-wrapping via ctypes. Plus, the test (python setup.py test) also fails with the same segmentation fault.
It happened on a linux 64bit machine (Ubuntu 14.04), with python 3.6 (anaconda) and 2.7.
I verified that mjkey.txt exists and the liecense worked well with mujoco C++ samples and OpenAI's mujoco-py.