Bug 439753

Summary: Background image and album art image do not display at the same time when the image is read from a slow net disk
Product: [Plasma] plasmashell Reporter: Fushan Wen <qydwhotmail>
Component: Media PlayerAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: minor CC: plasma-bugs
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=439589
Latest Commit: Version Fixed In: 5.23
Attachments: Phenomenon

Description Fushan Wen 2021-07-11 11:07:05 UTC
Created attachment 139992 [details]
Phenomenon

SUMMARY
Background image and album art image do not display at the same time when the image is read from a slow net disk (e.g. a folder mounted by rclone)

STEPS TO REPRODUCE
1. Play any music with a separated album art image in the same folder using Audacious
2. Open the media controller

OBSERVED RESULT
Background image and album art image do not display at the same time.

EXPECTED RESULT
Background image and album art image display at the same time.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210708
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 7 4700U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD RENOIR

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2021-07-11 13:09:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/958
Comment 2 Nate Graham 2021-08-19 19:41:13 UTC
Git commit 95fc7e6e27cc10abc81a8f97950dd8ea6733d8ac by Nate Graham, on behalf of Fusion Future.
Committed on 19/08/2021 at 19:41.
Pushed by ngraham into branch 'master'.

[applets/mediacontroller] Ensure background image and album art image display at the same time

Background image and album art image sometimes do not display at the same
time because there are two Image instances referring to the same path, but
cache will not work because they are loaded simultaneously. Use ShaderEffect
instead of another Image instance to provide the background to fix the bug.

Use State and PropertyChanges to avoid unnecessary reevaluation of width
and height of albumArtBackground.
FIXED-IN: 5.23

M  +15   -13   applets/mediacontroller/contents/ui/ExpandedRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/commit/95fc7e6e27cc10abc81a8f97950dd8ea6733d8ac