Bug 431477 - Application addons do not load before updates have been fetched
Summary: Application addons do not load before updates have been fetched
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.20.5
Platform: Arch Linux Linux
: VHI normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-01-12 08:26 UTC by Lorenzo De Marco
Modified: 2021-02-22 00:34 UTC (History)
5 users (show)

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


Attachments
Discover stays on this screen forever, and it only happens with the Addons. (76.50 KB, image/png)
2021-01-12 08:26 UTC, Lorenzo De Marco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo De Marco 2021-01-12 08:26:02 UTC
Created attachment 134760 [details]
Discover stays on this screen forever, and it only happens with the Addons.

SUMMARY
Whenever I open Discover and click "Plasma Addons" or "Application addons", it loads indefinitely. Search doesn't work either.

STEPS TO REPRODUCE
1. Open Discover
2. Click on "Application addons" or "Plasma addons"

OBSERVED RESULT
Searching indicator with spinner, category doesn't load. Navigating sub-categories leads to the same result. Browsing normal applications works.

EXPECTED RESULT
The spinner eventually goes away and a list of addons is presented.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.9.9-arch1-1
OS Type: 64-bit
Processors: 6 × Intel® Core™ i5-9400F CPU @ 2.90GHz
Memory: 15.5 GiB of RAM
Graphics Processor: GeForce GTX 1650/PCIe/SSE2

ADDITIONAL INFORMATION
Browsing Plasma widgets from the "Add object" Desktop context menu works just fine.
Comment 1 Felipe Kinoshita 2021-01-12 20:00:21 UTC
Can confirm. Still present on Fedora KDE using

KDE Plasma 5.20.5

KDE Frameworks 5.78.0

QT 5.15.2

Kernel 5.9.16
Comment 2 Nate Graham 2021-01-13 01:05:40 UTC
Can reproduce if I click on "Application addons" the moment Discover launches.

If I first wait until "fetching updates" in the sidebar has changed to "Up to date", and then click on "Application addons", then it finds stuff.

This used to work; marking as a regression.
Comment 3 David Edmundson 2021-02-03 00:11:42 UTC
Seems very rare and is easily worked around with no loss of data by restarting the app.

Removing from the VHI queue.
Comment 4 Nate Graham 2021-02-03 00:19:19 UTC
In fact this is not rare at all; it is trivially reproduced by launching discover and immediately clicking "Application Addons". Re-launching the app and doing the same thing does *not* work around it. The workaround is to launch the app and then wait 5-20 seconds (depending on your distro) which is not something a user will expect. To them, it will seem that this functionality is totally broken.

It may be distro-specific though. I'm on openSUSE Tumbleweed which has a notoriously slow and bad packageKit implementation. I wouldn't be surprised if it works better for for some other distros. However the reporter is on Arch, and another person confirms on Fedora. Perhaps it only works properly on Ubuntu-based distros...

Raising to VHI again.
Comment 5 David Edmundson 2021-02-03 18:59:14 UTC
Can I have output of:
QT_LOGGING_RULES=org.kde.plasma.libdiscover.debug=true plasma-discover
Comment 6 David Edmundson 2021-02-03 19:00:21 UTC
Edit:

QT_LOGGING_RULES=org.kde.plasma.libdiscover.debug=true,org.kde.plasma.libdiscover.backend=true plasma-discover
Comment 7 Nate Graham 2021-02-03 19:05:56 UTC
$ QT_LOGGING_RULES=org.kde.plasma.libdiscover.debug=true,org.kde.plasma.libdiscover.backend=true plasma-discover
qt.core.logging: Ignoring malformed logging rule: 'org.kde.plasma.libdiscover.debug=true,org.kde.plasma.libdiscover.backend=true'
file:///home/nate/kde/usr/lib64/qml/org/kde/kirigami.2/GlobalDrawer.qml:265: TypeError: Type error
file:///home/nate/kde/usr/lib64/qml/org/kde/kirigami.2/private/globaltoolbar/PageRowGlobalToolBarUI.qml:65:9: QML RowLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "maximumWidth"
file:///home/nate/kde/usr/lib64/qml/org/kde/kirigami.2/private/globaltoolbar/PageRowGlobalToolBarUI.qml:65:9: QML RowLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "maximumWidth"
file:///home/nate/kde/usr/lib64/qml/org/kde/kirigami.2/private/globaltoolbar/PageRowGlobalToolBarUI.qml:65:9: QML RowLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "maximumWidth"
adding empty sources model QStandardItemModel(0x309ef40)
kf.newstuff.core: The ChecksumPolicy feature is defunct
kf.newstuff.core: The SignaturePolicy feature is defunct
kf.newstuff.core: The ChecksumPolicy feature is defunct
kf.newstuff.core: The SignaturePolicy feature is defunct
kf.newstuff.core: The CustomName property is deprecated and will be removed in KF6
invalid kns backend! "/home/nate/kde/usr/share/knsrcfiles/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
org.kde.plasma.libdiscover: Couldn't find a category for  "fwupd-backend"
file:///home/nate/kde/usr/lib64/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:71:5: QML Binding: Binding loop detected for property "value"
Fwupd Error:  "Embedded Controller" [ "com.lenovo.ThinkPadN2QHT.firmware" ] cannot be updated 
Fwupd Error: Cannot Create App From Device Embedded Controller
Fwupd Error:  "System Firmware" [ "com.lenovo.ThinkPadN2QETXXW.firmware" ] cannot be updated 
Fwupd Error: Cannot Create App From Device System Firmware
Comment 8 Aleix Pol 2021-02-04 02:54:52 UTC
Are you sure this is reproducible in 5.21?
7a4215b7b477de02103af6062b11819fb0c912d2 should have addressed it.

And I'm sorry, but adding further debugging information won't work. 

Testing whether running with only "plasma-discover --backends kns" makes it work better could be useful too.
Comment 9 Nate Graham 2021-02-04 02:58:32 UTC
I'm using git master as of today (as I do every day). Still happening. :(

The bug is gone when I do `plasma-discover --backends kns`.

If I add the flatpak backend, something different happens when I click on "Applicayion Addons immediately after launching the app: It finishes searching almost immediately, saying "Sorry, nothing found"

If I add the packagekit packend, the bug as described here returns.
Comment 10 Felipe Kinoshita 2021-02-20 09:44:51 UTC
Interestingly after updating to 5.21 this is working as expected.
Comment 11 Nate Graham 2021-02-22 00:34:44 UTC
This seems to have been fixed in Plasma 5.21!