Bug 450243

Summary: SVG Cache causes visual glitches when switching from a theme with different metrics
Product: [Frameworks and Libraries] libplasma Reporter: Riccardo Robecchi <sephiroth_pk>
Component: libplasmaAssignee: Marco Martin <notmart>
Status: RESOLVED DUPLICATE    
Severity: normal CC: demetrykravchenko, f.alexander.wilms, kdebug3rep0rt.lwyfo, kdebugs, me, nate, plasma-bugs, sthenujan2002, teles.ltds
Priority: HI    
Version: 5.90.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=445516
https://bugs.kde.org/show_bug.cgi?id=448750
https://bugs.kde.org/show_bug.cgi?id=433122
Latest Commit: Version Fixed In:
Attachments: Screenshot of the issue
Plama SVG cache, maybe will help reproduce the issue
giant SVGs

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.
Comment 2 Nate Graham 2022-08-31 13:05:27 UTC
*** Bug 458505 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2022-09-20 19:41:49 UTC
*** Bug 459002 has been marked as a duplicate of this bug. ***
Comment 4 ratijas 2022-11-11 19:23:31 UTC
Created attachment 153680 [details]
Plama SVG cache, maybe will help reproduce the issue

I'm getting giant slider knobs, giant radio buttons and slightly think separator lines.
Comment 5 ratijas 2022-11-11 19:27:17 UTC
Created attachment 153681 [details]
giant SVGs

oh, and also giant (+) badge on stacked apps in task manager.

slider knob (handle) is exactly 40x40 px.
Comment 6 Nate Graham 2023-02-12 16:44:27 UTC
*** Bug 465455 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2023-02-21 20:21:13 UTC
*** Bug 465161 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2023-09-11 16:53:04 UTC
*** Bug 473893 has been marked as a duplicate of this bug. ***
Comment 9 Marco Martin 2023-12-13 10:07:51 UTC

*** This bug has been marked as a duplicate of bug 448750 ***