Bug 445332 - Crashes when trying to eject media that is occupied.
Summary: Crashes when trying to eject media that is occupied.
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.08.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-11 13:13 UTC by Mika Norén
Modified: 2023-09-20 19:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
pop up message (14.10 KB, image/png)
2023-09-20 19:32 UTC, Gabriel Barrantes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mika Norén 2021-11-11 13:13:49 UTC
SUMMARY
Dolphin crashes and closes when trying to eject media such as CD's DVD's and other ejectable media that is occupied elsewhere. i.e. when the media is being used in another application, or just happen to be the current working directory in a terminal.

STEPS TO REPRODUCE
1. Open dolphin and use the left panel in dolphin to access (mount) some removable media such as a CD ROM.
2. Open a terminal and cd to the directory where the media is mounted. Then cd into any of the subfolder on the media. Let it sit there.
3. Back in dolphin, right-click the media in question in the left panel, and then choose "Eject".

OBSERVED RESULT
Dolphin crashes and quits.


EXPECTED RESULT
Expected dolphin to show some form of message that the media is currently occupied by some other process and cannot be ejected.

SOFTWARE/OS VERSIONS
Distribution: Arch Linux
Linux kernel version: 5.14.15-zen1-1-zen, Plasma 
KDE Plasma Version:  5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
When the removable media isn't occupied elsewhere, the eject works as intended. It is only when another process keeps the media occupied in some way the crash happens.
Comment 1 Gabriel Barrantes 2023-09-20 19:32:40 UTC
Created attachment 161757 [details]
pop up message

Seems fixed in 22.12.3, trying to reproduce it I got the a pop-up indicating that files were being used in "bash" and dolphin didn't crash.