Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

BUG: When inputting 'w', the window will freeze for a few seconds

Open cethink opened this issue 3 months ago • 18 comments

Checks

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

  • [x] I am using the latest version of Flow Launcher.

  • [ ] I am using the prerelease version of Flow Launcher.

Problem Description

As title.

To Reproduce

Just enter 'w'.

Screenshots

Image

Flow Launcher Version

2.0.0

Windows Build Number

26100.6584

Error Log

cethink avatar Sep 18 '25 10:09 cethink

It's the same when inputting 'f'. Let me check again.

cethink avatar Sep 18 '25 10:09 cethink

It seems that entering any random character will cause a freeze for a while. I have already cleared the logs, and no logs were generated during the freeze.

cethink avatar Sep 18 '25 10:09 cethink

Can you check if this can help?

https://ci.appveyor.com/project/JohnTheGr8/flow-launcher/builds/52763337

Jack251970 avatar Sep 18 '25 10:09 Jack251970

I tried it out. The first time I input something, it freezes for a moment. If I input again within a short time, it doesn't freeze. But if I input again after a while, it freezes again.

In addition, when clearing the cache, if it has already been cleared, trying to clear it again will result in an error:


Flow Launcher version: 2.0.0
OS Version: 26100.6584
IntPtr Length: 8
x64: True

Python Path: C:\Users\Octo\.pyenv\pyenv-win\versions\3.13.3\pythonw.exe
Node Path: C:\Users\Octo\.nvmd\bin\node.exe

Date: 09/18/2025 18:56:27
Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Octo\AppData\Roaming\FlowLauncher\Cache\Plugins'.
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, Boolean isNormalized, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
   at System.IO.Enumeration.FileSystemEnumerableFactory.DirectoryInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at System.IO.DirectoryInfo.EnumerateDirectories(String searchPattern, SearchOption searchOption)
   at Flow.Launcher.SettingPages.ViewModels.SettingsPaneAboutViewModel.ClearCacheFolder() in C:\projects\flow-launcher\Flow.Launcher\SettingPages\ViewModels\SettingsPaneAboutViewModel.cs:line 235
   at Flow.Launcher.SettingPages.ViewModels.SettingsPaneAboutViewModel.AskClearCacheFolderConfirmation() in C:\projects\flow-launcher\Flow.Launcher\SettingPages\ViewModels\SettingsPaneAboutViewModel.cs:line 126
   at CommunityToolkit.Mvvm.Input.RelayCommand.Execute(Object parameter)
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

cethink avatar Sep 18 '25 11:09 cethink

I tried it out. The first time I input something, it freezes for a moment. If I input again within a short time, it doesn't freeze. But if I input again after a while, it freezes again.

It seems that PR cannot resolve your issue.

In addition, when clearing the cache, if it has already been cleared, trying to clear it again will result in an error:

Will fix it in another PR.

Jack251970 avatar Sep 18 '25 11:09 Jack251970

Could you attach a demo video?

Jack251970 avatar Sep 20 '25 06:09 Jack251970

Bad luck, I'll record it later to take a look :(

https://github.com/user-attachments/assets/bde498fa-dc2f-4116-943a-4e8d64602203

Flow.Launcher.2025-09-20.log

cethink avatar Sep 20 '25 06:09 cethink

The same situation as above has happened again.

cethink avatar Sep 20 '25 11:09 cethink

Image

I removed this option, let's take another look.

cethink avatar Sep 20 '25 11:09 cethink

The problem remains, and

Image

cethink avatar Sep 20 '25 12:09 cethink

The problem remains, and

Image

Check your network please

Jack251970 avatar Sep 20 '25 12:09 Jack251970

Image Image

I checked for updates about ten minutes ago, and it succeeded immediately.

I turned on the system proxy and this address also went through the proxy. I'll turn off the proxy and check again.

cethink avatar Sep 20 '25 12:09 cethink

Still...

cethink avatar Sep 20 '25 13:09 cethink

@cethink Could you please use this version, enable Debug log level and then test it again? And please upload your log file. Thanks!

https://ci.appveyor.com/project/JohnTheGr8/flow-launcher/builds/52763337/artifacts

Image

Jack251970 avatar Sep 20 '25 17:09 Jack251970

Ok

cethink avatar Sep 20 '25 23:09 cethink

It just got stuck twice in a row. The first time lasted about one minute, and the second time lasted about ten minutes.

Flow.Launcher.2025-09-21.log

cethink avatar Sep 21 '25 14:09 cethink

重装一下试一试呢?换一个盘装,我感觉可能是ssd读写的问题

Shiman-Zhu avatar Sep 26 '25 02:09 Shiman-Zhu

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh

github-actions[bot] avatar Nov 27 '25 02:11 github-actions[bot]