Bug 481949 - System Monitor applet in panel breaks when trying to draw horizontal bars
Summary: System Monitor applet in panel breaks when trying to draw horizontal bars
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Monitor widgets (show other bugs)
Version: master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-28 18:08 UTC by Ridge
Modified: 2024-03-20 10:46 UTC (History)
3 users (show)

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


Attachments
Video of different erroneous behaviours with the System Monitor Sensor applet in a panel (1.77 MB, video/mp4)
2024-02-28 18:08 UTC, Ridge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ridge 2024-02-28 18:08:09 UTC
Created attachment 166168 [details]
Video of different erroneous behaviours with the System Monitor Sensor applet in a panel

SUMMARY
When the System Monitor Sensors applet is placed in a panel, it is completely unable to draw horizontal bars correctly. More than one bar disappears after briefly being displayed in a broken manner, a single bar is displayed but in all black.
I've attached a video that showcases the behaviour.


STEPS TO REPRODUCE
1. Add a System Monitor Sensor applet to a panel.
2. Configure it to show one or more horizontal bars.

OBSERVED RESULT
A single bar is nonfunctional, 2+ bars simply disappear.

EXPECTED RESULT
Horizontal bars representing the configured sensors with their chosen colours.

SOFTWARE/OS VERSIONS
Linux: 6.7.6
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
I would like to be more helpful, but my attempts at generating actually useful information for this bug with GDB have been unsuccessful. Assistance would be appreciated.
Comment 1 Ridge 2024-02-28 18:09:01 UTC
Note, I'm setting the version to master because it works fine in 5.93.0
Comment 2 Arjen Hiemstra 2024-03-04 09:55:01 UTC
Git commit db7173aee96a8a076e5933f4fe71a8feb77da258 by Arjen Hiemstra.
Committed on 04/03/2024 at 09:53.
Pushed by ahiemstra into branch 'master'.

faces/horizontalbars: Repair compact representation

It broke after refactoring Bar to use a proper control. This also cleans
up some spacing so we use consistent sizing of the bars.

M  +12   -1    faces/facepackages/horizontalbars/contents/ui/CompactRepresentation.qml

https://invent.kde.org/plasma/libksysguard/-/commit/db7173aee96a8a076e5933f4fe71a8feb77da258
Comment 3 Arjen Hiemstra 2024-03-20 10:46:43 UTC
Git commit 8069ebec90254ed72abfcd1306d1420283981695 by Arjen Hiemstra.
Committed on 20/03/2024 at 10:43.
Pushed by ahiemstra into branch 'Plasma/6.0'.

faces/horizontalbars: Repair compact representation

It broke after refactoring Bar to use a proper control. This also cleans
up some spacing so we use consistent sizing of the bars.
(cherry picked from commit db7173aee96a8a076e5933f4fe71a8feb77da258)

M  +12   -1    faces/facepackages/horizontalbars/contents/ui/CompactRepresentation.qml

https://invent.kde.org/plasma/libksysguard/-/commit/8069ebec90254ed72abfcd1306d1420283981695