Bug 434927 - When audio plays, the volume slider button goes under the volume bar
Summary: When audio plays, the volume slider button goes under the volume bar
Status: RESOLVED FIXED
Alias: None
Product: plasma-pa
Classification: Plasma
Component: applet (show other bugs)
Version: 5.21.3
Platform: Other Linux
: HI normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords: regression
: 442305 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-03-25 11:55 UTC by Derek Christ
Modified: 2022-08-31 21:03 UTC (History)
7 users (show)

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


Attachments
Plasmoid (333.00 KB, image/png)
2021-03-25 11:55 UTC, Derek Christ
Details
Screen recording of the issue (1.13 MB, video/webm)
2021-03-26 15:51 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Christ 2021-03-25 11:55:58 UTC
Created attachment 137052 [details]
Plasmoid

SUMMARY
When audio plays, the volume plasmoid shows a small visualizer showing the current volume level. However, when this is the case, the button of the slider goes under the volume bar. (Please see my pictures)

STEPS TO REPRODUCE
1. Play audio
2. Open audio plasmoid
3. See that the slider button is below the slider.

OBSERVED RESULT
The button should be all the way on the top.

EXPECTED RESULT
The button is under the slider.
Operating System: openSUSE Tumbleweed 20210321
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.6-1-default
Comment 1 Nate Graham 2021-03-25 21:38:57 UTC
I can intermittently confirm, but not always. Right now it's working, but it will break again at some point. This issue was introduced by the input/output level monitoring feature in Plasma 5.21.
Comment 2 David Redondo 2021-03-26 07:42:48 UTC
I saw it once when someone else showed me a screenshot of it happening, but I cannot reproduce and don't have an immediate idea either what could be wrong
Comment 3 Derek Christ 2021-03-26 10:54:03 UTC
I noticed, that this is more likely to happen when the Mic is muted as in my pictures.
Comment 4 David Redondo 2021-03-26 12:06:08 UTC
What's really weird if indeed it's conntected to the microphone  that it affects the other item too
Comment 5 Derek Christ 2021-03-26 12:48:00 UTC
Please see this short clip. It illustrates the connection to the mic mute button: https://imgur.com/zRktZPd
Comment 6 David Redondo 2021-03-26 13:39:08 UTC
It looks like the background is drawn above the contentItem which is a bit weird.
Comment 7 David Redondo 2021-03-26 13:45:43 UTC
Also no idea/theory why the tip of the highlight changes color.

Just adding an observation if a stream/device is muted the opacity of the slider is set to 0.5
Comment 8 Nate Graham 2021-03-26 15:51:24 UTC
Created attachment 137089 [details]
Screen recording of the issue

Just saw it while output level was being visualized. See attached screen recording.

Note that when an input or output is muted, the handle becomes partially transparent, allowing the track to show through. That is a separate issue generic to the PlasmaComponents slider.
Comment 9 Patrick Silva 2021-07-02 13:34:38 UTC
Can reproduce on neon unstable when internal microphone is muted.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 10 Nate Graham 2021-09-16 17:18:27 UTC
*** Bug 442305 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2021-09-20 20:26:13 UTC
Git commit d1c2014630c8e742d31a8c3a3afb2b4cd07b4ace by Nate Graham, on behalf of Derek Christ.
Committed on 20/09/2021 at 20:25.
Pushed by ngraham into branch 'master'.

Fix a bug that caused the handle of the volume slider to show artifacts

Sometimes it was possible for the handle of the volume slider to show
visual artifacts when audio was playing. Also the highlight of the
slider itself had sometimes a visual glitch at one side.

This commit fixes those glitches by enabling clipping for the slider
handle and also for the highlight of the slider itself.
FIXED-IN: 5.23

M  +3    -0    applet/contents/ui/ListItemBase.qml

https://invent.kde.org/plasma/plasma-pa/commit/d1c2014630c8e742d31a8c3a3afb2b4cd07b4ace
Comment 12 Nate Graham 2021-09-20 20:26:45 UTC
Git commit 6dffeb37b5f18f84f87c88a13eca9e657efb9c47 by Nate Graham, on behalf of Derek Christ.
Committed on 20/09/2021 at 20:26.
Pushed by ngraham into branch 'Plasma/5.23'.

Fix a bug that caused the handle of the volume slider to show artifacts

Sometimes it was possible for the handle of the volume slider to show
visual artifacts when audio was playing. Also the highlight of the
slider itself had sometimes a visual glitch at one side.

This commit fixes those glitches by enabling clipping for the slider
handle and also for the highlight of the slider itself.
FIXED-IN: 5.23


(cherry picked from commit d1c2014630c8e742d31a8c3a3afb2b4cd07b4ace)

M  +3    -0    applet/contents/ui/ListItemBase.qml

https://invent.kde.org/plasma/plasma-pa/commit/6dffeb37b5f18f84f87c88a13eca9e657efb9c47
Comment 13 ratijas 2022-08-25 22:17:14 UTC
Seems like with `layer.enabled: opacity < 1` binding at the slider/control top level this clip workaround is not needed anymore.
Comment 14 Bug Janitor Service 2022-08-25 22:22:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-pa/-/merge_requests/136
Comment 15 ratijas 2022-08-31 21:03:19 UTC
Git commit 92c0dce8da5d932b212d101d96bc27bba4bb6a17 by ivan tkachenko.
Committed on 31/08/2022 at 21:00.
Pushed by ratijas into branch 'master'.

applet: Drop redundant workaround for semi-transparent sliders

It may have served its purpose with dignity, but is no longer needed in
the presence of `layer.enabled: opacity < 1` binding at the control level.

See also: https://doc.qt.io/qt-5/qml-qtquick-item.html#item-layers

M  +1    -2    applet/contents/ui/VolumeSlider.qml

https://invent.kde.org/plasma/plasma-pa/commit/92c0dce8da5d932b212d101d96bc27bba4bb6a17