Cannot remove prim after getting handle from dynamic control interface

Hello,

Segmentation fault happens when I try to remove a prim after getting its handle with dynamic control.
psuedocode is as follows:

prim = stage.DefinePrim(prim_path)
handle = dc.get_object(prim_path)
stage.RemovePrim(prim_path) → this results in segmentation fault

Can anyone tell me how to remove a prim after getting its handle with dynamic control??

Thanks in advance,
twjhlee

1 Like

Are you still using that handle while RemovePrim? Could you trace where that handle is being used in your code and see if not using it still creates a segfault? Does the dynamic control complains in the log? Thanks.