Closed dsrivastavv closed 3 years ago
Program plugin fails to load if an unhandled error occurs during loading of Packaged apps. This was reported in logs shared by @MaximeVts in #6533.
The following is stack trace of the error :
2020-09-13 18:40:00.2441|ERROR|PluginsLoader.CSharpPlugins|-------------------------- Begin exception -------------------------- 2020-09-13 18:40:00.2441|ERROR|PluginsLoader.CSharpPlugins|Can't create instance for <Program> 2020-09-13 18:40:00.2761|ERROR|PluginsLoader.CSharpPlugins|Exception full name: <System.Reflection.TargetInvocationException> 2020-09-13 18:40:00.2980|ERROR|PluginsLoader.CSharpPlugins|Exception message: <Exception has been thrown by the target of an invocation.> 2020-09-13 18:40:00.3366|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.<CSharpPlugins>b__1()> 2020-09-13 18:40:00.3589|ERROR|PluginsLoader.CSharpPlugins|Exception source: <System.Private.CoreLib> 2020-09-13 18:40:00.3757|ERROR|PluginsLoader.CSharpPlugins|Exception target site: <System.Object CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)> 2020-09-13 18:40:00.3911|ERROR|PluginsLoader.CSharpPlugins|Exception HResult: <-2146232828> 2020-09-13 18:40:00.4151|ERROR|PluginsLoader.CSharpPlugins|Exception full name: <System.AggregateException> 2020-09-13 18:40:00.4353|ERROR|PluginsLoader.CSharpPlugins|Exception message: <One or more errors occurred. (The system cannot find the path specified. (0x80070003))> 2020-09-13 18:40:00.4566|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-13 18:40:00.4768|ERROR|PluginsLoader.CSharpPlugins|Exception source: <System.Private.CoreLib> 2020-09-13 18:40:00.5013|ERROR|PluginsLoader.CSharpPlugins|Exception target site: <Void ThrowAggregateException(System.Collections.Generic.List`1[System.Exception])> 2020-09-13 18:40:00.5261|ERROR|PluginsLoader.CSharpPlugins|Exception HResult: <-2146233088> 2020-09-13 18:40:00.5481|ERROR|PluginsLoader.CSharpPlugins|Exception full name: <System.IO.DirectoryNotFoundException> 2020-09-13 18:40:00.5697|ERROR|PluginsLoader.CSharpPlugins|Exception message: <The system cannot find the path specified. (0x80070003)> 2020-09-13 18:40:00.5932|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-13 18:40:00.6133|ERROR|PluginsLoader.CSharpPlugins|Exception source: <Windows.ApplicationModel> 2020-09-13 18:40:00.6331|ERROR|PluginsLoader.CSharpPlugins|Exception target site: <Windows.Storage.StorageFolder get_InstalledLocation()> 2020-09-13 18:40:00.6535|ERROR|PluginsLoader.CSharpPlugins|Exception HResult: <-2147024893> 2020-09-13 18:40:00.6535|ERROR|PluginsLoader.CSharpPlugins|-------------------------- End exception --------------------------
Fixed in 0.23 of PowerToys. https://github.com/microsoft/PowerToys/releases/
Program plugin fails to load if an unhandled error occurs during loading of Packaged apps. This was reported in logs shared by @MaximeVts in #6533.
The following is stack trace of the error :