Bug 404927 - FrameSvgItem corruption: Right end of progress bar in OSD volume indicator is sometimes rounded, sometimes flat, sometimes chopped-up
Summary: FrameSvgItem corruption: Right end of progress bar in OSD volume indicator is...
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (show other bugs)
Version: 5.70.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
: 424614 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-02-28 21:51 UTC by Alexey Boltenko
Modified: 2023-12-13 10:36 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The three possible states (26.80 KB, image/png)
2019-02-28 21:51 UTC, Alexey Boltenko
Details
A naughty hack that makes the bug go away (2.51 KB, text/x-qml)
2020-05-26 22:21 UTC, Filip Fila
Details
Bug-free 'bar_meter_horizontal' SVG (3.96 KB, image/svg+xml)
2020-05-26 22:40 UTC, Filip Fila
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Boltenko 2019-02-28 21:51:39 UTC
Created attachment 118447 [details]
The three possible states

The volume indicator's bar's end can appear in one of three states:
1. "Sliced"
2. Round
3. Flat


STEPS TO REPRODUCE
1. Change volume so that the volume indicator appears


OBSERVED RESULT
The volume bar on the indicator will have an inconsistent appearance.


EXPECTED RESULT
It's look should not change.


SOFTWARE/OS VERSIONS
Kernel: 4.20.11-1-MANJARO 64-bit
KDE Plasma Version: 5.15.1
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
The conditions for this are unknown.
This behaviour has persisted over multiple OS installations.
Comment 1 Kai Uwe Broulik 2019-03-01 09:45:11 UTC
Looks like a cache problem, have you cleared ~/.cache/plasma* files? Do you have screen scaling enabled?
Comment 2 Alexey Boltenko 2019-03-01 09:48:10 UTC
(In reply to Kai Uwe Broulik from comment #1)
> Looks like a cache problem, have you cleared ~/.cache/plasma* files? Do you
> have screen scaling enabled?

No scaling enabled.
Tried clearing cache, logged out and back in, the problem still persists.
Additionally, the "sliced" appearance is much more rare and I still couldn't figure out what causes it.
Comment 3 Nate Graham 2019-03-02 13:44:24 UTC
I can easily confirm that it alternates between flat and rounded states just by raising the lowering the volume repeatedly using my keyboard's volume keys. Now that I've seen this, I can't un-see it. :(
Comment 4 Filip Fila 2020-05-26 22:21:05 UTC
I've looked into what could be causing this.

How to reproduce and test changes: you need to log out and in again because restarting plasmashell makes the bug go away

What's not causing it: the PlasmaComponents qml files themselves, both PC2 and PC3

The culprit is most likely frameSvgItem. If you replace it with a circular Rectangle as the indicator you'll see this bug doesn't happen. See attached hack.

It shouldn't be a problem with our SVGs since I've seen it happen with other themes but can't say for sure.
Comment 5 Filip Fila 2020-05-26 22:21:55 UTC
Created attachment 128816 [details]
A naughty hack that makes the bug go away
Comment 6 Nate Graham 2020-05-26 22:31:03 UTC
Thanks, that looks like a good avenue of investigation.
Comment 7 Filip Fila 2020-05-26 22:39:45 UTC
Actually (and fortunately) it might just be an SVG problem.

Gonna attach an SVG from the Matcha-Color theme that doesn't have this issue.

Noah, do you have an idea what we're doing wrong and they're doing right?
Comment 8 Filip Fila 2020-05-26 22:40:36 UTC
Created attachment 128820 [details]
Bug-free 'bar_meter_horizontal' SVG

from the Matcha-Color theme
Comment 9 Marco Martin 2020-05-27 09:37:45 UTC
i do have the issue sometimes, tough also can't much understand.
bar_meter_horizontal looks very simple so shouldn't do it
Comment 10 Nate Graham 2020-07-24 18:57:30 UTC
*** Bug 424614 has been marked as a duplicate of this bug. ***
Comment 11 Marco Martin 2023-12-13 10:36:48 UTC
fixed in plasma6