Bug 477855 - Plasmashell consumes CPU time doing nothing until System Tray popup is opened once
Summary: Plasmashell consumes CPU time doing nothing until System Tray popup is opened...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (show other bugs)
Version: 5.27.9
Platform: Other Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-01 17:51 UTC by Stefan Brüns
Modified: 2023-12-23 15:40 UTC (History)
3 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 Stefan Brüns 2023-12-01 17:51:16 UTC
SUMMARY

After plasmashell has started, it is consuming CPU time doing apparently nothing.

According to strace, it is woken up due to a ~16ms ppoll timeout. This is likely some animation which has not been stopped correctly.

The polling stops as soon as the "Status and Notification" popup is opened the first time, afterwards the process is completely idle.

STEPS TO REPRODUCE
1. Start plasmashell (as part of the session, or with --restart, does not matter)
2. Attach strace to the main thread
3. Open the popup using the ^ up arrow

OBSERVED RESULT
Plasmashell consumes CPU time doing nothing, and behaves correctly after opening the popup once.

EXPECTED RESULT
Plasmashell becomes idle immediately after start, without user intervention.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-12-08 17:49:25 UTC
Are you able to reproduce this by simply restarting plasmashell? Or does it only happen when plasmashell stars following a login event?

Can you provide a screenshot of that your System Tray looks like so I can see what's in it?
Comment 2 Stefan Brüns 2023-12-08 18:00:27 UTC
I have seen this also after "plasmashell --replace", so probably unrelated to session start (though, there may be some timing related stuff which has an influence).

One influenced system was a fresh installation, i.e. very basic.
Comment 3 Bug Janitor Service 2023-12-23 03:46:25 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!