Python 3.10 Qt 6.3.1 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 11.2.0) metaObject() 0x55aa0b4b6820 C++ address....... PySide6.QtCore.QObject/0x55aa0b4b6820 hasOwnership...... 1 containsCppWrapper 1 validCppObject.... 1 wasCreatedByPython 1 metaObject() 0x55aa0b4b7060 C++ address....... PySide6.QtCore.QObject/0x55aa0b4b7060 hasOwnership...... 1 containsCppWrapper 1 validCppObject.... 1 wasCreatedByPython 1 metaObject() 0x55aa0b4b6820 child C++ address....... PySide6.QtCore.QObject/0x55aa0b4b6820 hasOwnership...... 1 containsCppWrapper 1 validCppObject.... 1 wasCreatedByPython 1 metaObject() 0x55aa0b4b7060 parent C++ address....... PySide6.QtCore.QObject/0x55aa0b4b7060 hasOwnership...... 1 containsCppWrapper 1 validCppObject.... 1 wasCreatedByPython 1 metaObject() 0x55aa0b4b7060 parent C++ address....... PySide6.QtCore.QObject/0x55aa0b4b7060 hasOwnership...... 1 containsCppWrapper 1 validCppObject.... 1 wasCreatedByPython 1 metaObject() 0x55aa0b4b6820 child C++ address....... PySide6.QtCore.QObject/0x55aa0b4b6820 hasOwnership...... 1 containsCppWrapper 1 validCppObject.... 1 wasCreatedByPython 1 metaObject() 0x55aa0b4b7060 parent C++ address....... PySide6.QtCore.QObject/0x55aa0b4b7060 hasOwnership...... 1 containsCppWrapper 1 validCppObject.... 1 wasCreatedByPython 1 before gc del child before gc del parent before gc.collect() ~QObjectWrapper 0x55aa0b4b7060 parent metaObject() 0x55aa0b4b6820 child C++ address....... PySide6.QtCore.QObject/0x55aa0b4b6820 hasOwnership...... 1 containsCppWrapper 1 validCppObject.... 1 wasCreatedByPython 1 Fatal Python error: _PyInterpreterState_GET: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL) Python runtime state: initialized Current thread 0x00007f226cefeb80 (most recent call first): Garbage-collecting File "/home/frkleint/samples/pyside1919.py", line 30 in Extension modules: shiboken6.Shiboken, PySide6.QtCore (total: 2) Aborted (core dumped)