Bug 416783 - Unmounting removable device fails if the progress bar reached 100% but the file transfer was not in fact completed
Summary: Unmounting removable device fails if the progress bar reached 100% but the fi...
Status: RESOLVED DUPLICATE of bug 281270
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices widget (other bugs)
Version First Reported In: 5.17.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-26 11:53 UTC by Patrick Silva
Modified: 2024-05-10 19:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screen recording (1.92 MB, video/webm)
2020-01-26 11:53 UTC, Patrick Silva
Details
device notifier showing an error message as expected (183.95 KB, image/png)
2020-01-26 11:54 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-01-26 11:53:21 UTC
Created attachment 125428 [details]
screen recording

SUMMARY
Not always this behavior occurs. Sometimes the device notifier shows an error message as we can see in the attached screenshot.
After I copy a big file to a removable device (pen drive), the progress bar of the file transfer gets stuck at 100% for a while depending on amount of data copied because ancient and extremely annoying bug 416248. 
When I try to unmount the removable device via device notifier while the progress bar is stuck at 100%, unmounting fails as expected but without any feedback.
Dolphin always shows an error message as expected. Watch the attached screen recording please.

STEPS TO REPRODUCE
1. copy a big file to a removable device
2. while the progress bar is stuck at 100%, try to unmount your removable device using the device notifier
3. 

EXPECTED RESULT
device notifier always shows an error message when unmounting fails

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0
Comment 1 Patrick Silva 2020-01-26 11:54:04 UTC
Created attachment 125429 [details]
device notifier showing an error message as expected
Comment 2 Nate Graham 2020-11-25 00:44:49 UTC
Yeah the root cause is the annoying Bug 281270.

Now it no longer fails silently, but it says something like "the device is in use by file.so". Which is technically true but maybe we can present this a bit better.
Comment 3 Nate Graham 2020-11-25 01:08:56 UTC
Looking into it, I don't think there's any local workaround we can add, since there's no way for the applet to distinguish between "in use by the file.so library due to in-progress transfers" and in use by the file.so library due to a transfer that has technically completed but the final contents are still being written to the disk"

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