SUMMARY If you open ksysguard on wayland and enable the column "Total Memory" It seems to give you the path to some file or maybe dbus service rather than a number. STEPS TO REPRODUCE 1. Login to a plasma wayland session 2. Open ksysguard 3. Right click on any column, such as name, memory, cpu and, look for total memory. Click to show total memory. OBSERVED RESULT I get something that looks like a path or dbus call. EXPECTED RESULT Should return a number like it does on X11 SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
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