Bug 444556 - Flatpak Backend takes really long to fetch updates
Summary: Flatpak Backend takes really long to fetch updates
Status: RESOLVED DUPLICATE of bug 443555
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: 5.23.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-28 19:03 UTC by Ahmed
Modified: 2021-10-29 18:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***