Bug 439589 - albumArtBackground and albumArtImage in tooltips do not appear at the same time
Summary: albumArtBackground and albumArtImage in tooltips do not appear at the same time
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: master
Platform: unspecified Linux
: NOR minor
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-07 09:23 UTC by Fushan Wen
Modified: 2021-08-16 14:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23


Attachments
Phenomenon (2.04 MB, video/mp4)
2021-07-11 12:16 UTC, Fushan Wen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fushan Wen 2021-07-07 09:23:28 UTC
SUMMARY
When album art image is loaded from a slow net disk, albumArtBackground and albumArtImage often do not appear at the same time because the same image is read twice.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
albumArtBackground and albumArtImage in tooltips do not appear at the same time.

EXPECTED RESULT
albumArtBackground and albumArtImage in tooltips appear at the same time.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210704
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.13-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-07 11:48:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/525
Comment 2 Fushan Wen 2021-07-11 12:16:11 UTC
Created attachment 139993 [details]
Phenomenon
Comment 3 Nate Graham 2021-08-16 14:56:15 UTC
Git commit 40ce918581328b944c49b7312ec49831d7ad4458 by Nate Graham, on behalf of Fusion Future.
Committed on 16/08/2021 at 14:55.
Pushed by ngraham into branch 'master'.

[Task Manager] Ensure albumArtBackground and albumArtImage 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.

M  +22   -8    applets/taskmanager/package/contents/ui/ToolTipInstance.qml

https://invent.kde.org/plasma/plasma-desktop/commit/40ce918581328b944c49b7312ec49831d7ad4458