Hello,
I was trying out the extension sample project on creating Scatter Tool.
After making changes in window.py as mentioned in the scatter tools documentation, I am getting below error.
2024-11-08 06:15:00 [Warning] [omni.ext._impl._internal] omni.example.ui_scatter_tool-1.0.1 -> <class 'omni.example.ui_scatter_tool.extension.ScatterWindowExtension'>: extension object is still alive, something holds a reference on it. References: ["[0]:type: <class 'method'>, id: 1732836616576"]
2024-11-08 06:15:00 [Error] [carb.scripting-python.plugin] AttributeError: 'ScatterWindowExtension' object has no attribute '_window'
2024-11-08 06:15:00 [Error] [carb.scripting-python.plugin]
2024-11-08 06:15:00 [Error] [carb.scripting-python.plugin] At:
2024-11-08 06:15:00 [Error] [carb.scripting-python.plugin] d:/repo/others/kit-extension-sample-scatter-tutorial-start/exts/omni.example.ui_scatter_tool/omni/example/ui_scatter_tool/extension.py(42): on_shutdown
2024-11-08 06:15:00 [Error] [carb.scripting-python.plugin] d:\omniverse/pkg/kit-106.3.0/kernel/py\omni\ext\_impl\_internal.py(233): shutdown
2024-11-08 06:15:00 [Error] [carb.scripting-python.plugin] d:\omniverse/pkg/kit-106.3.0/kernel/py\omni\ext\_impl\_internal.py(336): shutdown_extension
2024-11-08 06:15:00 [Error] [carb.scripting-python.plugin] PythonExtension.cpp::shutdown()(2): <module>
2024-11-08 06:15:00 [Error] [carb.scripting-python.plugin]
2024-11-08 06:15:00 [Error] [omni.ext.plugin] Failed while calling `shutdown_extensions` function: d:/repo/others/kit-extension-sample-scatter-tutorial-start/exts/omni.example.ui_scatter_tool
2024-11-08 06:15:00 [Warning] [omni.kit.app._impl] omni.kit.ui.get_editor_menu() is deprecated. Please update "omni.example.ui_scatter_tool" to use omni.kit.menu.utils
The error even happens on saving window.py
without adding any code. Due to this none of the UI elements added are rendered.
If I create a new extension from IDE, then the class created is class MyClassNameExtension(omni.ext.IExt):
instead of class ScatterWindow(ui.Window):
.
I am using Kit v106.3.0. Looks like the entire implementation has changed with respect to version upgrades. Is that correct?
Thanks in advance.