microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.01k stars 6.43k forks source link

PowerLauncher - System.NullReferenceException: Object reference not set to an instance of an object. #5798

Closed stanciuadrian closed 4 years ago

stanciuadrian commented 4 years ago

ℹ Computer information

📝 Provide detailed reproduction steps (if any)

I started updating .NET Core to 5 preview 7 (possibly not related). Got an exception screen.

✔️ Expected result

Not getting an exception screen

❌ Actual result

This log fragment:

2020-08-08 08:05:20.3533|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json>> 2020-08-08 08:05:20.3637|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json>> 2020-08-08 08:05:20.3637|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json>> 2020-08-08 08:05:20.3919|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json>> 2020-08-08 08:05:20.3919|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json>> 2020-08-08 08:05:20.4129|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json>> 2020-08-08 08:05:20.4260|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json>> 2020-08-08 08:05:20.4498|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache>> 2020-08-08 08:05:20.4598|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache>> 2020-08-08 08:05:20.4691|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json>> 2020-08-08 08:05:20.4691|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\adi\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache>> 2020-08-08 08:05:20.5279|FATAL|UnHandledException|

Exception

System.NullReferenceException: Object reference not set to an instance of an object.
   Source: PowerLauncher
   TargetAssembly: PowerLauncher, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null
   TargetModule: PowerLauncher.dll
   TargetSite: Void Dispose(Boolean)
   at PowerLauncher.ViewModel.MainViewModel.Dispose(Boolean disposing)
   at PowerLauncher.ViewModel.MainViewModel.Dispose()
   at PowerLauncher.App.<>c__DisplayClass22_0.<Dispose>b__0()
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
   at PowerLauncher.App.Dispose(Boolean disposing)
   at PowerLauncher.App.Dispose()
   at PowerLauncher.App.<RegisterExitEvents>b__17_2(Object s, SessionEndingCancelEventArgs e)
   at System.Windows.Application.OnSessionEnding(SessionEndingCancelEventArgs e)
   at System.Windows.Application.WmQueryEndSession(IntPtr lParam, IntPtr& refInt)
   at System.Windows.Application.AppFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(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)

Environment

Assemblies - PowerLauncher

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

htcfreek commented 4 years ago

Should be fixed with 0.20.1. Please update.

enricogior commented 4 years ago

Closing since it's supposed to be fixed, please reopen if not. Thanks