State:Closed|TargetRelease:7.0v1|icon_bug|database:public|icon_mari|Resolution:Fixed|BugID:540026|
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) ============================= ** 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 We're sorry to hear that
Please tell us why