You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when trying to get the parent from the blender widget python returns an exception instead
please note first time you run this in blender it works, but second time you get error.
fromPySide2.QtWidgetsimportQApplicationapp=QApplication.instance()
a=app._blender_window.parent()
# first time# <PySide2.QtGui.QWindow(0x1e6a52d5120, name="QWindowContainerClassWindow") at 0x000001E6A66E7340># second# Error: Python: Traceback (most recent call last):# File "\Text", line 3, in <module># RuntimeError: Internal C++ object (PySide2.QtGui.QWindow) already deleted.
same if you try access the children, or any other attr
The text was updated successfully, but these errors were encountered:
hannesdelbeke
changed the title
my current theory: blender is wrapped in a qwindow. and pyside tries to delete the qwindow on closing blender in runCleanupFunctions , but it can't cause it's not python but c.
blender_window garbage collect bug
Oct 7, 2022
when trying to get the parent from the blender widget python returns an exception instead
please note first time you run this in blender it works, but second time you get error.
same if you try access the children, or any other attrOriginally posted by @hannesdelbeke in #42 (comment)
The text was updated successfully, but these errors were encountered: