Bug 454577

Summary: Dolphin gets stuck in the memory and causes high cpu usage when closed immediately after undoing mass renaming
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2022-05-29 14:38:27 UTC
SUMMARY
I can't reproduce this bug consistently, but it occurs often after the steps below.

STEPS TO REPRODUCE
1. have a folder containing many files - I can reproduce with a folder containing 2036 jpg files
2. select all files in your folder, right-click on any selected file, choose 'Rename...'
3. type a new name and press enter
4. when mass renaming is completed, undo it by pressing ctrl+z
5. when mass renaming is undone, Plasma shows a notification saying 'Moving (Finished)'.
Close Dolphin while this notification is visible.

OBSERVED RESULT
Dolphin gets stuck in the memory for several minutes - from 3 up to 8 minutes in my tests - and causes high cpu usage - ~25% on my system - until it finally exits.

EXPECTED RESULT
Dolphin process should exit immediately when Dolphin is closed

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Graphics Platform: Wayland
Comment 1 Patrick Silva 2023-05-10 18:31:18 UTC
Cannot reproduce with Dolphin 23.04.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics Platform: Wayland