Fail to properly unregister extension - extension object is still alive - Kit 106.3.0

[Warning] [omni.ext._impl._internal] xxxxxx.combined.variants-1.0.0 → <class ‘xxxxxx.combined.variants.extension.CombinedVariantSetEditor’>: extension object is still alive, something holds a reference on it. References: [“[0]:type: <class ‘method’>, id: 1843184037248”]

Hi there, I’m banging my head against this error generated when unregistering an extension involving menu entries and a file picker window. Interestingly, some NVIDIA extensions such as omni.kit.variant.editor produce the exact same error upon unregistering. It would appear that I am missing some trick in on_shutdown when cleaning up. Any ideas?

1 Like

Thanks for posting the question. I will ask one of kit devs to see if they can help.

This can be tricky to solve. Typically it’s something like:

  • If you register a callback you need to deregister it
  • If you create a ui you need to destroy it (recursively)

Can you take a look at this document and see if that helps?