Bug 331729

Summary: kio_archive process does not terminate immediately after stopping browsing a zip file
Product: [Frameworks and Libraries] kio-extras Reporter: Diego <diego.ml>
Component: ArchiveAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: elvis.angelaccio, mail
Priority: NOR    
Version First Reported In: 18.04.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Diego 2014-03-04 11:34:00 UTC
kio_archive still runs after browsing an archive, for example in Dolphin.

Reproducible: Always

Steps to Reproduce:
1. Open Dolphin
2. In "Settings", "Configure Dolphin" go to "Navigation" and select "Open archives as folder"
3. Copy a ".zip" file on a USB memory, or some removable media
4. Click on the zip file in the media, so that it gets opened as a folder
5. Navigate up or back, outside of the archive
6. Try to unmount the media
Actual Results:  
After the above steps you'll get the error in Dolphin:
The device is currently busy: Error unmounting /dev/sde4: Command-line `umount  "/run/media/diego/DATA"' exited with non-zero exit status 32: umount: /run/media/diego/DATA: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

and infact lsof reports:
$ lsof /dev/sde4
COMMAND    PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
kio_archi 6716 diego    4r   REG   8,68 26598838   14 /run/media/diego/DATA/filename

After a while (one or two minutes) the process actually closes by itself, but it take too much time.

Expected Results:  
As soon as a "archive folder" is exited, the kio process is terminated.
Comment 1 Julian Steinmann 2018-07-21 14:12:14 UTC
I can reproduce this bug with KDE Frameworks 5.48, reassigning to kio-extras.