Bug 386834 - Plasmashell 100% cpu always following filescan using application "SourceGuardian"
Summary: Plasmashell 100% cpu always following filescan using application "SourceGuard...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-performance (show other bugs)
Version: 5.8.6
Platform: Debian stable Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 392327 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-13 04:22 UTC by vark
Modified: 2023-10-08 03:46 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Sample strace of plasmashell (43.89 KB, text/plain)
2017-11-13 06:24 UTC, vark
Details
Detailed strace with timestamps (2.77 MB, application/gzip)
2017-11-13 10:43 UTC, vark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vark 2017-11-13 04:22:53 UTC
I am aware of multiple bugs showing 100% utilisation after various triggers, with various fixes (turning off animated icons etc). No luck following any current advice.

I can however trigger a long delay in Plasmashell reliably using the "SourceGuardian" application - whenever this starts a filescan of a project (on startup, or via a manual trigger) Plasmashell hits 100% utilisation and becomes unresponsive to any user input for several minutes. I can click to other applications that are already on screen, use them, and access the filesystem etc, but cannot open new applications from the taskbar (alt-F2 still responds and I can start a shell). After several minutes, it does then eventually respond and works normally until the next filescan.

Reported also to the SourceGuardian application vendor with no real success or interest in resolving however.

Happy to provide testing in order to help troubleshoot, as aware that a lot of the existing bugs raised for this do not have a reliable trigger method.

Reproduced on Debian Stretch (current as of this bug date) and Debian Testing as of this date.

STrace shows a large loop of checking what appears to be the application icon, other than that I'd need guidance to produce necessary debug output.
Comment 1 vark 2017-11-13 06:21:16 UTC
Details for the Testing release install (from kinfocenter):

KDE Plasma version: 5.8.6
KDE Frameworks version: 5.28.0
QT Version: 5.7.1
Kernel Version: 4.12.0-0.bpo.2-amd64
OS Type: 64 Bit
Comment 2 vark 2017-11-13 06:24:54 UTC
Created attachment 108829 [details]
Sample strace of plasmashell

STrace of SourceGuardian shows no activity (in a wait state), but this is what PlasmaShell is looping on continuously with 100% utilisation (small sample)
Comment 3 David Edmundson 2017-11-13 09:55:14 UTC
Does SourceGuardian have some sort of system tray icon? Or just the icon in the task manager?

What sort of time period is the strace log over. If it's 5 minutes, then it's not a huge number of lookups. If it's 2 seconds, then it is.

Please reset the status to unconfirmed when replying
Comment 4 vark 2017-11-13 10:42:34 UTC
Hi

No icon that I'm aware of (no animated icon in the taskbar, either visible or in the "hidden" area, and no option in SourceGuardian for any such icon or alert).

Attaching an strace with -tt, runs from 20:35:34.477 thru 20:35:56.05 - in that time it logged 418598 lines

strace -v -tt -o strace-sg-openproject.txt -p 30760
30760 is the PID for plasmashell

I've gzipped it due to uncompressed size being so large
Comment 5 vark 2017-11-13 10:43:39 UTC
Created attachment 108833 [details]
Detailed strace with timestamps

More detailed strace of issue occurring
Comment 6 vark 2017-11-13 10:51:43 UTC
Sorry - there is an icon showing in the taskbar for the App itself (to the left of the app text), but nothing animated or controlled/varied by the application that I can tell. I can see that icon file being referenced (I think) in the calls that are happening.

If I open bigger projects in SourceGuardian, it appears I get a longer delay. On my desktop machine (SSD+spinning rust) the delay is only a couple of minutes, but on the laptop (which is SSD only) I can get up to 8 minutes before I can get a response from the taskbar again (based on timing the delay today as a sample, opening a project for the first time after a reboot).
Comment 7 vark 2017-11-27 23:27:14 UTC
Update: Issue remains with current updates on both stable and testing environments.
Comment 8 David Edmundson 2021-03-11 15:19:10 UTC
*** Bug 392327 has been marked as a duplicate of this bug. ***
Comment 9 Noah Davis 2023-08-09 18:43:48 UTC
Is this still a problem with Plasma 5.27? I see another bug was marked as a duplicate of this, but it seems like there's no clear relation to this bug. I'd like to be able to test this bug with an open source app so I can really see what's going on in the code, but I'm not sure what the root problem is here.
Comment 10 Bug Janitor Service 2023-08-24 03:45:24 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 11 vark 2023-08-24 03:51:14 UTC
Hi - this was a long time ago, and I'd need to retest this with current SourceGuardian builds. I know it takes SG a long time to build the file list when it starts (a feature of them, I think, not plasmashell), and I don't recall in recent times it freezing the rest of the system. SourceGuardian is also not open source.

Please let me know if you want me to do updated testing.
Comment 12 Bug Janitor Service 2023-09-08 03:45:19 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 13 Nate Graham 2023-09-08 17:45:37 UTC
If you can, that would be ideal. Thanks a lot!
Comment 14 Bug Janitor Service 2023-09-23 03:46:08 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 15 Bug Janitor Service 2023-10-08 03:46:06 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!