Setting custom context menu leads to crash on exit. This can be reproduced with Qt5 systray example app (qtbase/examples/widgets/desktop/systray) Reproducible: Always Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00000000005a1560 in ?? () (gdb) bt #0 0x00000000005a1560 in ?? () #1 0x00007fffe78e4c40 in KStatusNotifierItem::~KStatusNotifierItem (this=0x5a0eb0, __in_chrg=<optimized out>) at /usr/src/debug/kde-frameworks/knotifications-9999/knotifications-9999/src/kstatusnotifieritem.cpp:71 #2 0x00007fffe78e508d in KStatusNotifierItem::~KStatusNotifierItem (this=0x5a0eb0, __in_chrg=<optimized out>) at /usr/src/debug/kde-frameworks/knotifications-9999/knotifications-9999/src/kstatusnotifieritem.cpp:74 #3 0x00007fffe7df1053 in KDEPlatformSystemTrayIcon::cleanup (this=0x5960c0) at /usr/src/debug/kde-frameworks/frameworkintegration-9999/frameworkintegration-9999/src/platformtheme/kdeplatformsystemtrayicon.cpp:264 #4 0x00007ffff7c1a55b in QSystemTrayIcon::~QSystemTrayIcon() () from /usr/lib64/libQt5Widgets.so.5 #5 0x00007ffff7c1a579 in QSystemTrayIcon::~QSystemTrayIcon() () from /usr/lib64/libQt5Widgets.so.5 #6 0x00007ffff700b3eb in QObjectPrivate::deleteChildren() () from /usr/lib64/libQt5Core.so.5 #7 0x00007ffff78fe90a in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5 #8 0x00000000004045ca in Window::~Window (this=0x7fffffffcd10, __in_chrg=<optimized out>) at window.h:64 #9 0x0000000000404413 in main (argc=1, argv=0x7fffffffcee8) at main.cpp:62 This problem appears also in qBittorrent (https://github.com/qbittorrent/qBittorrent/issues/2416, https://github.com/qbittorrent/qBittorrent/issues/2646)
*** This bug has been marked as a duplicate of bug 343976 ***