Bug 494315

Summary: No icons for apps
Product: [Applications] Discover Reporter: Eugene Savitsky <eugene.savitsky>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs>
Status: REOPENED ---    
Severity: normal CC: aleixpol, nate, sitter, travier, yselkowi
Priority: NOR    
Version: 6.2.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.0
Sentry Crash Report:
Attachments: Screenshot: only blue + zipper icons
Screenshot: some icons are normal
Screenshot: some icons are normal 2
Screenshot: some icons are normal - 3
Screenvideo

Description Eugene Savitsky 2024-10-08 22:43:27 UTC
Created attachment 174549 [details]
Screenshot: only blue + zipper icons

Very often I see no icons in Discovery (default blue with zipper is shown). Now on 6.2, but I believe it was the case and on 6.1.x. Fedora & openSUSE.

After restarting Discover some icons may appear.
Comment 1 Eugene Savitsky 2024-10-08 22:44:21 UTC
Created attachment 174550 [details]
Screenshot: some icons are normal
Comment 2 Eugene Savitsky 2024-10-08 22:44:38 UTC
Created attachment 174551 [details]
Screenshot: some icons are normal 2
Comment 3 Eugene Savitsky 2024-10-08 22:45:54 UTC
Created attachment 174552 [details]
Screenshot: some icons are normal - 3

