Bug 469932

Summary: Dolphin crashes when copying very large number of files (about >3000)
Product: [Applications] dolphin Reporter: yurapostates
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kfm-devel, nicolas.fella
Priority: NOR Keywords: drkonqi
Version: 23.04.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description yurapostates 2023-05-18 09:10:13 UTC
Application: dolphin (23.04.1)

Qt Version: 5.15.9
Frameworks Version: 5.106.0
Operating System: Linux 6.3.2-zen1-1-zen x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
Here's what I did to reproduce the crash every time without fail
1) The copy happens from a btrfs hdd to a folder in an ext4 ssd. The folder in the ext4 ssd is automatically synced with syncthing with another device though don't know how relevant that is
2) Ctrl+A and Ctrl+C 3000 files.
3) Ctrl+V to the other folder
4) Crash everytime

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  std::__atomic_base<int>::operator-- (this=<optimized out>, this=<optimized out>) at /usr/include/c++/13.1.1/bits/atomic_base.h:410
#7  QAtomicOps<int>::deref<int> (_q_value=..., _q_value=...) at /usr/include/qt/QtCore/qatomic_cxx11.h:289
#8  QBasicAtomicInteger<int>::deref (this=<optimized out>, this=<optimized out>) at /usr/include/qt/QtCore/qbasicatomic.h:119
#9  QSharedDataPointer<KFileItemPrivate>::~QSharedDataPointer (this=<optimized out>, this=<optimized out>) at /usr/include/qt/QtCore/qshareddata.h:93
#10 KFileItem::~KFileItem (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kio/kio-5.106.0/src/core/kfileitem.cpp:605
#11 0x00007f6cfa90d8b3 in QList<KFileItem>::node_destruct (n=0x562c31666590, this=0x562c3093cfa0) at /usr/include/qt/QtCore/qlist.h:479
#12 QList<KFileItem>::erase (it=..., this=0x562c3093cfa0) at /usr/include/qt/QtCore/qlist.h:566
#13 KCoreDirListerCache::reinsert (this=<optimized out>, item=..., oldUrl=...) at /usr/src/debug/kio/kio-5.106.0/src/core/kcoredirlister_p.h:289
#14 0x00007f6cfa92094f in KCoreDirListerCache::processPendingUpdates (this=this@entry=0x7f6cfa9a2560 <_ZZN12_GLOBAL__N_121Q_QGS_kDirListerCache13innerFunctionEvE6holder.lto_priv.0>) at /usr/src/debug/kio/kio-5.106.0/src/core/kcoredirlister.cpp:2022
#15 0x00007f6cfa922250 in KCoreDirListerCache::slotResult (this=0x7f6cfa9a2560 <_ZZN12_GLOBAL__N_121Q_QGS_kDirListerCache13innerFunctionEvE6holder.lto_priv.0>, j=0x562c3067e9b0) at /usr/src/debug/kio/kio-5.106.0/src/core/kcoredirlister.cpp:1342
#16 0x00007f6cf8cbeb41 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#17 doActivate<false> (sender=0x562c3067e9b0, signal_index=6, argv=0x7ffe219936a0) at kernel/qobject.cpp:3923
#18 0x00007f6cfa115b6a in KJob::result (this=this@entry=0x562c3067e9b0, _t1=<optimized out>, _t1@entry=0x562c3067e9b0, _t2=...) at /usr/src/debug/kcoreaddons/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633
#19 0x00007f6cfa11b87c in KJob::finishJob (this=0x562c3067e9b0, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons/kcoreaddons-5.106.0/src/lib/jobs/kjob.cpp:98
#20 0x00007f6cfa11b92f in KJob::kill (this=this@entry=0x562c3067e9b0, verbosity=verbosity@entry=KJob::EmitResult) at /usr/src/debug/kcoreaddons/kcoreaddons-5.106.0/src/lib/jobs/kjob.cpp:118
#21 0x00007f6cfa90f813 in KCoreDirListerCache::stopListJob (silent=true, url=..., this=0x7ffe21993780) at /usr/src/debug/kio/kio-5.106.0/src/core/kcoredirlister.cpp:446
#22 KCoreDirListerCache::stopListingUrl (this=this@entry=0x7f6cfa9a2560 <_ZZN12_GLOBAL__N_121Q_QGS_kDirListerCache13innerFunctionEvE6holder.lto_priv.0>, lister=<optimized out>, lister@entry=0x562c303c3d80, _u=..., silent=silent@entry=true) at /usr/src/debug/kio/kio-5.106.0/src/core/kcoredirlister.cpp:412
#23 0x00007f6cfa90fc40 in KCoreDirListerCache::stop (this=this@entry=0x7f6cfa9a2560 <_ZZN12_GLOBAL__N_121Q_QGS_kDirListerCache13innerFunctionEvE6holder.lto_priv.0>, lister=0x562c303c3d80, silent=silent@entry=true) at /usr/src/debug/kio/kio-5.106.0/src/core/kcoredirlister.cpp:383
#24 0x00007f6cfa911c0f in KCoreDirListerCache::listDir (this=0x7f6cfa9a2560 <_ZZN12_GLOBAL__N_121Q_QGS_kDirListerCache13innerFunctionEvE6holder.lto_priv.0>, lister=<optimized out>, dirUrl=..., _keep=false, _reload=true) at /usr/src/debug/kio/kio-5.106.0/src/core/kcoredirlister.cpp:116
#25 0x00007f6cfae365ad in KFileItemModel::refreshDirectory (this=0x562c303b57c0, url=...) at /usr/src/debug/dolphin/dolphin-23.04.1/src/kitemviews/kfileitemmodel.cpp:128
#26 0x0000562c2db8b9f7 in FoldersPanel::loadTree (this=this@entry=0x562c2fec8290, url=..., navigationBehaviour=navigationBehaviour@entry=FoldersPanel::StayWhereYouAre) at /usr/src/debug/dolphin/dolphin-23.04.1/src/panels/folders/folderspanel.cpp:340
#27 0x0000562c2db8bbd3 in FoldersPanel::urlChanged (this=0x562c2fec8290) at /usr/src/debug/dolphin/dolphin-23.04.1/src/panels/folders/folderspanel.cpp:109
#28 0x0000562c2db89a37 in Panel::setUrl (this=0x562c2fec8290, url=...) at /usr/src/debug/dolphin/dolphin-23.04.1/src/panels/panel.cpp:54
#29 0x00007f6cf8cbeb41 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#30 doActivate<false> (sender=0x562c2f99d7b0, signal_index=11, argv=0x7ffe21993c40) at kernel/qobject.cpp:3923
#31 0x0000562c2db63edf in DolphinMainWindow::urlChanged (_t1=..., this=0x562c2f99d7b0) at /usr/src/debug/dolphin/build/src/dolphinstatic_autogen/EWIEGA46WW/moc_dolphinmainwindow.cpp:715
#32 DolphinMainWindow::activeViewChanged (this=0x562c2f99d7b0, viewContainer=0x562c30939a90) at /usr/src/debug/dolphin/dolphin-23.04.1/src/dolphinmainwindow.cpp:1485
#33 0x00007f6cf8cbeb41 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#34 doActivate<false> (sender=0x562c2febf890, signal_index=11, argv=0x7ffe21993d80) at kernel/qobject.cpp:3923
#35 0x0000562c2dbc01e4 in DolphinTabWidget::activeViewChanged (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/dolphin/build/src/dolphinstatic_autogen/EWIEGA46WW/moc_dolphintabwidget.cpp:299
#36 0x00007f6cf8cbeb41 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#37 doActivate<false> (sender=0x562c2ffd3a50, signal_index=7, argv=0x7ffe21993eb0) at kernel/qobject.cpp:3923
#38 0x0000562c2db7e5ae in DolphinTabPage::activeViewChanged (_t1=<optimized out>, this=0x562c2ffd3a50) at /usr/src/debug/dolphin/build/src/dolphinstatic_autogen/EWIEGA46WW/moc_dolphintabpage.cpp:191
#39 DolphinTabPage::slotViewActivated (this=0x562c2ffd3a50) at /usr/src/debug/dolphin/dolphin-23.04.1/src/dolphintabpage.cpp:424
#40 0x00007f6cf8cbeb41 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#41 doActivate<false> (sender=0x562c30742120, signal_index=7, argv=0x7ffe21993f90) at kernel/qobject.cpp:3923
#42 0x00007f6cfae9ad0b in DolphinView::setActive (active=<optimized out>, this=0x562c30742120) at /usr/src/debug/dolphin/dolphin-23.04.1/src/views/dolphinview.cpp:270
#43 DolphinView::setActive (this=0x562c30742120, active=<optimized out>) at /usr/src/debug/dolphin/dolphin-23.04.1/src/views/dolphinview.cpp:258
#44 0x00007f6cfae9aff0 in DolphinView::eventFilter (this=0x562c30742120, watched=0x562c30cf1720, event=0x7ffe21994160) at /usr/src/debug/dolphin/dolphin-23.04.1/src/views/dolphinview.cpp:948
#45 0x00007f6cf8c8dc92 in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x562c30cf1720, event=event@entry=0x7ffe21994160) at kernel/qcoreapplication.cpp:1190
#46 0x00007f6cf9978b4c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x562c30cf1720, e=0x7ffe21994160) at kernel/qapplication.cpp:3634
#47 0x00007f6cf8c8e028 in QCoreApplication::notifyInternal2 (receiver=0x562c30cf1720, event=0x7ffe21994160) at kernel/qcoreapplication.cpp:1064
#48 0x00007f6cf8c8e093 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#49 0x00007f6cf9974bec in QApplicationPrivate::setFocusWidget (reason=<optimized out>, focus=<optimized out>) at kernel/qapplication.cpp:1726
#50 QApplicationPrivate::setFocusWidget (focus=0x562c30cf1720, reason=<optimized out>) at kernel/qapplication.cpp:1680
#51 0x00007f6cf99a97f7 in QWidget::setFocus (reason=Qt::MouseFocusReason, this=0x562c30d0d7d0) at kernel/qwidget.cpp:6349
#52 QWidget::setFocus (this=0x562c30d0d7d0, reason=Qt::MouseFocusReason) at kernel/qwidget.cpp:6296
#53 0x00007f6cf9978efb in QApplicationPrivate::giveFocusAccordingToFocusPolicy (widget=widget@entry=0x562c30d0d7d0, event=event@entry=0x7ffe21994670, localPos=...) at kernel/qapplication.cpp:4103
#54 0x00007f6cf997f016 in QApplication::notify (this=0x7ffe21994ea0, receiver=<optimized out>, e=0x7ffe21994670) at kernel/qapplication.cpp:3047
#55 0x00007f6cf8c8e028 in QCoreApplication::notifyInternal2 (receiver=0x562c30d0d7d0, event=0x7ffe21994670) at kernel/qcoreapplication.cpp:1064
#56 0x00007f6cf8c8e0b3 in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#57 0x00007f6cf997c377 in QApplicationPrivate::sendMouseEvent (receiver=0x562c30d0d7d0, event=0x7ffe21994670, alienWidget=<optimized out>, nativeWidget=0x562c2f99d7b0, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2622
#58 0x00007f6cf99cd4f3 in QWidgetWindow::handleMouseEvent (this=this@entry=0x562c300128d0, event=event@entry=0x7ffe219949d0) at kernel/qwidgetwindow.cpp:684
#59 0x00007f6cf99cf31e in QWidgetWindow::event (this=0x562c300128d0, event=0x7ffe219949d0) at kernel/qwidgetwindow.cpp:300
#60 0x00007f6cf9978b5c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x562c300128d0, e=0x7ffe219949d0) at kernel/qapplication.cpp:3640
#61 0x00007f6cf8c8e028 in QCoreApplication::notifyInternal2 (receiver=0x562c300128d0, event=0x7ffe219949d0) at kernel/qcoreapplication.cpp:1064
#62 0x00007f6cf8c8e0b3 in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#63 0x00007f6cf914002c in QGuiApplicationPrivate::processMouseEvent (e=0x562c305055c0) at kernel/qguiapplication.cpp:2285
#64 0x00007f6cf91298c5 in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#65 0x00007f6cf2d2e8c0 in xcbSourceDispatch (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#66 0x00007f6cf6d0f53b in g_main_dispatch (context=0x7f6cec000ee0) at ../glib/glib/gmain.c:3460
#67 g_main_context_dispatch (context=0x7f6cec000ee0) at ../glib/glib/gmain.c:4200
#68 0x00007f6cf6d6c219 in g_main_context_iterate.constprop.0 (context=0x7f6cec000ee0, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#69 0x00007f6cf6d0e1a2 in g_main_context_iteration (context=0x7f6cec000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#70 0x00007f6cf8cd8d3c in QEventDispatcherGlib::processEvents (this=0x562c2f91ac60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#71 0x00007f6cf8c8668c in QEventLoop::exec (this=0x7ffe21994d70, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#72 0x00007f6cf8c912f9 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#73 0x00007f6cf913b052 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#74 0x00007f6cf9976f2a in QApplication::exec () at kernel/qapplication.cpp:2832
#75 0x0000562c2db5eda8 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin/dolphin-23.04.1/src/main.cpp:249
[Inferior 1 (process 61305) detached]

Reported using DrKonqi
Comment 1 yurapostates 2023-05-18 09:19:46 UTC
Did some more testing, turns out I can't reproduce it every time. But it tends to happen in that tons of files situation, while playing around with tabs, while Syncthing tries to sync the files to the other device.
Comment 2 Nicolas Fella 2023-09-09 21:18:24 UTC

*** This bug has been marked as a duplicate of bug 459967 ***