Bug 364503 - plasmashell freezes if system is I/O bound
Summary: plasmashell freezes if system is I/O bound
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.6.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-19 13:28 UTC by Nicolas F.
Modified: 2021-04-09 04:33 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas F. 2016-06-19 13:28:24 UTC
If the system is I/O bound, such as when removing a lot of files, or if there is a hung SSH process of a remotely mounted sshfs, plasmashell will hang. In the ksysguard process list, it shows up as being in "disk sleep". As soon as the heavy I/O operation finishes (or the hung ssh process is terminated), plasmashell becomes responsive again.

Reproducible: Always

Steps to Reproduce:
1. Remotely mount something through sshfs
2. Put your system to sleep for a few minutes
3. Wake the system, the ssh process should now be hanging. Shortly afterwards, plasmashell should enter disk sleep.

Alternatively,
1. Grab the GCC source through SVN
2. Build GCC
3. Run a recursive rm operation on the folder, and attempt to interact with plasmashell

Actual Results:  
plasmashell hangs until the I/O issue is resolved. For a stuck SSHFS mount, this usually means that the associated SSH task needs to be killed. plasmashell will not react to SIGKILL while it's in disk sleep mode.

Expected Results:  
plasmashell should have a timeout on non-essential I/O operations, or perform blocking I/O in a separate thread, as to ensure that user interactivity is not lost.

While this happened, a Dolphin window into the SSHFS mounted folder was opened. This might be related, so I'll add it here.

The system uses a Kingston SSD connected through mSATA, and uses ext4 as both the root and the /home file system.

While plasmashell is frozen, Ctrl+Escape for opening the system activity window still works, however, Alt+F2 to bring up KRunner doesn't. The volume keys also no longer work, which is a bit awkward when I click on a video and then notice that plasmashell is frozen.
Comment 1 David Edmundson 2021-03-10 00:12:02 UTC
>plasmashell should have a timeout on non-essential I/O operations, or perform blocking I/O in a separate thread, as to ensure that user interactivity is not lost.

Please include a gdb trace of plasmashell when it is frozen.
Comment 2 Bug Janitor Service 2021-03-25 04:33:38 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2021-04-09 04:33:29 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!