After restarting Discovery, some icons could appear (compare with https://bugs.kde.org/attachment.cgi?id=174549)
Comment 4 Eugene Savitsky 2024-10-08 22:49:25 UTC
Actually, I believe it does not happens on Fedora.

Found this thread: https://www.reddit.com/r/openSUSE/comments/1bxqa6n/no_program_icons_in_discover/
Comment 5 Nate Graham 2024-10-10 21:31:46 UTC
Cannot reproduce in Fedora 40 KDE. All the icons load for me.
Comment 6 Eugene Savitsky 2024-10-10 23:35:19 UTC
It seems it is a openSUSE bug...

Right now icons are loading fine on openSUSE.
Comment 7 Eugene Savitsky 2024-10-10 23:48:58 UTC
Updated openSUSE and restarted. Again blue icons... :-/
Comment 8 Harald Sitter 2024-10-15 04:08:23 UTC
Please run

>  QT_LOGGING_RULES=org.kde.*=true plasma-discover &> log

wait about 1minute

then attach the file 'log' to the bug report.
Comment 9 Eugene Savitsky 2024-10-15 19:05:02 UTC
It makes an 0 sized file...

BTW I made a bug in openSUSE bugzilla:
https://bugzilla.opensuse.org/show_bug.cgi?id=1231586
Comment 10 Eugene Savitsky 2024-10-15 19:11:58 UTC
Run just: QT_LOGGING_RULES=org.kde.*=true plasma-discover

First run - all icons were present:
ezh@localhost:~> QT_LOGGING_RULES=org.kde.*=true plasma-discover > log
libs QList("/usr/lib64/qt6/plugins", "/usr/bin")
org.kde.plasma.libdiscover: OdrsReviewsBackend: Fetch ratings: false
adding empty sources model QStandardItemModel(0x560f10e54180)
org.kde.plasma.libdiscover: setting currentApplicationBackend to PackageKitBackend(0x560f10cbac00)
org.kde.plasma.libdiscover: CategoriesReader: Load categories from file "/usr/share/libdiscover/categories/flatpak-backend-categories.xml" with l10n true
org.kde.plasma.libdiscover: CategoriesReader: Couldn't find a category for "fwupd-backend"
org.kde.plasma.libdiscover: CategoriesReader: Load categories from file "/usr/share/libdiscover/categories/packagekit-backend-categories.xml" with l10n true
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitWidth":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:358:9
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitHeight":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:361:9
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:401:33: QML Binding: Binding loop detected for property "value":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:409:13
org.kde.UserFeedback: 
qrc:/qt/qml/org/kde/discover/qml/BrowsingPage.qml:17:1: QML BrowsingPage: Created graphical object was not placed in the graphics scene.

** (process:69657): WARNING **: 22:05:41.016: Found icon of unknown type 'unknown' in 'system/package/os/focuswriter.desktop/*', skipping it.

** (process:69657): WARNING **: 22:05:41.039: Found icon of unknown type 'unknown' in 'system/package/os/org.opensuse.opensuse_welcome/*', skipping it.

** (process:69657): WARNING **: 22:05:41.063: Found icon of unknown type 'unknown' in 'system/package/os/io.github.syllo.nvtop/*', skipping it.

** (process:69657): WARNING **: 22:05:41.064: Found icon of unknown type 'unknown' in 'system/package/os/org.naev.Naev/*', skipping it.

** (process:69657): WARNING **: 22:05:41.083: Found icon of unknown type 'unknown' in 'system/package/os/net.minetest.minetest/*', skipping it.

** (process:69657): WARNING **: 22:05:41.119: Found icon of unknown type 'unknown' in 'system/package/os/im.dino.Dino/*', skipping it.

** (process:69657): WARNING **: 22:05:41.136: Found icon of unknown type 'unknown' in 'system/package/os/org.musescore.MuseScore/*', skipping it.

** (process:69657): WARNING **: 22:05:41.166: Found icon of unknown type 'unknown' in 'system/package/os/org.kde.merkuro.contact/*', skipping it.
PackageKitBackend: No distro component found for "org.opensuse.opensuse-tumbleweed"
looking for cache entry
looking for cache entry 0
cache entry KNSCore::Entry(uniqueId: "1313336", name:"Breeze Round Corners", status: Installed, installedFiles: QList("/home/ezh/.local/share/icons/Breeze_Dark_RC/*", "/home/ezh/.local/share/icons/Breeze_RC/*")) "20200604" "20200604"
UPDATABLE QList()
AppStreamIntegration: No distro component found for "org.opensuse.opensuse-tumbleweed"
^C


Second run - blue icons:
ezh@localhost:~> QT_LOGGING_RULES=org.kde.*=true plasma-discover > log
libs QList("/usr/lib64/qt6/plugins", "/usr/bin")
org.kde.plasma.libdiscover: OdrsReviewsBackend: Fetch ratings: false
adding empty sources model QStandardItemModel(0x558be6c75e60)
org.kde.plasma.libdiscover: setting currentApplicationBackend to PackageKitBackend(0x558be6bf1300)
org.kde.plasma.libdiscover: CategoriesReader: Load categories from file "/usr/share/libdiscover/categories/flatpak-backend-categories.xml" with l10n true
org.kde.plasma.libdiscover: CategoriesReader: Couldn't find a category for "fwupd-backend"
org.kde.plasma.libdiscover: CategoriesReader: Load categories from file "/usr/share/libdiscover/categories/packagekit-backend-categories.xml" with l10n true
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitWidth":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:358:9
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitHeight":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:361:9
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:401:33: QML Binding: Binding loop detected for property "value":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:409:13
org.kde.UserFeedback: 
qrc:/qt/qml/org/kde/discover/qml/BrowsingPage.qml:17:1: QML BrowsingPage: Created graphical object was not placed in the graphics scene.

** (process:70286): WARNING **: 22:06:25.726: Found icon of unknown type 'unknown' in 'system/package/os/focuswriter.desktop/*', skipping it.

** (process:70286): WARNING **: 22:06:25.752: Found icon of unknown type 'unknown' in 'system/package/os/org.opensuse.opensuse_welcome/*', skipping it.

** (process:70286): WARNING **: 22:06:25.776: Found icon of unknown type 'unknown' in 'system/package/os/io.github.syllo.nvtop/*', skipping it.

** (process:70286): WARNING **: 22:06:25.777: Found icon of unknown type 'unknown' in 'system/package/os/org.naev.Naev/*', skipping it.

** (process:70286): WARNING **: 22:06:25.796: Found icon of unknown type 'unknown' in 'system/package/os/net.minetest.minetest/*', skipping it.

** (process:70286): WARNING **: 22:06:25.830: Found icon of unknown type 'unknown' in 'system/package/os/im.dino.Dino/*', skipping it.

** (process:70286): WARNING **: 22:06:25.846: Found icon of unknown type 'unknown' in 'system/package/os/org.musescore.MuseScore/*', skipping it.

** (process:70286): WARNING **: 22:06:25.875: Found icon of unknown type 'unknown' in 'system/package/os/org.kde.merkuro.contact/*', skipping it.
PackageKitBackend: No distro component found for "org.opensuse.opensuse-tumbleweed"
looking for cache entry
looking for cache entry 0
cache entry KNSCore::Entry(uniqueId: "1313336", name:"Breeze Round Corners", status: Installed, installedFiles: QList("/home/ezh/.local/share/icons/Breeze_Dark_RC/*", "/home/ezh/.local/share/icons/Breeze_RC/*")) "20200604" "20200604"
UPDATABLE QList()
AppStreamIntegration: No distro component found for "org.opensuse.opensuse-tumbleweed"
PackageKit stopped running!
Comment 11 Eugene Savitsky 2024-10-15 19:15:00 UTC
Third run and at the end there is some useful data.

ezh@localhost:~> QT_LOGGING_RULES=org.kde.*=true plasma-discover
libs QList("/usr/lib64/qt6/plugins", "/usr/bin")
org.kde.plasma.libdiscover: OdrsReviewsBackend: Fetch ratings: false
adding empty sources model QStandardItemModel(0x55ef985294f0)
org.kde.plasma.libdiscover: setting currentApplicationBackend to PackageKitBackend(0x55ef9849d480)
org.kde.plasma.libdiscover: CategoriesReader: Load categories from file "/usr/share/libdiscover/categories/flatpak-backend-categories.xml" with l10n true
org.kde.plasma.libdiscover: CategoriesReader: Couldn't find a category for "fwupd-backend"
org.kde.plasma.libdiscover: CategoriesReader: Load categories from file "/usr/share/libdiscover/categories/packagekit-backend-categories.xml" with l10n true
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitWidth":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:358:9
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitHeight":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:361:9
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:401:33: QML Binding: Binding loop detected for property "value":
qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:409:13
org.kde.UserFeedback: 
qrc:/qt/qml/org/kde/discover/qml/BrowsingPage.qml:17:1: QML BrowsingPage: Created graphical object was not placed in the graphics scene.
packagekitqt.offline: Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"

** (process:71070): WARNING **: 22:12:26.462: Found icon of unknown type 'unknown' in 'system/package/os/focuswriter.desktop/*', skipping it.

** (process:71070): WARNING **: 22:12:26.488: Found icon of unknown type 'unknown' in 'system/package/os/org.opensuse.opensuse_welcome/*', skipping it.

** (process:71070): WARNING **: 22:12:26.512: Found icon of unknown type 'unknown' in 'system/package/os/io.github.syllo.nvtop/*', skipping it.

** (process:71070): WARNING **: 22:12:26.513: Found icon of unknown type 'unknown' in 'system/package/os/org.naev.Naev/*', skipping it.

** (process:71070): WARNING **: 22:12:26.532: Found icon of unknown type 'unknown' in 'system/package/os/net.minetest.minetest/*', skipping it.

** (process:71070): WARNING **: 22:12:26.567: Found icon of unknown type 'unknown' in 'system/package/os/im.dino.Dino/*', skipping it.

** (process:71070): WARNING **: 22:12:26.584: Found icon of unknown type 'unknown' in 'system/package/os/org.musescore.MuseScore/*', skipping it.

** (process:71070): WARNING **: 22:12:26.613: Found icon of unknown type 'unknown' in 'system/package/os/org.kde.merkuro.contact/*', skipping it.
looking for cache entry
looking for cache entry 0
cache entry KNSCore::Entry(uniqueId: "1313336", name:"Breeze Round Corners", status: Installed, installedFiles: QList("/home/ezh/.local/share/icons/Breeze_Dark_RC/*", "/home/ezh/.local/share/icons/Breeze_RC/*")) "20200604" "20200604"
UPDATABLE QList()
PackageKitBackend: No distro component found for "org.opensuse.opensuse-tumbleweed"
packagekitqt.offline: Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"
packagekitqt.offline: Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"
AppStreamIntegration: No distro component found for "org.opensuse.opensuse-tumbleweed"
packagekitqt.offline: Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"
packagekitqt.offline: Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"
packagekitqt.offline: Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"
PackageKit stopped running!
qrc:/qt/qml/org/kde/discover/qml/UpdatesPage.qml:11:1: QML UpdatesPage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/discover/qml/UpdatesPage.qml:40:5: QML OverlaySheet: Binding loop detected for property "implicitHeight":
file:///usr/lib64/qt6/qml/org/kde/kirigami/templates/OverlaySheet.qml:137:5
packagekitqt.offline: Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"
packagekitqt.offline: Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"
qrc:/qt/qml/org/kde/discover/qml/BrowsingPage.qml:17:1: QML BrowsingPage: Created graphical object was not placed in the graphics scene.
PackageKit stopped running!
Comment 12 Bug Janitor Service 2024-10-30 03:46:54 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Eugene Savitsky 2024-10-30 11:39:53 UTC
(In reply to Harald Sitter from comment #8)
> Please run
> >  QT_LOGGING_RULES=org.kde.*=true plasma-discover &> log

Two weeks ago I have posted the logs.
Comment 14 Eugene Savitsky 2024-11-30 15:46:48 UTC
KDE 6.2.4. Still the case on OpenSUSE Tumbleweed (and still not always), no problem on Fedora 41.
Comment 15 Eugene Savitsky 2024-12-04 00:21:02 UTC
Installed to a VM Fedora 41 Kinoite and see the same problem...
Comment 16 Harald Sitter 2025-01-25 13:01:41 UTC
CCing Timothée to maybe have a look into this. It seems to work fine for me on KDE Linux, maybe there is something platform specific going on here.
Comment 17 Timothée Ravier 2025-01-27 17:06:06 UTC
I'm aware that this happens on Fedora Kinoite (see: https://pagure.io/fedora-kde/SIG/issue/136) with Fedora Flatpaks only. I don't use them so I'm not working on this.
Comment 18 Harald Sitter 2025-01-27 18:56:57 UTC
What I think happens is that we fail to look up the stock icons. Of course there is a downstream component to this as well in that we shouldn't need to rely on stock icons since they will not have 100% coverage. i.e. the affected distros need to ship cached icons or remote icon uris in their appstream data.
Comment 19 Bug Janitor Service 2025-01-27 18:58:35 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1025
Comment 20 Harald Sitter 2025-01-31 14:36:06 UTC
Git commit 41368330af15c5fc12ea8227a81c741b73ee3099 by Harald Sitter.
Committed on 31/01/2025 at 14:05.
Pushed by sitter into branch 'master'.

appstreamutils: fix icon listing

-1 is fairly unreliable at providing a comprehensive list. walk group
the enum instead

M  +6    -1    libdiscover/appstream/AppStreamUtils.cpp

https://invent.kde.org/plasma/discover/-/commit/41368330af15c5fc12ea8227a81c741b73ee3099
Comment 21 Harald Sitter 2025-01-31 14:56:48 UTC
Git commit 68de3ccc836822d183dcd4da60c7f3189a825291 by Harald Sitter.
Committed on 31/01/2025 at 14:36.
Pushed by sitter into branch 'Plasma/6.3'.

appstreamutils: fix icon listing

-1 is fairly unreliable at providing a comprehensive list. walk group
the enum instead
(cherry picked from commit 41368330af15c5fc12ea8227a81c741b73ee3099)

M  +6    -1    libdiscover/appstream/AppStreamUtils.cpp

https://invent.kde.org/plasma/discover/-/commit/68de3ccc836822d183dcd4da60c7f3189a825291
Comment 22 Eugene Savitsky 2025-03-14 08:34:47 UTC
I still see the same problem on Tumbleweed.

First start of Discover - OK.
Second start - blue icons.
Comment 23 Eugene Savitsky 2025-03-14 08:38:25 UTC
Created attachment 179383 [details]
Screenvideo