ID 540026 - QAction registered to the Image Manager causes a crash on close

Follow

Problem summary
QAction registered to the Image Manager causes a crash on close. This issue only appears to occur on Linux.
 
Customer reported version
Mari 6.0v2
 
Customer reported platform
CentOS 7
 
Steps to reproduce
 
1) Open Mari.
 
2) Open the Python Console and execute the following code, from the Mari Python API documentation:

from PySide2.QtWidgets import  QAction # Register an action, to be added to the root level of the image manager's context sensitive menu # On triggered, this menu will print "Hello world" to the python console def printMessage():     print("Hello world") PrintAction1 = QAction("Print hello", mari.app) PrintAction1.triggered.connect(printMessage) mari.images.registerContextAction(PrintAction1)
 
3) Close Mari.
 
4) Check the MariLog.txt and notice that Mari had crashed. For example:
============================= ** CRASH! ** =============================Mari crashed with exit code 11.  Sorry!Backtrace info follows:------------------------/usr/local/Mari6.0v2/bin/../lib/libMriCoreModules.so(+0x92283f)[0x7fedc55d383f]/lib64/libc.so.6(+0x36400)[0x7fedbc686400]/usr/local/Mari6.0v2/bin/../3rdParty/lib/libshiboken2.cpython-39-x86_64-linux-gnu.so.5.15(_ZN8Shiboken14BindingManager15retrieveWrapperEPKv+0x12)[0x7fedc18d1e72]/usr/local/Mari6.0v2/3rdParty/lib/python3.9/site-packages/PySide2/QtWidgets.cpython-39-x86_64-linux-gnu.so(+0x1daede)[0x7fec05a7cede]/usr/local/Mari6.0v2/bin/../3rdParty/lib/libQt5Core.so.5(_ZN14QObjectPrivate14deleteChildrenEv+0x6e)[0x7fedbe9326ce]/usr/local/Mari6.0v2/bin/../3rdParty/lib/libQt5Core.so.5(_ZN7QObjectD1Ev+0x306)[0x7fedbe93c7e6]/usr/local/Mari6.0v2/bin/../lib/libMriCore.so(_ZN21MriSerializableObjectD2Ev+0x13f)[0x7fedc4796e6f]/lib64/libc.so.6(+0x39ce9)[0x7fedbc689ce9]/lib64/libc.so.6(+0x39d37)[0x7fedbc689d37]/lib64/libc.so.6(__libc_start_main+0xfc)[0x7fedbc67255c]/usr/local/Mari6.0v2/bin/Mari6.0v2[0x409f00][          MriScriptManager.cpp:301 ] : [ !! ] Unknown internal object pointer 0x7fedc70ba700[          MriScriptManager.cpp:301 ] : [ !! ] Unknown internal object pointer 0x7fedc70ba700
 
Expected behaviour
Mari should not crash on close.
 
Actual behaviour
QAction registered to the Image Manager causes a crash on close.
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Mari 6.0v2 - Linux CentOS 7
Mari 5.0v1 - Linux CentOS 7
Mari 4.8v1 - Linux CentOS 7 - Regression
 
Unable to reproduce bug in:
Mari 6.0v2 - Windows 10
Mari 4.7v7 - Linux CentOS 7
 
Earliest version tested
Mari 4.7v7
- This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why