Bug 504460 - With ed6172a3d0a9580598ec6c20a9e0a0131024357b, opening the context menu causes Dolphin to crash
Summary: With ed6172a3d0a9580598ec6c20a9e0a0131024357b, opening the context menu cause...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
: 504502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-05-18 11:03 UTC by daron439
Modified: 2025-05-26 04:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/182958/events/6d608fc5a4f44e5db08b222bbac64259/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daron439 2025-05-18 11:03:19 UTC
SUMMARY
https://invent.kde.org/frameworks/kio/-/commit/ed6172a3d0a9580598ec6c20a9e0a0131024357b causes Dolphin to crash when the context menu is opened twice.

STEPS TO REPRODUCE
1. Run KIO with commit ed6172a3d0a9580598ec6c20a9e0a0131024357b.
2. Open the context menu in Dolphin twice.

OBSERVED RESULT
Dolphin crashes

EXPECTED RESULT
No crashes

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
#0  QArrayDataPointer<QAction*>::ref (this=0x7fffffffbab0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/tools/qarraydatapointer.h:451
#1  QArrayDataPointer<QAction*>::QArrayDataPointer (this=0x7fffffffbab0, other=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/tools/qarraydatapointer.h:40
#2  QList<QAction*>::QList (this=0x7fffffffbab0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/tools/qlist.h:76
#3  QWidget::actions (this=this@entry=0x555555ac6ff0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qwidget.cpp:3232
#4  0x00007ffff62472eb in QMenu::clear (this=0x555555ac6ff0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/widgets/qmenu.cpp:2217
#5  0x00007fff7b0aaed1 in TagsFileItemAction::actions (this=0x555555ad54c0, fileItemInfos=..., parentWidget=0x555555c64160) at /usr/src/debug/baloo-widgets-25.07.70~1.git0f14a74-1.fc42.x86_64/src/tagsfileitemactionplugin/tagsfileitemaction.cpp:98
#6  0x00007ffff765b655 in KFileItemActionsPrivate::addPluginActionsTo (this=0x555555943670, mainMenu=0x555555c64160, actionsMenu=0x555555c64160, excludeList=...) at /usr/src/debug/kf6-kio-6.15.0~13.gited6172a-1.fc42.x86_64/src/widgets/kfileitemactions.cpp:593
#7  0x00007ffff76589a7 in KFileItemActions::addActionsTo (this=0x55555593de40, menu=0x555555c64160, sources=..., additionalActions=..., excludeList=...) at /usr/src/debug/kf6-kio-6.15.0~13.gited6172a-1.fc42.x86_64/src/widgets/kfileitemactions.cpp:270
#8  0x0000555555594ecd in DolphinContextMenu::addAdditionalActions (this=this@entry=0x555555c64160, props=...) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/dolphincontextmenu.cpp:502
#9  0x0000555555596133 in DolphinContextMenu::addItemContextMenu (this=0x555555c64160) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/dolphincontextmenu.cpp:290
#10 DolphinContextMenu::addAllActions (this=0x555555c64160) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/dolphincontextmenu.cpp:96
#11 DolphinContextMenu::DolphinContextMenu (this=0x555555c64160, parent=<optimized out>, fileInfo=<optimized out>, selectedItems=<optimized out>, baseUrl=<optimized out>, fileItemActions=<optimized out>, this=<optimized out>, parent=<optimized out>, fileInfo=<optimized out>, selectedItems=<optimized out>, baseUrl=<optimized out>, fileItemActions=<optimized out>) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/dolphincontextmenu.cpp:56
#12 0x000055555557531e in DolphinMainWindow::openContextMenu (this=0x55555593dd40, pos=..., item=..., selectedItems=..., url=...) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/dolphinmainwindow.cpp:1486
#13 0x00007ffff4f6033a in QtPrivate::QSlotObjectBase::call (this=0x5555573d9e40, r=0x55555593dd40, a=0x7fffffffc100) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h:461
#14 doActivate<false> (sender=0x555557359c20, signal_index=29, argv=argv@entry=0x7fffffffc100) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:4138
#15 0x00007ffff4f56d09 in QMetaObject::activate (sender=<optimized out>, m=<optimized out>, local_signal_index=local_signal_index@entry=22, argv=argv@entry=0x7fffffffc100) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:4198
#16 0x00007ffff7ecb978 in QMetaObject::activate<void, QPoint, KFileItem, KFileItemList, QUrl> (sender=<optimized out>, mo=<optimized out>, local_signal_index=22, ret=0x0) at /usr/include/qt6/QtCore/qobjectdefs.h:306
#17 DolphinView::requestContextMenu (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>, _t4=<optimized out>) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/redhat-linux-build/src/dolphinprivate_autogen/include/moc_dolphinview.cpp:1039
#18 0x00007ffff7ec0718 in DolphinView::slotItemContextMenuRequested (this=0x555557359c20, index=25, pos=...) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/views/dolphinview.cpp:1180
#19 0x00007ffff4f6033a in QtPrivate::QSlotObjectBase::call (this=0x555557403010, r=0x555557359c20, a=0x7fffffffc2a0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h:461
#20 doActivate<false> (sender=0x5555573683a0, signal_index=6, argv=argv@entry=0x7fffffffc2a0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:4138
#21 0x00007ffff4f56d09 in QMetaObject::activate (sender=sender@entry=0x5555573683a0, m=m@entry=0x7ffff7f97200, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fffffffc2a0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:4198
#22 0x00007ffff7e5e32d in QMetaObject::activate<void, int, QPointF> (sender=0x5555573683a0, mo=0x7ffff7f97200, local_signal_index=3, ret=0x0) at /usr/include/qt6/QtCore/qobjectdefs.h:306
#23 KItemListController::itemContextMenuRequested (this=this@entry=0x5555573683a0, _t1=<optimized out>, _t1@entry=25, _t2=...) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/redhat-linux-build/src/dolphinprivate_autogen/include/moc_kitemlistcontroller.cpp:386
#24 0x00007ffff7e635ce in KItemListController::contextMenuEvent (this=0x5555573683a0, event=<optimized out>) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/kitemviews/kitemlistcontroller.cpp:774
#25 0x00007ffff7e71519 in KItemListView::event (this=0x55555734e710, event=0x7fffffffc830) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/kitemviews/kitemlistview.cpp:1081
#26 0x00007ffff603d7af in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55555734e710, e=0x7fffffffc830) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3301
#27 0x00007ffff4ef5fa8 in QCoreApplication::notifyInternal2 (receiver=0x55555734e710, event=0x7fffffffc830) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#28 0x00007ffff60a5898 in QWidget::event (this=this@entry=0x555555948ed0, event=event@entry=0x7fffffffc830) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qwidget.cpp:9354
#29 0x00007ffff614dba6 in QFrame::event (this=0x555555948ed0, e=0x7fffffffc830) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/widgets/qframe.cpp:521
#30 0x00007ffff4ef5d1a in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x555557382ed0, event=event@entry=0x7fffffffc830) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1243
#31 0x00007ffff603d79f in QApplicationPrivate::notify_helper (this=this@entry=0x5555556f3a20, receiver=receiver@entry=0x555557382ed0, e=e@entry=0x7fffffffc830) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3295
#32 0x00007ffff60490fb in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fffffffc960) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:2919
#33 0x00007ffff4ef5fa8 in QCoreApplication::notifyInternal2 (receiver=0x5555573d1c50, event=0x7fffffffc960) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#34 0x00007ffff4ef5fda in QCoreApplication::forwardEvent (receiver=<optimized out>, event=<optimized out>, originatingEvent=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1121
#35 0x00007ffff60bd82d in QWidgetWindow::handleContextMenuEvent (this=<optimized out>, e=0x7fffffffcba0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qwidgetwindow.cpp:1211
#36 0x00007ffff60bdce4 in QWidgetWindow::event (this=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qwidgetwindow.cpp:369
#37 0x00007ffff603d7af in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555558bd0cc0, e=0x7fffffffcba0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3301
#38 0x00007ffff4ef5fa8 in QCoreApplication::notifyInternal2 (receiver=0x555558bd0cc0, event=0x7fffffffcba0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#39 0x00007ffff4ef5fda in QCoreApplication::forwardEvent (receiver=<optimized out>, event=<optimized out>, originatingEvent=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1121
#40 0x00007ffff575477d in QWindowPrivate::maybeSynthesizeContextMenuEvent (this=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/gui/kernel/qwindow_p.h:35
#41 QWindowPrivate::maybeSynthesizeContextMenuEvent (this=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/gui/kernel/qwindow.cpp:2799
#42 0x00007ffff60bb072 in QWidgetWindow::handleMouseEvent (this=0x555558bd0cc0, event=0x7fffffffcf70) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qwidgetwindow.cpp:683
#43 0x00007ffff60bdb1b in QWidgetWindow::event (this=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qwidgetwindow.cpp:292
#44 0x00007ffff603d7af in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555558bd0cc0, e=0x7fffffffcf70) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3301
#45 0x00007ffff4ef5fa8 in QCoreApplication::notifyInternal2 (receiver=0x555558bd0cc0, event=0x7fffffffcf70) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#46 0x00007ffff4ef621d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1560
#47 0x00007ffff56eeebb in QGuiApplicationPrivate::processMouseEvent (e=0x555555c8cef0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/gui/kernel/qguiapplication.cpp:2483
#48 0x00007ffff575862c in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1113
#49 0x00007ffff5758848 in QWindowSystemInterface::flushWindowSystemEvents (flags=...) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1082
#50 0x00007ffff4f50fec in QObject::event (this=<optimized out>, e=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:1431
#51 0x00007ffff603d7af in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555555711800, e=0x7fffd0002c60) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3301
#52 0x00007ffff4ef5fa8 in QCoreApplication::notifyInternal2 (receiver=0x555555711800, event=0x7fffd0002c60) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#53 0x00007ffff4ef620d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1546
#54 0x00007ffff4ef9cd6 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5555556e16e0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1879
#55 0x00007ffff51ffd2f in postEventSourceDispatch (s=0x55555570d780) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#56 0x00007ffff243f040 in g_main_dispatch (context=0x7fffd8000f00) at ../glib/gmain.c:3398
#57 g_main_context_dispatch_unlocked (context=0x7fffd8000f00) at ../glib/gmain.c:4249
#58 0x00007ffff2448128 in g_main_context_iterate_unlocked (context=context@entry=0x7fffd8000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4314
#59 0x00007ffff24482d3 in g_main_context_iteration (context=0x7fffd8000f00, may_block=1) at ../glib/gmain.c:4379
#60 0x00007ffff51ff56d in QEventDispatcherGlib::processEvents (this=0x55555570e8f0, flags=...) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#61 0x00007ffff4f03783 in QEventLoop::exec (this=this@entry=0x7fffffffd5f0, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/global/qflags.h:77
#62 0x00007ffff4eff229 in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1449
#63 0x00007ffff56dac3d in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/gui/kernel/qguiapplication.cpp:1993
#64 0x00007ffff603d719 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:2568
#65 0x0000555555563c73 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin-25.07.70~27.git832b7c4-1.fc42.x86_64/src/main.cpp:273
Comment 1 Colin J Thomson 2025-05-18 11:42:25 UTC
Running Git Master here and I have just seen this, BT set to sentry.
Comment 2 Colin J Thomson 2025-05-18 21:23:30 UTC
This looks to be fixed now with today's updates, thank you.
Comment 3 daron439 2025-05-19 05:57:40 UTC
This is still an issue in today's master.
Comment 4 Colin J Thomson 2025-05-19 17:02:18 UTC
(In reply to daron439 from comment #3)
> This is still an issue in today's master.

I guess the COPR builder just backed out that commit, sorry for the noise/mistake.
Comment 6 John Kizer 2025-05-26 04:21:53 UTC
*** Bug 504502 has been marked as a duplicate of this bug. ***