Error appears when prim is added and then removed

Hello,

I’m using the urdf importer to import an object and create a prim. When I try to remove this prim using the function stage.RemovePrim(prim_path) in headless mode, I got an error that appears:

 [Error] [omni.physx.plugin] PhysX error: PxRigidActor::attachShape: shape must be shared or unowned, FILE /buildAgent/work/99bede84aa0a52c2/source/physx/src/NpRigidActorTemplate.h, LINE 228

When running the same code in render mode, no error appears.
Do someone know what could generate this error ?

Is there is a better way to remove prims from a scene ? The function scene.remove_object(prim_name) seemed to have no effect when I tried to use it to remove an object from the scene.

Thanks in advance

1 Like

Hi - Sorry for the delay in the response. Let us know if you still having this issue with the latest Isaac Sim 2022.2.1 release.

Hello, this error does not appear anymore.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.