lin-ycv / EverythingPowerToys

Everything search plugin for PowerToys Run
Eclipse Public License 2.0
2.33k stars 60 forks source link

Everything becomes slow and sometimes no response when working with Powertoys #137

Open DittoWii opened 1 week ago

DittoWii commented 1 week ago

I installed EverythinPT 0.85.1, with Everything version 1.5a, Powertoys version 0.85.1. Everything is installed in the default path, with alpha disabled. They work well in the beginning, but when I search more frequently, Everything becomes slow and sometimes no response. But using Everything solely is fine. Sometimes the search results are already returned by Everything, but PowerToys is still no response. I am glad to provide more info if necessary.

lin-ycv commented 1 week ago

Please provide logs.

DittoWii commented 1 week ago

Where can i get them?

lin-ycv commented 1 week ago

Logs can be generated by right clicking the taskbar icon > Report Bug or be found at %localappdata%\Microsoft\PowerToys\PowerToys Run\Logs

c0nstexpr commented 1 week ago

你的log含有个人信息,你得注意一下 @DittoWii 我能看到的报错信息在这部分

Exception full name : System.ArgumentNullException Exception message : Value cannot be null. (Parameter 'path1') Exception stack trace: at System.ArgumentNullException.Throw(String paramName) at Community.PowerToys.Run.Plugin.Everything.Everything.Query(String query, Settings setting)+MoveNext() at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection) at Community.PowerToys.Run.Plugin.Everything.Main.Query(Query query, Boolean delayedExecution) Exception source : System.Private.CoreLib Exception target site: Void Throw(System.String) Exception HResult : -2147467261 -------------------------- End exception -------------------------- [2024-10-24 11:37:05.0691] [WARN] [D:\a\_work\1\s\src\modules\launcher\PowerLauncher\Plugin\PluginManager.cs::230] PluginManager.QueryForPlugin Everything. Query cost - 1483 milliseconds [2024-10-24 11:37:05.1422] [ERROR] [D:\a\_work\1\s\src\modules\launcher\Wox.Infrastructure\Image\WindowsThumbnailProvider.cs::147] -------------------------- Begin exception -------------------------- Message: Error while extracting thumbnail for C:\Users\DittoWii\OneDrive\\...\\***.png Exception full name : System.Runtime.InteropServices.COMException Exception message : 0x8004B205 Exception stack trace: at Wox.Infrastructure.Image.WindowsThumbnailProvider.GetHBitmap(String fileName, Int32 width, Int32 height, ThumbnailOptions options) Exception source : Wox.Infrastructure Exception target site: IntPtr GetHBitmap(System.String, Int32, Int32, Wox.Infrastructure.Image.ThumbnailOptions) Exception HResult : -2147175931 -------------------------- End exception --------------------------
DittoWii commented 1 week ago

@c0nstexpr 十分感谢!我已经删除了评论。但是log文件还可以通过您的quote访问到。如果您方便的话麻烦修改下评论。感谢!

lin-ycv commented 1 week ago

turn off preview, it's trying to download the thumbnail, but there seems to be dome issues with it, so it's hanging. 將preview功能關掉,雲端檔案讀取預覽有時會有些問題 https://github.com/lin-ycv/EverythingPowerToys/wiki/Features#preview

DittoWii commented 1 week ago

turn off preview, it's trying to download the thumbnail, but there seems to be dome issues with it, so it's hanging. 將preview功能關掉,雲端檔案讀取預覽有時會有些問題 https://github.com/lin-ycv/EverythingPowerToys/wiki/Features#preview

Thanks a lot~ I turned off preview, it's still hanging, and i found some other exceptions in log. 感谢! 我尝试关掉了Preview功能,卡顿依然存在。我在log中发现了如下错误:

-------------------------- Begin exception --------------------------
Message: Failed to fetch description for C:\WINDOWS\syswow64\odbcad32.exe, Error HRESULT E_FAIL has been returned from a call to a COM component.

Exception full name  : System.Runtime.InteropServices.COMException
Exception message    : Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception stack trace:
   at Wox.Infrastructure.ShellLinkHelper.IShellLinkW.GetDescription(StringBuilder pszName, Int32 cchMaxName)
   at Wox.Infrastructure.ShellLinkHelper.RetrieveTargetPath(String path)
Exception source     : Wox.Infrastructure
Exception target site: Void GetDescription(System.Text.StringBuilder, Int32)
Exception HResult    : -2147467259
-------------------------- End exception --------------------------

[2024-10-26 10:21:28.0003] [ERROR] [D:\a\_work\1\s\src\modules\launcher\Wox.Infrastructure\ShellLinkHelper.cs::170]
-------------------------- Begin exception --------------------------
Message: Failed to fetch description for C:\PROGRA~2\WINDOW~4\wmplayer.exe, Error HRESULT E_FAIL has been returned from a call to a COM component.

Exception full name  : System.Runtime.InteropServices.COMException
Exception message    : Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception stack trace:
   at Wox.Infrastructure.ShellLinkHelper.IShellLinkW.GetDescription(StringBuilder pszName, Int32 cchMaxName)
   at Wox.Infrastructure.ShellLinkHelper.RetrieveTargetPath(String path)
Exception source     : Wox.Infrastructure
Exception target site: Void GetDescription(System.Text.StringBuilder, Int32)
Exception HResult    : -2147467259
-------------------------- End exception --------------------------
......

-------------------------- Begin exception --------------------------
Message: Everything Exception: {e.Message}
{e.StackTrace}

Exception full name  : System.ArgumentNullException
Exception message    : Value cannot be null. (Parameter 'path1')
Exception stack trace:
   at System.ArgumentNullException.Throw(String paramName)
   at System.IO.Path.Combine(String path1, String path2)
   at Community.PowerToys.Run.Plugin.Everything.Everything.Query(String query, Settings setting)+MoveNext()
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
   at Community.PowerToys.Run.Plugin.Everything.Main.Query(Query query, Boolean delayedExecution)
Exception source     : System.Private.CoreLib
Exception target site: Void Throw(System.String)
Exception HResult    : -2147467261
-------------------------- End exception --------------------------
lin-ycv commented 1 week ago

so the issue is here: https://github.com/lin-ycv/EverythingPowerToys/blob/744be805fb02b4fb34101f051c4ce739442c6e1e/Everything.cs#L135-L137 for some reason the path is null? do you know which file and location is throwing this error? are there some specical characters in the file path or something?

DittoWii commented 1 week ago

Thanks a lot! after tests, no specific paths will lead to this error. generally, the initial two or three searches return results successfully. i will do more tests latter to find the potential problems...