Bug 447336

Summary: Discover doesn't automatically pick a backend
Product: [Applications] Discover Reporter: Vytautas <doggoofspeed>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aleixpol
Priority: NOR    
Version First Reported In: 5.23.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: gdb output

Description Vytautas 2021-12-21 13:28:30 UTC
SUMMARY
On starting plasma-discover it fails to run any of the installed backends (It runs them If I enter the update section, but it still takes ~20s).
It works fine if I force it to use them:
> plasma-discover --backends packagekit kns fwupd
but since app centers are meant for people who aren't familiar with the terminal, I think this is probably a bug.

STEPS TO REPRODUCE
1. Open plasma-discover

OBSERVED RESULT
Backends aren't loaded

EXPECTED RESULT
Backends are loaded

SOFTWARE/OS VERSIONS
Qt Version: 5.15.2
Frameworks Version: 5.89.0
Operating System: Linux 5.15.10-zen1-1-zen x86_64
Windowing System: X11
Distribution: Garuda Linux

ADDITIONAL INFORMATION
I am not sure what info is needed, but If there is a need for additional info, I will gladly provide.
Comment 1 Aleix Pol 2021-12-23 00:51:21 UTC
Maybe it's one of the ones you are not loading (flatpak or snap) that take some time?

From what you say it's not that it doesn't run them, it's that they're slow at starting. Correct?

It would be useful if you could provide a backtrace of frozen discover.
Here it's explained how it's done, tell us if you cannot provide it.
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_with_GDB
Comment 2 Vytautas 2021-12-23 05:49:50 UTC
(In reply to Aleix Pol from comment #1)
> Maybe it's one of the ones you are not loading (flatpak or snap) that take
> some time?
> 
> From what you say it's not that it doesn't run them, it's that they're slow
> at starting. Correct?
> 
> It would be useful if you could provide a backtrace of frozen discover.
> Here it's explained how it's done, tell us if you cannot provide it.
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports#Retrieving_a_backtrace_with_GDB

Well I haven't installed or used flatpak and snap, so that isn't the problem. Also, when I force Discover to use the backends, It starts and works instantly. I'll attach a backtrace when I can.
Comment 3 Vytautas 2021-12-24 21:38:57 UTC
Created attachment 144847 [details]
gdb output
Comment 4 Vytautas 2021-12-25 20:28:41 UTC
I've had to reinstall my distro for various reasons and can no longer reproduce this.