Bug 478357 - dolphin crashes reproducibly when deleting a folder that is expanded, expands wrong folder!
Summary: dolphin crashes reproducibly when deleting a folder that is expanded, expands...
Status: RESOLVED DUPLICATE of bug 469261
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.3
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-12-10 18:19 UTC by Christian González
Modified: 2024-02-27 05:51 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.96 KB, text/plain)
2024-02-27 05:51 UTC, max-huntermann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian González 2023-12-10 18:19:43 UTC
Application: dolphin (23.08.3)

Qt Version: 5.15.11
Frameworks Version: 5.112.0
Operating System: Linux 6.5.13-1-MANJARO x86_64
Windowing System: Wayland
Distribution: Manjaro Linux
DrKonqi: 5.27.9 [KCrashBackend]

-- Information about the crash:
Weird behaviour. reproducible here on Manjaro current.
in a folder, create folder "A" and place a file in it. Create folder "B" and place a file in it.
now expand folder B using the "greater than" sign on its left. close it again.
Now expand folder A using the same technique.

Result: The folder A content is displayed below folder B (!)
When you now mark folder A and press "Del" on the keyboard, Dolphin crashes.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f3b9c452ea3 in KFileItemModel::expandedParentsCount(KFileItemModel::ItemData const*) () at /usr/lib/libdolphinprivate.so.5
#5  0x00007f3b9c48de99 in KItemListView::hasSiblingSuccessor(int) const () at /usr/lib/libdolphinprivate.so.5
#6  0x00007f3b9c48e0de in KItemListView::updateSiblingsInformation(int, int) () at /usr/lib/libdolphinprivate.so.5
#7  0x00007f3b9c4876f8 in KItemListView::slotItemsRemoved(KItemRangeList const&) () at /usr/lib/libdolphinprivate.so.5
#8  0x00007f3b9a2d1097 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007f3b9c491b6a in KItemModelBase::itemsRemoved(KItemRangeList const&) () at /usr/lib/libdolphinprivate.so.5
#10 0x00007f3b9c45be8f in KFileItemModel::slotItemsDeleted(KFileItemList const&) () at /usr/lib/libdolphinprivate.so.5
#11 0x00007f3b9a2d1097 in  () at /usr/lib/libQt5Core.so.5
#12 0x00007f3b9bf392ba in KCoreDirLister::itemsDeleted(KFileItemList const&) () at /usr/lib/libKF5KIOCore.so.5
#13 0x00007f3b9bf3fc0a in  () at /usr/lib/libKF5KIOCore.so.5
#14 0x00007f3b9bf34385 in  () at /usr/lib/libKF5KIOCore.so.5
#15 0x00007f3b9bf34ae6 in  () at /usr/lib/libKF5KIOCore.so.5
#16 0x00007f3b9a2d1097 in  () at /usr/lib/libQt5Core.so.5
#17 0x00007f3b9bf4b8ea in OrgKdeKDirNotifyInterface::FilesRemoved(QStringList const&) () at /usr/lib/libKF5KIOCore.so.5
#18 0x00007f3b9bf517d3 in OrgKdeKDirNotifyInterface::qt_metacall(QMetaObject::Call, int, void**) () at /usr/lib/libKF5KIOCore.so.5
#19 0x00007f3b9b5ca76e in  () at /usr/lib/libQt5DBus.so.5
#20 0x00007f3b9a2c3bd4 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#21 0x00007f3b9af788ff in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007f3b9a29c168 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#23 0x00007f3b9a2a10cb in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#24 0x00007f3b9a2e7138 in  () at /usr/lib/libQt5Core.so.5
#25 0x00007f3b9830df69 in  () at /usr/lib/libglib-2.0.so.0
#26 0x00007f3b9836c327 in  () at /usr/lib/libglib-2.0.so.0
#27 0x00007f3b9830c162 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#28 0x00007f3b9a2eaf7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#29 0x00007f3b9a29ae74 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#30 0x00007f3b9a29c313 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#31 0x000055e42775adb8 in  ()
#32 0x00007f3b99a45cd0 in  () at /usr/lib/libc.so.6
#33 0x00007f3b99a45d8a in __libc_start_main () at /usr/lib/libc.so.6
#34 0x000055e42775b575 in  ()
[Inferior 1 (process 21046) detached]

Reported using DrKonqi
Comment 1 Akseli Lahtinen 2023-12-11 08:20:41 UTC

