[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?
I know this is a little old, but I was battling this and the issue with the window not closing properly. I was able to find the answer digging into other tools and finding the best solution in the extension.py for omni.kit.window.commands. Solution below:
Add MenuHelperExtensionFull and add to your Extension Class
from omni.kit.menu.utils import MenuHelperExtensionFull
class Extension(omni.ext.IExt, MenuHelperExtensionFull):