Error when deleting prims after getting pose with _dynamic_control

I was trying to delete the object I created to reset the scene, but it caused the error.

I made the objects as follows.

    part_tracker = []
    part2_table_usd = _asset_path + "/UsersEnv/UR_partpick/part/part_physics.usd"
    for part_id in range(part_n):
        path = f"/World/env/part_{part_id}"
        prim = stage.GetPrimAtPath(path)
        if not prim:
            prim = stage.DefinePrim(path, "Xform")
        prim.GetReferences().AddReference(part_table_usd)

        part_tracker.append(path)

And I tried to delete as follows.

    obj_to_del = part_tracker
    omni.kit.commands.execute("DeletePrimsCommand", paths=obj_to_del)

This method was working until I started to obtain the rigidbody pose of the parts using _dynamic_control.

After I got the rigid body pose of each part as following, it start to cause error. (the part_physics.usd has a rigidbody on Root>part_physics>part)

        prim_path = path + "/part"
        body_handle = self.dc.get_rigid_body(prim_path)
        tr = self.dc.get_rigid_body_pose(body_handle)

error message.

Fatal Python error: Segmentation fault

Thread 0x00007f82b2506700 (most recent call first):
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 299 in wait
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 551 in wait
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/pydevd.py", line 144 in _on_run
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 216 in run
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007f82b2d07700 (most recent call first):
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 290 in _on_run
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 216 in run
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007f82b3508700 (most recent call first):
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 299 in wait
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/queue.py", line 173 in get
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 365 in _on_run
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 216 in run
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/home/urakamiy/miniconda3/envs/isaac-sim/lib/python3.6/threading.py", line 884 in _bootstrap

Current thread 0x00007f82b86df740 (most recent call first):
  File "/home/urakamiy/robot/isaac-sim-2020.2.2/_build/target-deps/kit_sdk_release/_build/linux-x86_64/release/extensions/extensions-bundled/omni/kit/builtin/commands/usd_commands.py", line 846 in do
  File "/home/urakamiy/robot/isaac-sim-2020.2.2/_build/target-deps/kit_sdk_release/_build/linux-x86_64/release/exts/omni.kit.commands-0.1/omni/kit/undo.py", line 150 in _execute
  File "/home/urakamiy/robot/isaac-sim-2020.2.2/_build/target-deps/kit_sdk_release/_build/linux-x86_64/release/exts/omni.kit.commands-0.1/omni/kit/undo.py", line 29 in execute
  File "/home/urakamiy/robot/isaac-sim-2020.2.2/_build/target-deps/kit_sdk_release/_build/linux-x86_64/release/exts/omni.kit.commands-0.1/omni/kit/commands/__init__.py", line 208 in execute
  File "/home/urakamiy/robot/isaac-sim-2020.2.2/**/syntheticdata/synthetic_data_generation.py", line 314 in main
  File "/home/urakamiy/robot/isaac-sim-2020.2.2/**/syntheticdata/synthetic_data_generation.py", line 327 in <module>
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18 in execfile
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/pydevd.py", line 1477 in _exec
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/pydevd.py", line 1470 in run
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/pydevd.py", line 2158 in main
  File "/snap/pycharm-community/222/plugins/python-ce/helpers/pydev/pydevd.py", line 2167 in <module>

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

I am not sure how it is related to thread.

Does somebody know how to delete the prims in this situation?

@yusuke_urakami to confirm, the crash happens if you do the following correct?

Create object
then call:

body_handle = self.dc.get_rigid_body(prim_path)

and then

omni.kit.commands.execute("DeletePrimsCommand", paths=obj_to_del)

Does this occur if simulation is stopped or if its running?