Bug 450243 - Cache causes glitches in the battery plasmoid
Summary: Cache causes glitches in the battery plasmoid
Status: CONFIRMED
Alias: None
Product: frameworks-plasma
Classification: Unclassified
Component: libplasma (show other bugs)
Version: 5.90.0
Platform: Neon Packages Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-14 18:18 UTC by Riccardo Robecchi
Modified: 2022-02-14 21:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of the issue (47.05 KB, image/png)
2022-02-14 18:18 UTC, Riccardo Robecchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Robecchi 2022-02-14 18:18:21 UTC
Created attachment 146725 [details]
Screenshot of the issue

SUMMARY
The battery plasmoid shows a large grey rectangle in its header, whichever theme is used. Removing the cache with "rm -r ~/.cache/*plasma*" fixes the issue (the leading * is necessary, otherwise the bug is still there), so this appears to be an issue with caching.

STEPS TO REPRODUCE
1. Click on the battery plasmoid

OBSERVED RESULT
There is a large grey rectangle.

EXPECTED RESULT
There is no large grey rectangle.

SOFTWARE/OS VERSIONS
Linux: KDE neon
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-02-14 18:20:41 UTC
This appears to be a corner case where the files didn't change on disk (which cas fixed in Bug 445516), but metrics are inherited from another theme incorrectly. We may want to invalidate the entire cache every time the Plasma theme is changed as well.