Bug 478126 - kstatsviewer and systemmonitor write incorrect data
Summary: kstatsviewer and systemmonitor write incorrect data
Status: RESOLVED FIXED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-05 21:26 UTC by qweriop.trash
Modified: 2023-12-29 13:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Video of systemmonitor displaying messed up numbers (195.08 KB, video/webm)
2023-12-05 21:26 UTC, qweriop.trash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qweriop.trash 2023-12-05 21:26:51 UTC
Created attachment 163925 [details]
Video of systemmonitor displaying messed up numbers

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. I've not managed to reproduce it


OBSERVED RESULT
The read and write of disk/all are completely incorrect. It responds with some ridiculous number.
For example: 36967422989722450000
This number slightly changes as it should.

EXPECTED RESULT
Not a number that's that big.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Kernel Version: 6.6.3-zen1-1-zen

ADDITIONAL INFORMATION
Both the system monitor program as well as the kstatsviewer cli returns the ridiculous number.
I have 2 storage devices connected: nvme0n1 and sda.
When running kstatsviewer disk/nvme0n1/(write or read) or disk/sda/(write or read) the response is as expected. Only disk/all is affected. The same is seen in the system monitor, only when using total read or write the issue occurs.
nvme0n1 is my M.2 ssd.
sda is a usb drive.
Detaching sda didn't solve the issue.
Comment 1 qweriop.trash 2023-12-05 22:01:02 UTC
After rebooting the issue disappeared, but after a while it started again, but now only the Write speed is affected and instead of 36967422989722450000 something, it's around 270 MiB/s.
I've tried multiple times but I cannot consistently replicate the issue.
Comment 2 Arjen Hiemstra 2023-12-21 11:48:13 UTC
There was an issue where it would be possible for Plasma 6 System Monitor to use the Plasma 5 KSystemStats, leading to issues like incorrect units. This has now been fixed, can you still reproduce this with Beta 2?
Comment 3 qweriop.trash 2023-12-29 13:42:55 UTC
(In reply to Arjen Hiemstra from comment #2)
> There was an issue where it would be possible for Plasma 6 System Monitor to
> use the Plasma 5 KSystemStats, leading to issues like incorrect units. This
> has now been fixed, can you still reproduce this with Beta 2?

No I cannot. I've not had the issue with Beta 2. I believe it's fixed.