Bug 444556

Summary: Flatpak Backend takes really long to fetch updates
Product: [Applications] Discover Reporter: Ahmed <ahmed.com>
Component: Flatpak BackendAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, bugseforuns, jgrulich, nate
Priority: NOR    
Version: 5.23.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ahmed 2021-10-28 19:03:28 UTC
SUMMARY
Discover takes about 5 minutes to fetch updates, so I opened Discover from the terminal to see what causes that, and here is the output of the terminal:

```
kf.kirigami: Units.devicePixelRatio is deprecated (since 5.86 ): This returns 1 when using Qt HiDPI scaling.
org.kde.plasma.discover: Trying to open unexisting file QUrl("file:///home/username/%25F")
adding empty sources model QStandardItemModel(0x5621b666d6b0)
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:74:5: QML Binding: Binding loop detected for property "value"
took really long to fetch FlatpakBackend(0x5621b657ffc0)
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/globaltoolbar/ToolBarPageHeader.qml:83:13: QML Binding: Binding loop detected for property "value"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/globaltoolbar/ToolBarPageHeader.qml:88:13: QML Binding: Binding loop detected for property "value"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:74:5: QML Binding: Binding loop detected for property "value"
```
This issue started to happen after updating Kubuntu from 21.04 to 21.10

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.10
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I updated Kubuntu recently from version 21.04 to 21.10, and used Kubuntu Backports PPA to update KDE Plasma to the latest version.
Comment 1 Nate Graham 2021-10-28 21:11:39 UTC
Does it reproduce if you run `plasma-discover --backends flatpak-backend` to load just the flatpak backend?
Comment 2 Ahmed 2021-10-28 22:01:37 UTC
(In reply to Nate Graham from comment #1)
> Does it reproduce if you run `plasma-discover --backends flatpak-backend` to
> load just the flatpak backend?

Yes, it took the same amount of time.
Comment 3 Nate Graham 2021-10-29 15:29:20 UTC
Thanks. Does `flatpak update` in a terminal window also take forever?
Comment 4 Ahmed 2021-10-29 16:18:56 UTC
(In reply to Nate Graham from comment #3)
> Thanks. Does `flatpak update` in a terminal window also take forever?

No, it took a few seconds.
Comment 5 Nate Graham 2021-10-29 16:30:19 UTC
OK, then it does seem like Discover is somehow at fault here. Thanks.
Comment 6 Ahmed 2021-10-29 16:53:40 UTC
(In reply to Nate Graham from comment #5)
> OK, then it does seem like Discover is somehow at fault here. Thanks.

That's right. I removed `plasma-discover-backend-flatpak`, and Discover fetches updates instantly.
Comment 7 Patrick Silva 2021-10-29 18:09:04 UTC

*** This bug has been marked as a duplicate of bug 443555 ***