Summary: | On Wayland, Total Memory Column incorrectly shows CGroup instead | ||
---|---|---|---|
Product: | [Unmaintained] ksysguard | Reporter: | Dashon <dashonwwIII> |
Component: | libksysguard | Assignee: | fanzhuyifan |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dashonwwIII, fanzhuyifan, plasma-bugs-null |
Priority: | NOR | Keywords: | wayland-only |
Version First Reported In: | 5.27.8 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/libksysguard/-/commit/557c7a7e3506d7fa699eae038c0688d973014186 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
On wayland, ksysguard incorrectly displays cgroup in the total memory column.
On x11, total memory is correctly displayed |
Description
Dashon
2023-10-17 00:26:34 UTC
Created attachment 162365 [details]
On wayland, ksysguard incorrectly displays cgroup in the total memory column.
Created attachment 162366 [details]
On x11, total memory is correctly displayed
See attachments. On wayland, total Memory Column incorrectly shows CGroup instead. The behavior on X11 is correct. The code causing the bug is located at https://invent.kde.org/plasma/libksysguard/-/blob/23a1e84e9ea3de460c41e57ee072fd5459712b6e/processui/ProcessModel.cpp#L2360 ``` #if HAVE_X11 if (d->mIsX11) { headings << i18nc("process heading", "X11 Memory"); headings << i18nc("process heading", "Window Title"); } #endif ``` where the headings "must be in the same order that they are in the header file". When the program is launched under wayland, these two headings would be absent. Thus, the meaning of the headings and the text will be offset by two in the remaining headings, which makes the text "Total Memory" actually refer to the cgroup column. A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/301 Git commit 557c7a7e3506d7fa699eae038c0688d973014186 by Yifan Zhu. Committed on 31/10/2023 at 02:18. Pushed by ahiemstra into branch 'master'. Make headings correspond to their strings. Always insert all heading strings. Previously on wayland some heading strings are not inserted. This creates a discrepancy between heading strings and actual headings, leading to values being displayed under the wrong column names in systemmonitor. M +2 -6 processui/ProcessModel.cpp https://invent.kde.org/plasma/libksysguard/-/commit/557c7a7e3506d7fa699eae038c0688d973014186 |