Bug 437004

Summary: Slow task list update upon desktop switch
Product: [Plasma] plasmashell Reporter: Eugene Shalygin <eugene.shalygin+bugzilla.kde>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: normal CC: kde.podagric, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eugene Shalygin 2021-05-13 00:07:11 UTC
The longer the session is ran, the slower the tasks applet becomes updating itself after desktop switch. The update time grows with the number of open apps too. After a day or so, it takes ~3 seconds for it to update after switching to a desktop with 6 top windows. Restarting plasmashell does not help. Log off/log in makes switching quick again.


STEPS TO REPRODUCE
1. Work for 20 or more hours in a Plasma session.
2. Enable option to show tasks only from the current desktop.
3. Open > 5 apps on the same desktop.
4. Switch to another desktop.
5. Switch back to the previous desktop.

OBSERVED RESULT
The task applet does not update for a few seconds.

EXPECTED RESULT
The applet updates immediately.


Operating System: Gentoo
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.2-gentoo (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 31.3 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 1 Podagric 2021-06-14 18:50:00 UTC
Already fixed in plasma 5.22
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/479