Bug 425074

Summary: Dolphin crashes while removing several folders with 2500 files each one
Product: [Applications] dolphin Reporter: Rafael Linux User <rafael.linux.user>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: kfm-devel, rafael.linux.user
Priority: NOR Keywords: drkonqi
Version: 20.07.80   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Rafael Linux User 2020-08-06 12:08:35 UTC
Application: dolphin (20.07.80)

Qt Version: 5.15.0
Frameworks Version: 5.72.0
Operating System: Linux 5.3.18-lp152.33-default x86_64
Windowing system: X11
Distribution: openSUSE Leap 15.2

-- Information about the crash:
- What I was doing when the application crashed:
Using Dolphin to delete (not to trash folder, just removing completely with Shift+Supr)

The crash can be reproduced every time.

-- Backtrace:
Application: Dolphin (dolphin), signal: Aborted

[KCrash Handler]
#4  0x00007f9348c26520 in raise () from /lib64/libc.so.6
#5  0x00007f9348c27b01 in abort () from /lib64/libc.so.6
#6  0x00007f9348c69957 in __libc_message () from /lib64/libc.so.6
#7  0x00007f9348c70173 in malloc_printerr () from /lib64/libc.so.6
#8  0x00007f9348c71a79 in _int_free () from /lib64/libc.so.6
#9  0x00007f934892a1a0 in KFileItemModel::removeItems(KItemRangeList const&, KFileItemModel::RemoveItemsBehavior) () from /usr/lib64/libdolphinprivate.so.5
#10 0x00007f93489374ea in KFileItemModel::slotItemsDeleted(KFileItemList const&) () from /usr/lib64/libdolphinprivate.so.5
#11 0x00007f93425b2527 in QtPrivate::QSlotObjectBase::call (a=0x7ffe763e5e50, r=0x5607257af2d0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#12 doActivate<false> (sender=0x560725d0b160, signal_index=15, argv=0x7ffe763e5e50) at kernel/qobject.cpp:3886
#13 0x00007f93425ab9e2 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f934727cfe0 <KCoreDirLister::staticMetaObject>, local_signal_index=local_signal_index@entry=12, argv=argv@entry=0x7ffe763e5e50) at kernel/qobject.cpp:3946
#14 0x00007f93470055a5 in KCoreDirLister::itemsDeleted (this=<optimized out>, _t1=...) at /usr/src/debug/kio-5.72.0-lp152.298.1.x86_64/build/src/core/KF5KIOCore_autogen/include/moc_kcoredirlister.cpp:495
#15 0x00007f9347007ca0 in KCoreDirLister::Private::emitItemsDeleted (this=0x560725d8bcc0, _items=...) at /usr/src/debug/kio-5.72.0-lp152.298.1.x86_64/src/core/kcoredirlister.cpp:2570
#16 0x00007f934700d563 in KCoreDirListerCache::itemsDeleted (this=this@entry=0x7f93472803c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, listers=..., deletedItems=...) at /usr/src/debug/kio-5.72.0-lp152.298.1.x86_64/src/core/kcoredirlister.cpp:1927
#17 0x00007f934700dc28 in KCoreDirListerCache::slotFilesRemoved (this=this@entry=0x7f93472803c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, fileList=...) at /usr/src/debug/kio-5.72.0-lp152.298.1.x86_64/src/core/kcoredirlister.cpp:880
#18 0x00007f934700e091 in KCoreDirListerCache::slotFilesRemoved (this=this@entry=0x7f93472803c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, fileList=...) at /usr/src/debug/kio-5.72.0-lp152.298.1.x86_64/src/core/kcoredirlister.cpp:837
#19 0x00007f9347013d2c in KCoreDirListerCache::slotFileDeleted (this=0x7f93472803c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, path=...) at /usr/src/debug/kio-5.72.0-lp152.298.1.x86_64/src/core/kcoredirlister.cpp:1164
#20 0x00007f93425b2527 in QtPrivate::QSlotObjectBase::call (a=0x7ffe763e61b0, r=0x7f93472803c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#21 doActivate<false> (sender=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, signal_index=5, argv=0x7ffe763e61b0) at kernel/qobject.cpp:3886
#22 0x00007f93425ab9e2 in QMetaObject::activate (sender=sender@entry=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, m=m@entry=0x7f93445c21e0 <KDirWatch::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffe763e61b0) at kernel/qobject.cpp:3946
#23 0x00007f9344350485 in KDirWatch::deleted (this=this@entry=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, _t1=...) at /usr/src/debug/kcoreaddons-5.72.0-lp152.230.1.x86_64/build/src/lib/KF5CoreAddons_autogen/include/moc_kdirwatch.cpp:185
#24 0x00007f9344351e36 in KDirWatch::setDeleted (this=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, _file=...) at /usr/src/debug/kcoreaddons-5.72.0-lp152.230.1.x86_64/src/lib/io/kdirwatch.cpp:2012
#25 0x00007f93425a900b in QObject::event (this=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, e=0x56072bebba90) at kernel/qobject.cpp:1314
#26 0x00007f93439912fc in QApplicationPrivate::notify_helper (this=this@entry=0x5607256184e0, receiver=receiver@entry=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, e=e@entry=0x56072bebba90) at kernel/qapplication.cpp:3671
#27 0x00007f9343998210 in QApplication::notify (this=0x7ffe763e68f0, receiver=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, e=0x56072bebba90) at kernel/qapplication.cpp:3417
#28 0x00007f9342574f43 in QCoreApplication::notifyInternal2 (receiver=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, event=0x56072bebba90) at kernel/qcoreapplication.cpp:1061
#29 0x00007f934257511e in QCoreApplication::sendEvent (receiver=receiver@entry=0x7f93445c4280 <(anonymous namespace)::Q_QGS_s_pKDirWatchSelf::innerFunction()::holder>, event=event@entry=0x56072bebba90) at kernel/qcoreapplication.cpp:1456
#30 0x00007f9342577961 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x5607255e9cf0) at kernel/qcoreapplication.cpp:1815
#31 0x00007f9342577ee8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1674
#32 0x00007f93425d7ef3 in postEventSourceDispatch (s=0x5607256e3c90) at kernel/qeventdispatcher_glib.cpp:277
#33 0x00007f933a20d464 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#34 0x00007f933a20d800 in ?? () from /usr/lib64/libglib-2.0.so.0
#35 0x00007f933a20d88c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#36 0x00007f93425d759c in QEventDispatcherGlib::processEvents (this=0x5607256df330, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#37 0x00007f93425737ca in QEventLoop::exec (this=this@entry=0x7ffe763e67e0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:232
#38 0x00007f934257cfc7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1369
#39 0x00007f9348ff384b in kdemain () from /usr/lib64/libkdeinit5_dolphin.so
#40 0x00007f9348c1134a in __libc_start_main () from /lib64/libc.so.6
#41 0x000056072504080a in _start ()
[Inferior 1 (process 9126) detached]

