Bug 488199

Summary: After app is launched, first search for something that should return no results instead returns "Still looking" forever
Product: [Applications] Discover Reporter: Massimiliano L <m.lincetto>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, bugseforuns, nate, sitter
Priority: NOR    
Version: 6.0.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=488267
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Massimiliano L 2024-06-08 08:46:59 UTC
SUMMARY
When searching for an app, Discover is stuck at "Still looking..." with the spinning gear.

STEPS TO REPRODUCE
1. Open Discover;
2. Search for an app (i.e. "KleverNotes") using the text field up on the left;
3. Observe Discover behaviour.

OBSERVED RESULT
Discover search is stuck at "Still looking..." with the spinning gear for an apparently indefinite amount of time.

EXPECTED RESULT
Discover search returns something, or at least tells you what it is currently doing / waiting on.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40
Linux/KDE: Fedora 40
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Comment 1 Nate Graham 2024-06-10 19:57:18 UTC
The issue of the busy indicator being misplaced is Bug 488267. As for the functional issue, does it *ever* find anything? Like, after, say, 30 minutes? Or is it still stuck at that point?

If so, does the issue reproduce in a new clean user account on the same machine?

If so, does the issue reproduce in a live session of Fedora 40, like from the same USB flash drive you used to install it?
Comment 2 Massimiliano L 2024-06-13 12:02:33 UTC
(In reply to Nate Graham from comment #1)
> The issue of the busy indicator being misplaced is Bug 488267. As for the
> functional issue, does it *ever* find anything? Like, after, say, 30
> minutes? Or is it still stuck at that point?
> 
> If so, does the issue reproduce in a new clean user account on the same
> machine?
> 
> If so, does the issue reproduce in a live session of Fedora 40, like from
> the same USB flash drive you used to install it?

I can reproduce the issue on both my installations, a desktop and a laptop. A newly created user is equally affected. I will try with a live session over the weekend.
Comment 3 Nate Graham 2024-06-13 15:42:36 UTC
I think I can reproduce the bug:

1. Launch Discover
2. *Immediately* search for something that should return no results (like "jfjlkdsjflkdsjf")

It says "still looking" forever.

Once it's in this state, all the next searches work properly. I also notice that only the first broken search suffers from Bug 488267; on subsequent searches, it's positioned correctly. Could be a clue.
Comment 4 Harald Sitter 2024-06-19 12:26:29 UTC
For me timing doesn't matter. As long as the kns backend is loaded any invalid search never finishes.
Comment 5 cwo 2024-07-16 14:46:47 UTC
*** Bug 490173 has been marked as a duplicate of this bug. ***