Bug 452718 - Fwupd backend gets stuck checking for updates and blocks everything else
Summary: Fwupd backend gets stuck checking for updates and blocks everything else
Status: RESOLVED WORKSFORME
Alias: None
Product: Discover
Classification: Applications
Component: fwupd Backend (show other bugs)
Version: 5.24.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Abhijeet Sharma
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-18 05:54 UTC by StringentDev
Modified: 2022-06-26 04:36 UTC (History)
3 users (show)

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


Attachments
attachment-10964-0.html (1.85 KB, text/html)
2022-04-20 09:30 UTC, StringentDev
Details
attachment-30952-0.html (650 bytes, text/html)
2022-05-27 10:36 UTC, StringentDev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description StringentDev 2022-04-18 05:54:31 UTC
SUMMARY
***
qrc:/qml/DiscoverWindow.qml:116:19: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/qt/qml/org/kde/kirigami.2/PageRow.qml:674:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 14. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/qt/qml/org/kde/kirigami.2/PageRow.qml:670:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 13. Use 'sequences: [ <key> ]' to bind to all of them.
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
adding empty sources model QStandardItemModel(0xaaaaf16ccc30)
org.kde.plasma.libdiscover: Couldn't find a category for  "fwupd-backend"
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:74:5: QML Binding: Binding loop detected for property "value"
file:///usr/lib/qt/qml/org/kde/kirigami.2/AbstractApplicationWindow.qml:282:5: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.

file:///usr/lib/qt/qml/org/kde/kirigami.2/AbstractApplicationWindow.qml:282:5: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.
----------------------------------------------------------
The previous bug messages appear when launching `plasma-discover` through the status to check the updates.
It freezes at the 95% of checking updates and just hangs despite being able to show that there is an update on the side navigation
***


STEPS TO REPRODUCE
1. Open `plasma-discover`
2. Go to updates page

OBSERVED RESULT
Stuck at 95% and does not show a list of updates at any time. Despite the side navigation indicator for update being recoloured amber with `Update (1)` as the label.

EXPECTED RESULT
Should complete and show a list of updates.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro 22.04
(available in About System)
KDE Plasma Version: 24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Comment 1 StringentDev 2022-04-18 05:57:40 UTC
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
---------------------------------------------------------
Also emitted ANY TIME that the application proceeds to load the Update scene.
Comment 2 Nate Graham 2022-04-18 15:27:42 UTC
Do you have any Flatpak repos configured?

Does it work if you open Discover in a terminal window with `plasma-discover --backends packagekit`?
Comment 3 StringentDev 2022-04-18 18:50:43 UTC
On 18/04/2022 16:27, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=452718
>
> Nate Graham <nate@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|---                         |WAITINGFORINFO
>                   CC|                            |nate@kde.org
>               Status|REPORTED                    |NEEDSINFO
>
> --- Comment #2 from Nate Graham <nate@kde.org> ---
> Do you have any Flatpak repos configured?
>
> Does it work if you open Discover in a terminal window with `plasma-discover
> --backends packagekit`?
>
No. It does not work in terminal. Yes I have flatpaks configured to flathub.
Comment 4 Nate Graham 2022-04-19 15:08:00 UTC
What does `pkcon get-updates` show? If it shows things, can you apply the updates with `pkcon update`?
Comment 5 StringentDev 2022-04-20 09:30:42 UTC
Created attachment 148263 [details]
attachment-10964-0.html

Ok, so Discover is still saying that there is 1 update available but 
pkcon returns
----------------------------------------------------------------------------------

Getting updates [=========================]
Downloading list of packages  [=========================]
Finished                      [=========================]
There are no updates available at this time.

----------------------------------------------------------------------------------

That's pretty weird to me.


On 19/04/2022 16:08, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=452718
>
> --- Comment #4 from Nate Graham<nate@kde.org>  ---
> What does `pkcon get-updates` show? If it shows things, can you apply the
> updates with `pkcon update`?
>
Comment 6 Nate Graham 2022-04-20 13:23:26 UTC
That means there's an update in Discover that doesn't come from PackageKit. Probably Flatpak or KNS.

Can you run Discover with one backend at a time to see where the update comes from?
- To run it with only the Flatpak backend, run `plasma-discover --backends flatpak-backend`
- To run it with only the KNewStuff backend, run `plasma-discover --backends kns-backend`
- To list available backends beyond those, run `plasma-discover --listbackends`
Comment 7 StringentDev 2022-04-20 19:41:30 UTC
Flatpak - OK (Displays updates)
KNewStuff - Slow (But shows updates)
FWUpdate - Failed (Issue is occurring here)
PackageKit - Ok (Displays updates)


On 20/04/2022 14:23, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=452718
>
> --- Comment #6 from Nate Graham <nate@kde.org> ---
> That means there's an update in Discover that doesn't come from PackageKit.
> Probably Flatpak or KNS.
>
> Can you run Discover with one backend at a time to see where the update comes
> from?
> - To run it with only the Flatpak backend, run `plasma-discover --backends
> flatpak-backend`
> - To run it with only the KNewStuff backend, run `plasma-discover --backends
> kns-backend`
> - To list available backends beyond those, run `plasma-discover --listbackends`
>
Comment 8 StringentDev 2022-04-20 19:50:30 UTC
Uninstalled the "fwupd" package - it now works fine.

On 20/04/2022 14:23, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=452718
>
> --- Comment #6 from Nate Graham <nate@kde.org> ---
> That means there's an update in Discover that doesn't come from PackageKit.
> Probably Flatpak or KNS.
>
> Can you run Discover with one backend at a time to see where the update comes
> from?
> - To run it with only the Flatpak backend, run `plasma-discover --backends
> flatpak-backend`
> - To run it with only the KNewStuff backend, run `plasma-discover --backends
> kns-backend`
> - To list available backends beyond those, run `plasma-discover --listbackends`
>
Comment 9 Nate Graham 2022-04-21 15:10:58 UTC
Ok, so the fwupd backend is getting stuck and blocking everything else. Gotcha.

If you reinstall fwupd, what happens when you run `fwupdmgr get-updates` in a terminal window? Does that get stuck too?
Comment 10 Bug Janitor Service 2022-05-06 04:35:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 StringentDev 2022-05-07 04:52:54 UTC
Nope. Everything works in the terminal as "No detected devices" is 
returned after a couple seconds.
Comment 12 Nate Graham 2022-05-09 15:39:12 UTC
And Discover is still hanging now that you reinstalled fwupd, and , right?
Comment 13 Bug Janitor Service 2022-05-24 04:35:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 StringentDev 2022-05-27 10:36:30 UTC
Created attachment 149252 [details]
attachment-30952-0.html

Sorry, Did a distro jump. I'll install KDE again on Ubuntu and try with fwd again.
Comment 15 Bug Janitor Service 2022-06-11 04:35:31 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 16 Bug Janitor Service 2022-06-26 04:36:25 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!