crash[mac]: render softcylinder.xml

Discussion in 'Bug Reports' started by digdig, Apr 12, 2020.

  1. mujoco version: 2.0.2.9

    Code:
    from mujoco_py import load_model_from_path, MjSim, MjViewer
    from mujoco_py.modder import TextureModder
    
    
    if __name__ == '__main__':
        model = load_model_from_path('model/softcylinder.xml')
        sim = MjSim(model)
        viewer = MjViewer(sim)
    
        while True:
            sim.step()
            viewer.render()
    




    error:
    Code:
    Process:               Python [43987]
    Path:                  /usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
    Identifier:            org.python.python
    Version:               3.7.7 (3.7.7)
    Code Type:             X86-64 (Native)
    Parent Process:        pycharm [19540]
    Responsible:           pycharm [19540]
    User ID:               501
    
    Date/Time:             2020-04-12 22:25:52.184 +0800
    OS Version:            Mac OS X 10.15.1 (19B88)
    Report Version:        12
    Anonymous UUID:        B72433A6-D211-4F70-F547-2623A46227CD
    
    Sleep/Wake UUID:       5266518E-5E96-4A9E-A3D8-D88C37CD97D9
    
    Time Awake Since Boot: 150000 seconds
    Time Since Wake:       11000 seconds
    
    System Integrity Protection: disabled
    
    Crashed Thread:        0  Dispatch queue: com.apple.main-thread
    
    Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
    Exception Note:        EXC_CORPSE_NOTIFY
    
    Termination Signal:    Segmentation fault: 11
    Termination Reason:    Namespace SIGNAL, Code 0xb
    Terminating Process:   exc handler [43987]
    
    VM Regions Near 0:
    -->
        __TEXT                 000000010e7fb000-000000010e7fd000 [    8K] r-x/r-x SM=COW  /usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
    
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_platform.dylib          0x00007fff65c35995 _platform_bzero$VARIANT$Haswell + 53
    1   libmujoco200.dylib                0x000000011e56fb4c mjv_updateSkin + 188
    2   cymj_2.0.2.9_37_macextensionbuilder_37.so    0x000000011e3bf5d6 __pyx_pw_9mujoco_py_4cymj_15MjRenderContext_15render + 2326 (cymj.c:141927)
    3   org.python.python                 0x000000010e8196fe PyCFunction_Call + 208
    4   cymj_2.0.2.9_37_macextensionbuilder_37.so    0x000000011e284bb6 __Pyx_PyObject_Call.constprop.2370 + 70 (cymj.c:198696)
    5   cymj_2.0.2.9_37_macextensionbuilder_37.so    0x000000011e384a6e __pyx_pw_9mujoco_py_4cymj_21MjRenderContextWindow_5render + 990 (cymj.c:145547)
    6   org.python.python                 0x000000010e8192d2 _PyObject_FastCallKeywords + 358
    7   org.python.python                 0x000000010e8aead2 call_function + 730
    8   org.python.python                 0x000000010e8a7a47 _PyEval_EvalFrameDefault + 6767
    9   org.python.python                 0x000000010e8af2cd _PyEval_EvalCodeWithName + 1698
    10  org.python.python                 0x000000010e819424 _PyFunction_FastCallKeywords + 212
    11  org.python.python                 0x000000010e8aead9 call_function + 737
    12  org.python.python                 0x000000010e8a7a47 _PyEval_EvalFrameDefault + 6767
    13  org.python.python                 0x000000010e8af2cd _PyEval_EvalCodeWithName + 1698
    14  org.python.python                 0x000000010e819424 _PyFunction_FastCallKeywords + 212
    15  org.python.python                 0x000000010e8aead9 call_function + 737
    16  org.python.python                 0x000000010e8a7ae2 _PyEval_EvalFrameDefault + 6922
    17  org.python.python                 0x000000010e8af2cd _PyEval_EvalCodeWithName + 1698
    18  org.python.python                 0x000000010e819424 _PyFunction_FastCallKeywords + 212
    19  org.python.python                 0x000000010e8aead9 call_function + 737
    20  org.python.python                 0x000000010e8a7a2e _PyEval_EvalFrameDefault + 6742
    21  org.python.python                 0x000000010e8af2cd _PyEval_EvalCodeWithName + 1698
    22  org.python.python                 0x000000010e8a5f35 PyEval_EvalCode + 51
    23  org.python.python                 0x000000010e8d437c run_mod + 54
    24  org.python.python                 0x000000010e8d33af PyRun_FileExFlags + 160
    25  org.python.python                 0x000000010e8d2a66 PyRun_SimpleFileExFlags + 270
    26  org.python.python                 0x000000010e8eb276 pymain_main + 5445
    27  org.python.python                 0x000000010e8eb8e4 _Py_UnixMain + 56
    28  libdyld.dylib                     0x00007fff65a372e5 start + 1
     
    Last edited: Apr 12, 2020
  2. Distributor ID: Ubuntu
    Description: Ubuntu 18.04.4 LTS
    Release: 18.04
    Codename: bionic

    have same problem. also crash at mjv_updateSkin

    Code:
    #0  __memset_avx2_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:141
    #1  0x00007ffff03e9131 in mjv_updateSkin () from /home/rqg/.mujoco/mujoco200/bin/libmujoco200.so
    #2  0x00007ffff0b815c7 in __pyx_pf_9mujoco_py_4cymj_15MjRenderContext_14render (__pyx_v_camera_id=<optimized out>,
        __pyx_v_height=<optimized out>, __pyx_v_width=<optimized out>, __pyx_v_self=0x14e5a68)
        at /tmp/pip-build-hbtidq0w/mujoco-py/mujoco_py/cymj.c:141915
    #3  __pyx_pw_9mujoco_py_4cymj_15MjRenderContext_15render (__pyx_v_self=0x14e5a68, __pyx_args=<optimized out>, __pyx_kwds=<optimized out>)
        at /tmp/pip-build-hbtidq0w/mujoco-py/mujoco_py/cymj.c:10443
    #4  0x00000000005678b3 in PyCFunction_Call ()
    #5  0x00007ffff0a366bc in __Pyx_PyObject_Call (func=0x7fffbc278438, arg=0x7fffbb924188, kw=0x0)
        at /tmp/pip-build-hbtidq0w/mujoco-py/mujoco_py/cymj.c:198693
    #6  0x00007ffff0b44519 in __pyx_pf_9mujoco_py_4cymj_21MjRenderContextWindow_4render (__pyx_v_self=0x14e5a68, __pyx_self=<optimized out>)
        at /tmp/pip-build-hbtidq0w/mujoco-py/mujoco_py/cymj.c:145544
    #7  __pyx_pw_9mujoco_py_4cymj_21MjRenderContextWindow_5render (__pyx_self=<optimized out>, __pyx_v_self=0x14e5a68)
        at /tmp/pip-build-hbtidq0w/mujoco-py/mujoco_py/cymj.c:14304
    #8  0x00000000005aa6ec in _PyObject_FastCallKeywords ()
    #9  0x000000000050abb3 in ?? ()
    #10 0x000000000050c5b9 in _PyEval_EvalFrameDefault ()
    #11 0x0000000000508245 in ?? ()
    #12 0x000000000050a080 in ?? ()
    #13 0x000000000050aa7d in ?? ()
    #14 0x000000000050c5b9 in _PyEval_EvalFrameDefault ()
    #15 0x0000000000508245 in ?? ()
    #16 0x000000000050a080 in ?? ()
    #17 0x000000000050aa7d in ?? ()
    #18 0x000000000050c5b9 in _PyEval_EvalFrameDefault ()
    #19 0x0000000000508245 in ?? ()
    #20 0x000000000050a080 in ?? ()
    #21 0x000000000050aa7d in ?? ()
    #22 0x000000000050c5b9 in _PyEval_EvalFrameDefault ()
    #23 0x0000000000508245 in ?? ()
    #24 0x000000000050b403 in PyEval_EvalCode ()
    #25 0x0000000000635222 in ?? ()
    #26 0x00000000006352d7 in PyRun_FileExFlags ()
    #27 0x0000000000638a8f in PyRun_SimpleFileExFlags ()
     
  3. sorry, it's not mujoco bug.

    ./simulate work fine


    mujoco_py maybe misuse some function
     
  4. pvk

    pvk

    It would load if you comment out the line with "skin" from softcylinder.xml file. It is an open issue.