question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: Windows search index throws exception when searching

See original GitHub issue

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

Problem Description

Hey. Got a problem similar to https://github.com/Flow-Launcher/Flow.Launcher/issues/1630 Flow shows message ‘Flow.Launcher.Plugin.Explorer.Exceptions.SearchException: Invalid URI: The Authority/Host could not be parsed.’ as first result

Debugged it and I’m seeing that encodedFragmentPath var in WindowsIndex.cs:59 is containing only ‘file:’ and URI ctor fails. Did not dig deeper. Can do if needed, tho. Possible quick fix is just to wrap every result parsing with try-catch and just ignore invalid results, but thats a no-brainer from someone without knowledge on what’s going on there.

Complete exception stack: WindowsIndex Search Exception: Flow.Launcher.Plugin.Explorer.Exceptions.SearchException: Invalid URI: The Authority/Host could not be parsed. ---> System.UriFormatException: Invalid URI: The Authority/Host could not be parsed. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions) at Flow.Launcher.Plugin.Explorer.Search.WindowsIndex.WindowsIndex.ExecuteWindowsIndexSearchAsync(String indexQueryString, String connectionString, CancellationToken token)+MoveNext() in C:\projects\flow-launcher\Plugins\Flow.Launcher.Plugin.Explorer\Search\WindowsIndex\WindowsIndex.cs:line 70 at Flow.Launcher.Plugin.Explorer.Search.WindowsIndex.WindowsIndex.ExecuteWindowsIndexSearchAsync(String indexQueryString, String connectionString, CancellationToken token)+MoveNext() in C:\projects\flow-launcher\Plugins\Flow.Launcher.Plugin.Explorer\Search\WindowsIndex\WindowsIndex.cs:line 70 at Flow.Launcher.Plugin.Explorer.Search.WindowsIndex.WindowsIndex.ExecuteWindowsIndexSearchAsync(String indexQueryString, String connectionString, CancellationToken token)+MoveNext() in C:\projects\flow-launcher\Plugins\Flow.Launcher.Plugin.Explorer\Search\WindowsIndex\WindowsIndex.cs:line 70 at Flow.Launcher.Plugin.Explorer.Search.WindowsIndex.WindowsIndex.ExecuteWindowsIndexSearchAsync(String indexQueryString, String connectionString, CancellationToken token)+MoveNext() in C:\projects\flow-launcher\Plugins\Flow.Launcher.Plugin.Explorer\Search\WindowsIndex\WindowsIndex.cs:line 70 at Flow.Launcher.Plugin.Explorer.Search.WindowsIndex.WindowsIndex.ExecuteWindowsIndexSearchAsync(String indexQueryString, String connectionString, CancellationToken token)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult() at Flow.Launcher.Plugin.Explorer.Search.SearchManager.SearchAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Plugins\Flow.Launcher.Plugin.Explorer\Search\SearchManager.cs:line 129 at Flow.Launcher.Plugin.Explorer.Search.SearchManager.SearchAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Plugins\Flow.Launcher.Plugin.Explorer\Search\SearchManager.cs:line 129 --- End of inner exception stack trace --- at Flow.Launcher.Plugin.Explorer.Search.SearchManager.SearchAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Plugins\Flow.Launcher.Plugin.Explorer\Search\SearchManager.cs:line 129 at Flow.Launcher.Plugin.Explorer.Main.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Plugins\Flow.Launcher.Plugin.Explorer\Main.cs:line 88

To Reproduce

  1. Setup windows search SOMEHOW
  2. enable corresponding plugin, set everything to windows search.
  3. observe.

Screenshots

image

Flow Launcher Version

1.16.0

Windows Build Number

22H2 22621.1992

Error Log

Found nothing of interest there

Issue Analytics

  • State:closed
  • Created a month ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
jjw24commented, Aug 8, 2023

Fixed and available in prerelease.

1reaction
jjw24commented, Aug 7, 2023

Yes agree. Thank you for investigating this.

Could you fire up a pr for this please.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems in Windows Search - Windows Client
Under Find and fix other problems, select Search and Indexing. Run the troubleshooter and select any problems that apply.
Read more >
Windows Search Error 0x80004005 when I use wilcards ...
The directory where I am searching is indexed and I select 'files and content'. If SearchString.Text contains a word, it works properly but...
Read more >
Troubleshoot Windows Search performance
This article discusses common performance issues that affect Windows Search and Search indexing. If you observe general poor performance ...
Read more >
Outlook Search broken due to Windows Search acting up ...
Restart the search service · Navigate to Windows Search configuration · Select “Modify” and unselect “Microsoft Outlook” · Add Outlook back to indexed...
Read more >
Windows Search / Indexing service won't start
Open Control Panel > Programs > Turn Windows features on or off. Uncheck Windows Search and restart Windows.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found