https://bugs.kde.org/show_bug.cgi?id=476029
Bug ID: 476029 Summary: Dolphin crashes when trying to delete file, after using custom service menu Classification: Applications Product: dolphin Version: 23.08.2 Platform: Archlinux OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: dolphin-bugs-n...@kde.org Reporter: fanzhuyi...@gmail.com CC: kfm-de...@kde.org Target Milestone: --- Application: dolphin (23.08.2) Qt Version: 5.15.11 Frameworks Version: 5.111.0 Operating System: Linux 6.5.8-arch1-1 x86_64 Windowing System: Wayland Distribution: "Arch Linux" DrKonqi: 5.27.8 [KCrashBackend] -- Information about the crash: Steps to reproduce: 1. Create and install a servicemenu file (that does nothing) as follows: ``` [Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin,all/allfiles, ExcludeServiceTypes=kdedevice/* Encoding=UTF-8 Icon=krename Actions=Clean; [Desktop Action Clean] Name=Clean Name Icon=edit-rename Exec="/usr/bin/echo" %F ``` 2. open dolphin 3. right click any file, and select the Clean Name servicemenu 4. Press delete to delete the file 5. dolphin crashes. The crash can be reproduced every time. -- Backtrace: Application: Dolphin (dolphin), signal: Segmentation fault Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>} [KCrash Handler] #6 0x00007f5d4e2a051b in QMetaObject::cast(QObject const*) const (this=0x7f5d4f4857e0 <QAction::staticMetaObject>, obj=obj@entry=0x55fd207a1c30) at kernel/qmetaobject.cpp:389 #7 0x00007f5d4e2a055a in QMetaObject::cast(QObject*) const (this=<optimized out>, obj=obj@entry=0x55fd207a1c30) at kernel/qmetaobject.cpp:378 #8 0x00007f5d4ef990d6 in qobject_cast<QAction*>(QObject*) (object=0x55fd207a1c30, object=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:519 #9 qWidgetShortcutContextMatcher(QObject*, Qt::ShortcutContext) (object=0x55fd207a1c30, context=Qt::WindowShortcut) at kernel/qshortcut.cpp:112 #10 0x00007f5d4e775f2c in QShortcutEntry::correctContext() const (this=0x55fd1ff86e80) at kernel/qshortcutmap.cpp:79 #11 QShortcutMap::find(QKeyEvent*, int) (this=this@entry=0x55fd1fb930f8, e=e@entry=0x7fff75f24b80, ignoredModifiers=ignoredModifiers@entry=0) at kernel/qshortcutmap.cpp:457 #12 0x00007f5d4e776a65 in QShortcutMap::nextState(QKeyEvent*) (this=this@entry=0x55fd1fb930f8, e=e@entry=0x7fff75f24b80) at kernel/qshortcutmap.cpp:372 #13 0x00007f5d4e7773b7 in QShortcutMap::tryShortcut(QKeyEvent*) (this=0x55fd1fb930f8, e=0x7fff75f24b80) at kernel/qshortcutmap.cpp:328 #14 0x00007f5d4e72be18 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) (window=<optimized out>, timestamp=4092496, keyCode=16777223, modifiers=..., nativeScanCode=119, nativeVirtualKey=65535, nativeModifiers=0, text=..., autorepeat=false, count=1) at kernel/qwindowsysteminterface.cpp:477 #15 0x00007f5d4e745522 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (e=0x55fd2047be20) at kernel/qguiapplication.cpp:2398 #16 0x00007f5d4e72a6e5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=...) at kernel/qwindowsysteminterface.cpp:1169 #17 0x00007f5d4b95ec75 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib64/libQt5WaylandClient.so.5 #18 0x00007f5d4c10df19 in g_main_dispatch (context=0x7f5d40000ec0) at ../glib/glib/gmain.c:3476 #19 0x00007f5d4c16c2b7 in g_main_context_dispatch_unlocked (context=0x7f5d40000ec0) at ../glib/glib/gmain.c:4284 #20 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7f5d40000ec0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4349 #21 0x00007f5d4c10c112 in g_main_context_iteration (context=0x7f5d40000ec0, may_block=1) at ../glib/glib/gmain.c:4414 #22 0x00007f5d4e2eaf7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55fd1fbd7090, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #23 0x00007f5d4e29ae74 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fff75f24f30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #24 0x00007f5d4e29c313 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #25 0x00007f5d4e73bf02 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870 #26 0x00007f5d4ef76cda in QApplication::exec() () at kernel/qapplication.cpp:2832 #27 0x000055fd1eb1adb8 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin/dolphin-23.08.2/src/main.cpp:255 [Inferior 1 (process 15978) detached] The reporter indicates this bug may be a duplicate of or related to bug 427149, bug 445334, bug 447694. Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.