Bug 491369 - Cannot set desktop wallpaper to SVG file since Plasma 6.1.4
Summary: Cannot set desktop wallpaper to SVG file since Plasma 6.1.4
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image Wallpaper (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 491505 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-08-07 00:27 UTC by triallax
Modified: 2024-08-14 23:06 UTC (History)
7 users (show)

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


Attachments
Sample SVG wallpaper (the dark version of the Chimera Linux wallpaper, licensed under the CC BY-SA-4.0) (46.70 KB, image/svg+xml)
2024-08-07 00:27 UTC, triallax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description triallax 2024-08-07 00:27:00 UTC
Created attachment 172366 [details]
Sample SVG wallpaper (the dark version of the Chimera Linux wallpaper, licensed under the CC BY-SA-4.0)

SUMMARY
Since we updated KDE Plasma from 6.1.3 to 6.1.4 for Chimera Linux, SVG wallpapers have been broken for some reason. Selecting an SVG wallpaper then pressing apply will save the selection successfully, but the previous wallpaper will remain displayed on the desktop. This has not been an issue before as far as we're aware.

STEPS TO REPRODUCE
1. Download the attached SVG file
2. Open system settings
3. Open the "Wallpaper" tab
4. Set the wallpaper type to "Image"
5. Press on "Add...", select the SVG file, then press "Open"
6. Select the SVG wallpaper that was just added, then press "Apply"

OBSERVED RESULT
The previous desktop wallpaper remains on the desktop. If I log out and in, KDE Plasma stays a lot longer than usual on the loading screen (around 30 seconds versus the usual 2-3 seconds), and when it does fire up the desktop, the background is simply black.

EXPECTED RESULT
The wallpaper changes to the selected SVG file without issue.

SOFTWARE/OS VERSIONS
Operating System: Chimera 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.6.44-0-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 duha.bugs 2024-08-07 13:32:29 UTC
Confirming, can reproduce.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.5.0
Qt Version: 6.9.0
Kernel Version: 6.10.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 2 duha.bugs 2024-08-07 13:54:12 UTC
From my journald after a bad boot:
> Aug 07 15:38:11 archlinux plasmashell[1511]: file:///home/duha/kde/usr/share/plasma/wallpapers/org.kde.image/contents/ui/ImageStackView.qml:80: TypeError: Cannot call method 'createObject' of undefined (exception occurred during delayed function evaluation)

This does not appear in my journald after a good boot.
Comment 3 Nate Graham 2024-08-07 18:43:59 UTC
https://invent.kde.org/plasma/plasma-workspace/-/commit/f480c5eb8a8dd7ea30cdfc6930452ef7c46d9212 may be related. Marco, can you take a look?
Comment 4 Bug Janitor Service 2024-08-08 10:01:35 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4591
Comment 5 fanzhuyifan 2024-08-10 17:20:32 UTC
*** Bug 491505 has been marked as a duplicate of this bug. ***
Comment 6 Marco Martin 2024-08-12 15:59:44 UTC
Git commit 1c6e817a476e76970437faa7fef1dbdc5d3be082 by Marco Martin.
Committed on 12/08/2024 at 15:46.
Pushed by mart into branch 'master'.

Fix svg images

Image delegate needs to be loaded also for ScalableImage

M  +2    -1    wallpapers/image/imagepackage/contents/ui/ImageStackView.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/1c6e817a476e76970437faa7fef1dbdc5d3be082
Comment 7 Marco Martin 2024-08-12 19:11:08 UTC
Git commit ab80bee1724804650147a1c9485ee67ae4f42f83 by Marco Martin.
Committed on 12/08/2024 at 18:56.
Pushed by mart into branch 'Plasma/6.1'.

Fix svg images

Image delegate needs to be loaded also for ScalableImage


(cherry picked from commit 1c6e817a476e76970437faa7fef1dbdc5d3be082)

1c6e817a Fix svg images

Co-authored-by: Marco Martin <notmart@gmail.com>

M  +2    -1    wallpapers/image/imagepackage/contents/ui/ImageStackView.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/ab80bee1724804650147a1c9485ee67ae4f42f83