Bug 527627 - Large "History to show" values in line charts render KDE unusable
Summary: Large "History to show" values in line charts render KDE unusable
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Monitor widgets (other bugs)
Version First Reported In: 6.7.5
Platform: Other Linux
: HI grave
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: efficiency-and-performance
Depends on:
Blocks:
 
Reported: 2026-10-22 19:45 UTC by jaba2137
Modified: 2026-10-23 16:55 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.2
Sentry Crash Report:


Attachments
This ZIP contains screenshots of the issue (3.27 MB, application/zip)
2026-10-22 19:45 UTC, jaba2137
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jaba2137 2026-10-22 19:45:45 UTC
Created attachment 197529 [details]
This ZIP contains screenshots of the issue

DESCRIPTION
The "History to show" setting, when set to a high enough value, causes a freeze. This persists after rebooting and renders the graphical UI completely unusable.

The issue can be resolved by editing ~/.config/plasma-org.kde.plasma.desktop-appletsrc manually from a virtual console. This, however, is inconvenient. I came across this bug when checking whether I could make the "Disk usage" widget show the last 7 days of history.

STEPS TO REPRODUCE
1. Add any "System monitor sensor" widget to your desktop
2. Set "Display style" to "Line chart"
2. Set "History to show" to a large value, such as 600,000 seconds
3. Apply

OBSERVED RESULT
The widget allows the user to enter large values, saves it to ~/.config/plasma-org.kde.plasma.desktop-appletsrc, and causes Wayland session freezes on every login.

EXPECTED RESULT
The widget handles large values appropriately by either enforcing a limit on what values the user can input, or actually displays history from the previous x seconds.

SOFTWARE/OS VERSIONS
Initially discovered on my host machine:
Operating System: Fedora Linux 44
KDE Plasma Version:  6.7.5
KDE Frameworks Version: 6.31.0
Qt Version: 6.11.2

Also occurs on a brand new Fedora KDE VM:
Operating System: Fedora Linux 44
KDE Plasma Version:  6.6.4
KDE Frameworks Version: 6.25.0
Qt Version: 6.10.2
Comment 1 Niccolò Venerandi 2026-10-22 21:26:01 UTC
Can reproduce!
Comment 2 Bug Janitor Service 2026-10-22 22:10:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/494
Comment 3 Niccolò Venerandi 2026-10-23 14:47:51 UTC
Git commit 778afd2f87d9a1eb87939761aedd450bee2d97b5 by Niccolò Venerandi.
Committed on 22/10/2026 at 22:08.
Pushed by niccolove into branch 'master'.

Only show 2000 data points in Line Chart applet

Previously, setting the maximum history to show at 600000s would try to
show more than 1M data points; we cap that at 2000, which is reasonably low.
Data points are evenly taken from the history.

M  +3    -1    faces/facepackages/linechart/contents/ui/LineChart.qml

https://invent.kde.org/plasma/libksysguard/-/commit/778afd2f87d9a1eb87939761aedd450bee2d97b5
Comment 4 Niccolò Venerandi 2026-10-23 14:48:06 UTC
Git commit 9bb3ac7fc71d133a339d34d821a843f380236df7 by Niccolò Venerandi.
Committed on 23/10/2026 at 14:48.
Pushed by niccolove into branch 'Plasma/6.8'.

Only show 2000 data points in Line Chart applet

Previously, setting the maximum history to show at 600000s would try to
show more than 1M data points; we cap that at 2000, which is reasonably low.
Data points are evenly taken from the history.


(cherry picked from commit 778afd2f87d9a1eb87939761aedd450bee2d97b5)

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +3    -1    faces/facepackages/linechart/contents/ui/LineChart.qml

https://invent.kde.org/plasma/libksysguard/-/commit/9bb3ac7fc71d133a339d34d821a843f380236df7