Bug 502488 - Disks and Devices widget gets stuck in BS "Removing..." or "Don't unplug yet..." state and stops responding for a long time when USB drive
Summary: Disks and Devices widget gets stuck in BS "Removing..." or "Don't unplug yet....
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices widget (show other bugs)
Version: 6.3.3
Platform: Manjaro Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-06 15:37 UTC by php4fan
Modified: 2025-04-08 18:31 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description php4fan 2025-04-06 15:37:16 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY


STEPS TO REPRODUCE
1. Plug a USB pendrive into a USB prot
2. Click on the SUB connector icon that appears in the Tray area (Disks and Devices)
3. Click "Mount and Open" next to the device name
4. Close the folder window/tab that opened in Dolphin
5. Go back to Disks and Devices and click "Safely remove"

EXPECTED RESULT
It shouldn't take long to safely remove the device in the first place (especially since I didn't do anything with it), but if it does for a legitimate reason, the UI should behave nicely

OBSERVED RESULT
The status text belos the device name now says "Removing..." and a spinning icon appears on the right.
Sometimes, the text then changes to "Don't unplug yet, files are still being transferred" or something like that (I'm quoting from memory, that's probably not the exact wording), then the spinning icon sometimes freezes. Sometimes this happens still at the "Removing..." stage
The icon of the "Disks and Devices" widget becomes a checkmark, which makes no sense whatsoever
The widget stops responding, it doesn't close when you click outside of it, when you explicitly click the "<-" arrow, nor when you click the down arrow at the bottom, and **SOMETIMES THE ENTIRE SYSTEM** stops responding for a while, which is why I'm marking this as "major".
I tried to take a screenshot with the keyboard shortcut for Spectacle once while this was happening; it did nothing and a minute later I got an error saying it failed to launch Spectacle - that's how unresponsive the system was.

After several seconds to one minute, the operation will complete and the system will begin responding normally again. Sometimes, a few of the keyboard or mouse actions that you attempted while the system was frozen will now have their delayed effects all at once, which is another reason for setting the severity to "major" and why you might consider changing it to "critical".

With a given pendrive of mine in particular (which happens to be a bootable Memtest86 iso image) this is now happening almost systematically to me (but not quite).

Note that whether or not there are actual legitimate reasons for the actual "safe removal" operation to take a longer than expected time (which I don't think is the case, but who knows, the usb memory stick itself might be faulty), the UI should at all time remain responsive and never, ever, under any circumstances, should the responsive of the entire system be affected.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.6.84-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i7-1255U
Memory: 15.3 GiB of RAM
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Vivobook_ASUSLaptop X1502ZA_F1502ZA
System Version: 1.0

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-04-07 05:06:10 UTC
The root cause is Bug 281270; the "don't unplug yet" text reflects the fact that the actual copy to the disk hasn't truly completed yet.

This is basically a kernel/distro config issue; you can see the details in that bug report.

*** This bug has been marked as a duplicate of bug 281270 ***
Comment 2 php4fan 2025-04-07 08:37:03 UTC
> reflects the fact that the actual copy to the disk hasn't truly completed yet.

Whay copy??? 

As I said, I did not transfer any files to the device.

Also, the UI stopping to respond and freezing the whole system isn't covered or apparently explained by issue 281270.

Even if the root cause of this was, in some way beyond my understanding, related to 281270, the UI freezing should be urgently fixed regardless of whether the information about the transfer is precise and reliable or not. This is not about "the information I'm seeing is not correct", this is about "the entire UI and sometimes the entire system freezes"
Comment 3 Nate Graham 2025-04-08 16:56:39 UTC
Right you are; I mis-triaged this in my haste.
Comment 4 Nate Graham 2025-04-08 18:31:07 UTC
I can't reproduce the issue as written. Does this happen for every disk you run through those steps with, or only that one?