| Summary: | [Wayland] Scrolling in 'Processes' page is choppy/slow for ~30 seconds | ||
|---|---|---|---|
| Product: | [Applications] plasma-systemmonitor | Reporter: | Patrick Silva <bugseforuns> |
| Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ahiemstra, kde, nate, plasma-bugs-null, xnagytibor |
| Priority: | NOR | ||
| Version First Reported In: | 5.25.90 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-systemmonitor/commit/df0645f0b0bc003ea230347eaea5173a928ad580 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Patrick Silva
2022-05-24 10:54:08 UTC
Hmm, cannot reproduce. I can reproduce this on Neon. Hotspot says the lag comes from KIconEngine, KIconLoader and KIconTheme. So I'd guess the lag comes from loading the process icons. strace says to load a single icon System Monitor searches through a thousand(!) possible icon paths. For every single icon. No wonder why it's so slow.
It also doesn't strip the parameters from the executable line when it construct the possible icon paths. For example when loading icons for vscode it ends up searching for nonsense paths like this.
access("/usr/share/icons/hicolor/48x48/actions/code --type=zygote -.svgz", F_OK) = -1 ENOENT (No such file or directory)
Indeed we just use what is displayed in the column https://invent.kde.org/plasma/plasma-systemmonitor/-/blob/master/src/faces/processtable/contents/ui/ProcessTableView.qml#L163 Can that make that a bit smarter Git commit df0645f0b0bc003ea230347eaea5173a928ad580 by David Redondo. Committed on 19/01/2023 at 08:27. Pushed by davidre into branch 'master'. Process table: Always use binary name for icon lookup Some processes have all the arguments included in the name, split on space to only use the binary. Also lowercase for good measure as most icons tend to be only lower case. M +1 -1 src/faces/processtable/contents/ui/ProcessTableView.qml https://invent.kde.org/plasma/plasma-systemmonitor/commit/df0645f0b0bc003ea230347eaea5173a928ad580 |