Flow-Launcher / Flow.Launcher

:mag: Quick file search & app launcher for Windows with community-made plugins
https://flowlauncher.com
MIT License
7.7k stars 300 forks source link

BUG: High memory usage #2940

Open supercam19 opened 2 weeks ago

supercam19 commented 2 weeks ago

Checks

Problem Description

I just installed Flow Launcher onto my laptop running Windows 11, and it is using around 600MB of memory, whereas on my desktop (Windows 10) it only uses about 20MB. What could be the cause of this high memory usage?

To Reproduce

  1. Install Flow Launcher v1.19.0
  2. Observe high memory usage

Screenshots

No response

Flow Launcher Version

1.19.0

Windows Build Number

10.0.22631.3880

Error Log

```shell 13:32:56.2331-04:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 13:32:56.2331-04:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player Legacy.lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 13:32:56.2331-04:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 13:32:56.2907-04:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 13:32:56.2907-04:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 13:32:56.2907-04:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 13:43:14.4483-04:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 13:43:14.4483-04:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player Legacy.lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 13:43:14.4483-04:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 13:43:14.4755-04:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 13:43:14.4755-04:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 13:43:14.4755-04:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 13:52:26.3252-04:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 13:52:26.3252-04:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player Legacy.lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 13:52:26.3252-04:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 13:52:26.3748-04:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 13:52:26.3748-04:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 13:52:26.3748-04:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 18:54:34.6740-04:00 - INFO - App.OnStartup - Begin Flow Launcher startup ---------------------------------------------------- 18:54:34.6740-04:00 - INFO - App.OnStartup - Runtime info: Flow Launcher version: 1.19.0 OS Version: 22631.3880 IntPtr Length: 8 x64: True 18:54:35.3419-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <8ms> 18:54:35.3419-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <6ms> 18:54:35.3419-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <5ms> 18:54:35.3419-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <22ms> 18:54:35.3713-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 18:54:35.3848-04:00 - INFO - ImageLoader.Initialize - Preload images cost <21ms> 18:54:35.3848-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <59ms> 18:54:35.4034-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <64ms> 18:54:35.4034-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <74ms> 18:54:35.4034-04:00 - INFO - ImageLoader.Initialize - Number of preload images is <2>, Images Number: 2, Unique Items 2 18:54:35.4034-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Preload programs cost <22ms> 18:54:35.4034-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload win32 programs <87> 18:54:35.4034-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload uwps <56> 18:54:35.4192-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <79ms> 18:54:35.4665-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <146ms> 18:54:35.4665-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://gcore.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 18:54:35.4665-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 18:54:35.4665-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json 18:54:35.4665-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <147ms> 18:54:35.5034-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <175ms> 18:54:35.6315-04:00 - INFO - CommunityPluginSource.FetchAsync - Loaded 181 plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 18:54:35.6315-04:00 - INFO - CommunityPluginSource.FetchAsync - Loaded 181 plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 18:54:35.6361-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <303ms> 18:54:36.2258-04:00 - INFO - App.OnStartup - Dependencies Info: Python Path: Node Path: 18:54:37.0546-04:00 - INFO - App.OnStartup - End Flow Launcher startup ---------------------------------------------------- 18:54:37.0619-04:00 - INFO - App.OnStartup - Startup cost <2511ms> 18:58:49.1741-04:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 18:58:49.1741-04:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player Legacy.lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 18:58:49.1741-04:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 18:58:49.2212-04:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 18:58:49.2212-04:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 18:58:49.2212-04:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 19:09:01.3053-04:00 - INFO - App.OnStartup - Begin Flow Launcher startup ---------------------------------------------------- 19:09:01.3092-04:00 - INFO - App.OnStartup - Runtime info: Flow Launcher version: 1.19.0 OS Version: 22631.3880 IntPtr Length: 8 x64: True 19:09:01.8480-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <4ms> 19:09:01.8480-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <2ms> 19:09:01.8480-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <2ms> 19:09:01.8480-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <20ms> 19:09:01.8777-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <33ms> 19:09:01.8777-04:00 - INFO - ImageLoader.Initialize - Preload images cost <27ms> 19:09:01.8777-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <39ms> 19:09:01.8872-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 19:09:01.8872-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Preload programs cost <16ms> 19:09:01.8872-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <63ms> 19:09:01.8872-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload win32 programs <88> 19:09:01.8872-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload uwps <56> 19:09:01.8872-04:00 - INFO - ImageLoader.Initialize - Number of preload images is <2>, Images Number: 2, Unique Items 2 19:09:01.9120-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <66ms> 19:09:01.9433-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <109ms> 19:09:01.9532-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <130ms> 19:09:01.9640-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://gcore.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 19:09:01.9640-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 19:09:01.9640-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json 19:09:01.9811-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <153ms> 19:09:02.1010-04:00 - INFO - CommunityPluginSource.FetchAsync - Loaded 181 plugins from https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json 19:09:02.1076-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <264ms> 19:09:02.8398-04:00 - INFO - App.OnStartup - Dependencies Info: Python Path: Node Path: 19:09:03.7240-04:00 - INFO - App.OnStartup - End Flow Launcher startup ---------------------------------------------------- 19:09:03.7391-04:00 - INFO - App.OnStartup - Startup cost <2542ms> 19:10:52.3901-04:00 - INFO - App.OnStartup - Begin Flow Launcher startup ---------------------------------------------------- 19:10:52.3901-04:00 - INFO - App.OnStartup - Runtime info: Flow Launcher version: 1.19.0 OS Version: 22631.3880 IntPtr Length: 8 x64: True 19:10:52.7565-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <6ms> 19:10:52.7565-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <5ms> 19:10:52.7565-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <5ms> 19:10:52.7565-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <22ms> 19:10:52.7734-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 19:10:52.7855-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <38ms> 19:10:52.7855-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <42ms> 19:10:52.7855-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <47ms> 19:10:52.7855-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Preload programs cost <16ms> 19:10:52.7855-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload win32 programs <88> 19:10:52.7855-04:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload uwps <56> 19:10:52.7855-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <48ms> 19:10:52.8197-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <70ms> 19:10:52.8457-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <106ms> 19:10:52.8510-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://gcore.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 19:10:52.8510-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 19:10:52.8510-04:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json 19:10:52.8580-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <113ms> 19:10:53.0035-04:00 - INFO - CommunityPluginSource.FetchAsync - Loaded 181 plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 19:10:53.0104-04:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <262ms> 19:10:53.0938-04:00 - INFO - ImageLoader.Initialize - Preload images cost <305ms> 19:10:53.1035-04:00 - INFO - ImageLoader.Initialize - Number of preload images is <14>, Images Number: 14, Unique Items 14 19:10:53.5072-04:00 - INFO - App.OnStartup - Dependencies Info: Python Path: Node Path: 19:10:54.1494-04:00 - INFO - App.OnStartup - End Flow Launcher startup ---------------------------------------------------- 19:10:54.1695-04:00 - INFO - App.OnStartup - Startup cost <1896ms> ```
jjw24 commented 2 weeks ago

Is the one installed on your Win 10 also v1.19.0?

Memory usage tends to be high during usage when searching for files and browsing the plugin store, but tends to drop down after a while on idle. Does the memory usage drop on win 11?

600mb is still quite unusually excessive, were you searching for files that return a large amount of results? Does it happen again after a restart of flow?

supercam19 commented 2 weeks ago

My Windows 10 machine was running v1.18.0, so I updated it but am still getting normal memory usage amounts.

After a bit of testing on the Windows 11 machine, I found that Flow Launcher would use about 350MB when I started it. Opening the settings would make it rise to ~600mb and scrolling through the plugin store to ~1gb. Even after idling for a while, the memory usage wouldn't drop.

This persists after restarting Flow and the laptop.