microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.33k stars 6.55k forks source link

PT Run doesn't find Applications but .lnk (no windows store apps) #6665

Closed phob closed 4 years ago

phob commented 4 years ago

ℹ Computer information

📝 Provide detailed reproduction steps (if any)

✔️ Expected result

image

❌ Actual result

image


image


image

dsrivastavv commented 4 years ago

Might be related to #6533. @phob Can you please share logs at %userprofile%/appdata/local/microsoft/powertoys/powertoys run/logs ?

phob commented 4 years ago

Sure. @somil55 `2020-09-16 01:07:25.6910|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json>> 2020-09-16 01:07:25.7397|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json>> 2020-09-16 01:07:25.7646|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json>> 2020-09-16 01:07:25.7646|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json>> 2020-09-16 01:07:25.7926|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json>> 2020-09-16 01:07:25.8086|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json>> 2020-09-16 01:07:25.8086|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json>> 2020-09-16 01:07:25.8309|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json>> 2020-09-16 01:07:25.8904|ERROR||JsonStorage.Save|Error in saving data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json>.Save|The process cannot access the file 'C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json' because it is being used by another process. 2020-09-16 01:07:25.8904|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json>> 2020-09-16 01:07:25.9145|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\IndexerSettings.json>> 2020-09-16 01:07:25.9145|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\IndexerSettings.json>> 2020-09-16 01:07:25.9318|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\ShellPluginSettings.json>> 2020-09-16 01:07:25.9327|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\ShellPluginSettings.json>> 2020-09-16 01:07:25.9499|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Uri\UriSettings.json>> 2020-09-16 01:07:25.9499|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Uri\UriSettings.json>> 2020-09-16 01:07:25.9941|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\pho\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache>> 2020-09-16 17:34:02.9344|INFO|App.OnStartup|Begin PowerToys Run startup ---------------------------------------------------- 2020-09-16 17:34:02.9673|INFO|App.OnStartup|Runtime info: Version: 0.21.1.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True 2020-09-16 17:34:03.4375|ERROR|ImageLoader.Load|-------------------------- Begin exception -------------------------- 2020-09-16 17:34:03.4375|ERROR|ImageLoader.Load|Failed to get thumbnail for C:\Users\pho\Desktop\Old Firefox Data\wa6ydyk4.default-1510770757294\weave 2020-09-16 17:34:03.4519|ERROR|ImageLoader.Load|Exception full name:

2020-09-16 17:34:03.4609|ERROR|ImageLoader.Load|Exception message: 2020-09-16 17:34:03.5042|ERROR|ImageLoader.Load|Exception stack trace: < at Wox.Infrastructure.Image.WindowsThumbnailProvider.GetHBitmap(String fileName, Int32 width, Int32 height, ThumbnailOptions options) at Wox.Infrastructure.Image.WindowsThumbnailProvider.GetThumbnail(String fileName, Int32 width, Int32 height, ThumbnailOptions options) at Wox.Infrastructure.Image.ImageLoader.LoadInternal(String path, Boolean loadFullImage)> 2020-09-16 17:34:03.5107|ERROR|ImageLoader.Load|Exception source: 2020-09-16 17:34:03.5107|ERROR|ImageLoader.Load|Exception target site: 2020-09-16 17:34:03.5317|ERROR|ImageLoader.Load|Exception HResult: <-2147467259> 2020-09-16 17:34:03.5317|ERROR|ImageLoader.Load|Exception full name: 2020-09-16 17:34:03.5472|ERROR|ImageLoader.Load|Exception message: 2020-09-16 17:34:03.5472|ERROR|ImageLoader.Load|Exception stack trace: <> 2020-09-16 17:34:03.5621|ERROR|ImageLoader.Load|Exception source: <> 2020-09-16 17:34:03.5718|ERROR|ImageLoader.Load|Exception target site: <> 2020-09-16 17:34:03.5718|ERROR|ImageLoader.Load|Exception HResult: <-2147483638> 2020-09-16 17:34:03.5889|ERROR|ImageLoader.Load|-------------------------- End exception -------------------------- 2020-09-16 17:34:04.0358|INFO|ImageLoader.Initialize|Preload images cost <655ms> 2020-09-16 17:34:04.0428|INFO|ImageLoader.Initialize|Number of preload images is <27>, Images Number: 26, Unique Items 17 2020-09-16 17:34:05.1519|INFO|Wox.Infrastructure.Alphabet.Initialize|Preload pinyin cache <65ms> 2020-09-16 17:34:05.1519|INFO|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination<0> 2020-09-16 17:34:08.6547|ERROR||------------- BEGIN Microsoft.Plugin.Program exception ------------- 2020-09-16 17:34:08.6547|ERROR|| Exception full name: System.IO.FileNotFoundException Error status: UNKNOWN Class name: Win32 Calling method: LnkProgram Program path: C:\Users\pho\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk InnerException number: 1 Exception message: The system cannot find the file specified. (0x80070002) Exception error type: HResult -2147024894 Exception thrown in called method: Void Resolve(Accessibility._RemotableHandle ByRef, SLR_FLAGS) Possible interpretation of the error: An unexpected error occurred in the calling method LnkProgram Possible resolution: Not yet known 2020-09-16 17:34:08.6675|ERROR||------------- END Microsoft.Plugin.Program exception ------------- 2020-09-16 17:34:08.6675|ERROR||------------- BEGIN Microsoft.Plugin.Program exception ------------- 2020-09-16 17:34:08.6675|ERROR|| Exception full name: System.Runtime.InteropServices.COMException Error status: KNOWN Class name: Win32 Calling method: LnkProgram 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: An unexpected error occurred in the calling method LnkProgram Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded 2020-09-16 17:34:08.6875|ERROR||------------- END Microsoft.Plugin.Program exception ------------- 2020-09-16 17:34:14.3163|ERROR|PluginsLoader.CSharpPlugins|-------------------------- Begin exception -------------------------- 2020-09-16 17:34:14.3241|ERROR|PluginsLoader.CSharpPlugins|Can't create instance for 2020-09-16 17:34:14.3241|ERROR|PluginsLoader.CSharpPlugins|Exception full name: 2020-09-16 17:34:14.3399|ERROR|PluginsLoader.CSharpPlugins|Exception message: 2020-09-16 17:34:14.3399|ERROR|PluginsLoader.CSharpPlugins|Exception stack trace: < at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor) at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type) at Wox.Core.Plugin.PluginsLoader.<>c__DisplayClass2_1.b__1()> 2020-09-16 17:34:14.3618|ERROR|PluginsLoader.CSharpPlugins|Exception source: 2020-09-16 17:34:14.3698|ERROR|PluginsLoader.CSharpPlugins|Exception target site: 2020-09-16 17:34:14.3698|ERROR|PluginsLoader.CSharpPlugins|Exception HResult: <-2146232828> 2020-09-16 17:34:14.3876|ERROR|PluginsLoader.CSharpPlugins|Exception full name: 2020-09-16 17:34:14.3876|ERROR|PluginsLoader.CSharpPlugins|Exception message: 2020-09-16 17:34:14.4119|ERROR|PluginsLoader.CSharpPlugins|Exception stack trace: < at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(Task[] tasks) at Microsoft.Plugin.Program.Main..ctor()> 2020-09-16 17:34:14.4199|ERROR|PluginsLoader.CSharpPlugins|Exception source: 2020-09-16 17:34:14.4199|ERROR|PluginsLoader.CSharpPlugins|Exception target site: 2020-09-16 17:34:14.4383|ERROR|PluginsLoader.CSharpPlugins|Exception HResult: <-2146233088> 2020-09-16 17:34:14.4383|ERROR|PluginsLoader.CSharpPlugins|Exception full name: 2020-09-16 17:34:14.4545|ERROR|PluginsLoader.CSharpPlugins|Exception message: 2020-09-16 17:34:14.4686|ERROR|PluginsLoader.CSharpPlugins|Exception stack trace: < at Windows.ApplicationModel.Package.get_InstalledLocation() at Microsoft.Plugin.Program.Programs.PackageWrapper.GetWrapperFromPackage(Package package) at Microsoft.Plugin.Program.Programs.PackageManagerWrapper.FindPackagesForCurrentUser() at Microsoft.Plugin.Program.Programs.UWP.CurrentUserPackages() at Microsoft.Plugin.Program.Programs.UWP.All() at Microsoft.Plugin.Program.Storage.PackageRepository.IndexPrograms() at Wox.Infrastructure.Stopwatch.Normal(String message, Action action) at Microsoft.Plugin.Program.Main.<.ctor>b__10_1() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)> 2020-09-16 17:34:14.4686|ERROR|PluginsLoader.CSharpPlugins|Exception source: 2020-09-16 17:34:14.4863|ERROR|PluginsLoader.CSharpPlugins|Exception target site: 2020-09-16 17:34:14.4863|ERROR|PluginsLoader.CSharpPlugins|Exception HResult: <-2147024891> 2020-09-16 17:34:14.4988|ERROR|PluginsLoader.CSharpPlugins|-------------------------- End exception -------------------------- `
dsrivastavv commented 4 years ago

@phob Can you please follow the steps given in this comment and see if this fixes your issue?

phob commented 4 years ago

@somil55 That worked for me as well. Thanks for clearing and sorry for the seperated report. I checked back nearly every day some weeks ago if someone had reported this bug and no one did and never checked again opon opening this bug.