Possible duplicates by query: bug 424909, bug 424767, bug 424760, bug 424295, bug 424232.

Reported using DrKonqi
Comment 1 Rafael Linux User 2020-08-06 12:14:54 UTC
I was trying to erase with Shift+Supr the root folder created by this own script:

#!/bin/bash
# This script will create 4 folders with 10000 DISTINCT  empty files each one

ImagesRootFolder='Fractal_images_folder'
mkdir $ImagesRootFolder
echo "Creating '$ImagesRootFolder' folder"
for Level_1 in {A..D}
do
    Folder_Level_1="$ImagesRootFolder/Folder_10k_images_$Level_1"
    echo "Creating '$Folder_Level_1' subfolder "
    mkdir $Folder_Level_1
    for Level_2 in {1..4}
    do
        Folder_Level_2="$Folder_Level_1/$Level_2"
        echo -n "Creating '$Folder_Level_2' subfolder and generating 25000 images ...  "
        mkdir $Folder_Level_2
        i=1
        sp="/-\|"
        for value in {1..2500} 
        do 
            printf "\b${sp:i++%${#sp}:1}"
            Image_filename=Image_$Level_1$Level_2_$(printf "%05d" $value)
             touch $Folder_Level_2/$Image_filename.jpg
            convert -size $(shuf -i 500-1024 -n 1)x$(shuf -i 500-1024 -n 1) plasma:fractal "$Folder_Level_2/$Image_filename.jpg"
        done
        echo " created"
    done
done
echo "Process finished"
Comment 2 Justin Zobel 2022-10-12 03:49:39 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-10-27 05:04:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!