Bug 457212

Summary: Compressing large files one after the other results in the second zip not being created
Product: [Applications] ark Reporter: Richard M <tygalive>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: REPORTED ---    
Severity: normal CC: aacid, rthomsen6
Priority: NOR    
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Richard M 2022-07-27 17:35:43 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

This is not an easy one to reproduce, but the steps are fairly simple. I wanted to upload a single zip file but the generated zip file was over the allowed maximum upload size, so I divided the files into two folders so I could zip separately and this is where the issue came out. You have to have an ongoing zip operation to reproduce this...

STEPS TO REPRODUCE
1. In Dolphin right-click a folder with a lot of files, anything that will take time to zip
2. Click compress to zip
3. Whilst still zipping, right click and compress to zip a different folder which also takes time to zip

OBSERVED RESULT
Both zip processes will run but only the first zip file is created. The second zip process might leave a half-compressed file giving the impression it is still ongoing when in fact it has been canceled.

EXPECTED RESULT
Generation of two complete zip files instead of one

SOFTWARE/OS VERSIONS
██████████████████  ████████   richard@richard-dell 
██████████████████  ████████   -------------------- 
██████████████████  ████████   OS: Manjaro Linux x86_64 
██████████████████  ████████   Host: Latitude E5570 
████████            ████████   Kernel: 5.15.55-1-MANJARO 
████████  ████████  ████████   Uptime: 1 day, 3 hours, 38 mins 
████████  ████████  ████████   Packages: 1449 (pacman), 7 (snap) 
████████  ████████  ████████   Shell: zsh 5.9 
████████  ████████  ████████   Resolution: 1920x1080, 1920x1080 
████████  ████████  ████████   DE: Plasma 5.24.6 
████████  ████████  ████████   WM: KWin 
████████  ████████  ████████   WM Theme: plastik 
████████  ████████  ████████   Theme: Garnet Header [Plasma], Breeze [GTK2/3] 
████████  ████████  ████████   Icons: Everforest-Dark [Plasma], Everforest-Dark [GTK2/3] 
                               Terminal: konsole 
                               CPU: Intel i7-6820HQ (8) @ 3.600GHz 
                               GPU: Intel HD Graphics 530 
                               GPU: AMD ATI Radeon HD 8670A/8670M/8750M / R7 M370 
                               Memory: 12433MiB / 15765MiB 
ADDITIONAL INFORMATION
Not sure if this is a dolphin issue or ark, but since it occurs mid compression with ark, thought i would report here

Dolphin Version 22.04.3
Comment 1 Richard M 2022-08-05 10:45:30 UTC
Reproduction steps

1. Have two folders with a lot of small files (npm modules would be ideal MUI) 100MB+ to allow starting the second task whilst the first is running
2. Compress the smaller folder first (at least one that will complete earlier between the two)
3. Compress the other folder
4. When the first one completes, it will dismiss the longer-running task