*** This bug has been marked as a duplicate of bug 469261 ***
Comment 2 847240 2024-02-11 13:45:00 UTC
I experienced the same weird glitch with the contents (visually) expanding below the wrong folder and the subsequent crash when trying to delete those contents.

Application: Dolphin (dolphin), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fafdf042c12 in QHash<QByteArray, QVariant>::value (akey=..., this=0x560f2e44ab08) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:656
#5  KFileItemModel::expandedParentsCount (data=<optimized out>) at /usr/src/dolphin-4:23.08.1-0ubuntu1/src/kitemviews/kfileitemmodel.cpp:1697
#6  0x00007fafdf07c7d9 in KItemListView::hasSiblingSuccessor (this=this@entry=0x560f2da8d920, index=index@entry=0) at /usr/src/dolphin-4:23.08.1-0ubuntu1/src/kitemviews/kitemlistview.cpp:2648
#7  0x00007fafdf07ca1c in KItemListView::updateSiblingsInformation (this=0x560f2da8d920, firstIndex=0, lastIndex=3) at /usr/src/dolphin-4:23.08.1-0ubuntu1/src/kitemviews/kitemlistview.cpp:2632
#8  0x00007fafdf076222 in KItemListView::slotItemsRemoved (this=0x560f2da8d920, itemRanges=...) at /usr/src/dolphin-4:23.08.1-0ubuntu1/src/kitemviews/kitemlistview.cpp:1258
#9  0x00007fafdcd06312 in QtPrivate::QSlotObjectBase::call (a=0x7fff9ddedb00, r=0x560f2da8d920, this=0x560f2d96ac40) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x560f2d9e58f0, signal_index=4, argv=0x7fff9ddedb00) at kernel/qobject.cpp:3925
#11 0x00007fafdccfec47 in QMetaObject::activate (sender=<optimized out>, m=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff9ddedb00) at kernel/qobject.cpp:3985
#12 0x00007fafdf080359 in KItemModelBase::itemsRemoved (this=<optimized out>, _t1=...) at /usr/src/dolphin-4:23.08.1-0ubuntu1/obj-x86_64-linux-gnu/src/dolphinprivate_autogen/include/moc_kitemmodelbase.cpp:253
#13 0x00007fafdf04b828 in KFileItemModel::slotItemsDeleted (this=0x560f2d9e58f0, items=...) at /usr/src/dolphin-4:23.08.1-0ubuntu1/src/kitemviews/kfileitemmodel.cpp:1266
#14 0x00007fafdcd06312 in QtPrivate::QSlotObjectBase::call (a=0x7fff9ddedcb0, r=0x560f2d9e58f0, this=0x560f2d9dab30) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#15 doActivate<false> (sender=0x560f2d9ea8a0, signal_index=18, argv=0x7fff9ddedcb0) at kernel/qobject.cpp:3925
#16 0x00007fafdccfec47 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fafdeb3c0c0 <KCoreDirLister::staticMetaObject>, local_signal_index=local_signal_index@entry=15, argv=argv@entry=0x7fff9ddedcb0) at kernel/qobject.cpp:3985
#17 0x00007fafdeaa36d9 in KCoreDirLister::itemsDeleted (this=<optimized out>, _t1=...) at /usr/src/kio-5.110.0-0ubuntu1/obj-x86_64-linux-gnu/src/core/KF5KIOCore_autogen/include/moc_kcoredirlister.cpp:579
#18 0x00007fafdeaa7fb8 in KCoreDirListerPrivate::emitItemsDeleted (this=0x560f2d9eaa70, itemsList=...) at /usr/src/kio-5.110.0-0ubuntu1/src/core/kcoredirlister.cpp:2597
#19 0x00007fafdeab7a43 in KCoreDirListerCache::itemsDeleted (this=this@entry=0x7fafdeb405c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, listers=..., deletedItems=...) at /usr/src/kio-5.110.0-0ubuntu1/src/core/kcoredirlister.cpp:1926
#20 0x00007fafdeab8c14 in KCoreDirListerCache::slotFilesRemoved (this=this@entry=0x7fafdeb405c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, fileList=...) at /usr/src/kio-5.110.0-0ubuntu1/src/core/kcoredirlister.cpp:856
#21 0x00007fafdeab9235 in KCoreDirListerCache::slotFilesRemoved (this=0x7fafdeb405c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, fileList=...) at /usr/src/kio-5.110.0-0ubuntu1/src/core/kcoredirlister.cpp:806
#22 0x00007fafdcd06312 in QtPrivate::QSlotObjectBase::call (a=0x7fff9ddedf80, r=0x7fafdeb405c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, this=0x560f2d7ae150) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false> (sender=0x560f2d79c670, signal_index=8, argv=0x7fff9ddedf80) at kernel/qobject.cpp:3925
#24 0x00007fafdccfec47 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fafdeb3cca0 <OrgKdeKDirNotifyInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff9ddedf80) at kernel/qobject.cpp:3985
#25 0x00007fafdead7a99 in OrgKdeKDirNotifyInterface::FilesRemoved (this=<optimized out>, _t1=...) at /usr/src/kio-5.110.0-0ubuntu1/obj-x86_64-linux-gnu/src/core/KF5KIOCore_autogen/include/moc_kdirnotify.cpp:253
#26 0x00007fafdead7c49 in OrgKdeKDirNotifyInterface::qt_static_metacall (_o=_o@entry=0x560f2d79c670, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=5, _a=_a@entry=0x7fff9ddee0a0) at /usr/src/kio-5.110.0-0ubuntu1/obj-x86_64-linux-gnu/src/core/KF5KIOCore_autogen/include/moc_kdirnotify.cpp:108
#27 0x00007fafdead8c23 in OrgKdeKDirNotifyInterface::qt_metacall (this=0x560f2d79c670, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff9ddee0a0) at /usr/src/kio-5.110.0-0ubuntu1/obj-x86_64-linux-gnu/src/core/KF5KIOCore_autogen/include/moc_kdirnotify.cpp:204
#28 0x00007fafde0bd2bb in QDBusConnectionPrivate::deliverCall (this=<optimized out>, object=<optimized out>, msg=..., metaTypes=..., slotIdx=<optimized out>) at qdbusintegrator.cpp:1001
#29 0x00007fafdccf99a0 in QObject::event (this=0x560f2d79c670, e=0x7fafa80184e0) at kernel/qobject.cpp:1347
#30 0x00007fafdd96bc82 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x560f2d79c670, e=0x7fafa80184e0) at kernel/qapplication.cpp:3640
#31 0x00007fafdcccc7a8 in QCoreApplication::notifyInternal2 (receiver=0x560f2d79c670, event=0x7fafa80184e0) at kernel/qcoreapplication.cpp:1064
#32 0x00007fafdcccc982 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#33 0x00007fafdcccfeb1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x560f2d4e0f50) at kernel/qcoreapplication.cpp:1821
#34 0x00007fafdccd040c in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at kernel/qcoreapplication.cpp:1680
#35 0x00007fafdcd286f7 in postEventSourceDispatch (s=0x560f2d6498b0) at kernel/qeventdispatcher_glib.cpp:277
#36 0x00007fafdad13b2c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fafdad6f46f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007fafdad11d20 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fafdcd27daa in QEventDispatcherGlib::processEvents (this=0x560f2d64a2b0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#40 0x00007fafdcccb15b in QEventLoop::exec (this=this@entry=0x7fff9ddee4e0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#41 0x00007fafdccd3904 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#42 0x00007fafdd137610 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1863
#43 0x00007fafdd96bbf9 in QApplication::exec () at kernel/qapplication.cpp:2832
#44 0x0000560f2c1da3f4 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/dolphin-4:23.08.1-0ubuntu1/src/main.cpp:255
[Inferior 1 (process 130262) detached]
Comment 3 max-huntermann 2024-02-27 05:51:16 UTC
Created attachment 166125 [details]
New crash information added by DrKonqi

dolphin (23.08.5) using Qt 5.15.12

tried expanding a direcotry in tree view, after expanding the wrong directory and expanding another, it's contents were displayed in the wrong location, on the next click trying to collapse it again, dolphin crashed.

-- Backtrace (Reduced):
#4  0x0000795aae83aea3 in KFileItemModel::expandedParentsCount(KFileItemModel::ItemData const*) () at /usr/lib/libdolphinprivate.so.5
#5  0x0000795aae875e99 in KItemListView::hasSiblingSuccessor(int) const () at /usr/lib/libdolphinprivate.so.5
#6  0x0000795aae8760de in KItemListView::updateSiblingsInformation(int, int) () at /usr/lib/libdolphinprivate.so.5
#7  0x0000795aae86f6f8 in KItemListView::slotItemsRemoved(KItemRangeList const&) () at /usr/lib/libdolphinprivate.so.5
#8  0x0000795aac6c8e27 in ??? () at /usr/lib/libQt5Core.so.5