microsoft / PowerToys

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

Error after doing a system restore #8904

Closed MrIncUK closed 3 years ago

MrIncUK commented 3 years ago

Did a system restore from a backup and now PT reports an error on boot up/login. See attached log file.

ℹ Computer information

📷 Screenshots

image

LOGFILE

2021-01-03 16:55:23.1590|INFO|PowerLauncher.App.OnStartup| Message: Begin PowerToys Run startup ---------------------------------------------------- Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::83

2021-01-03 16:55:23.1809|INFO|PowerLauncher.App.OnStartup| Message: Runtime info: Version: 0.29.3.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::84

2021-01-03 16:55:23.2803|INFO|Wox.Infrastructure.Storage.BinaryStorage1[[System.Collections.Generic.Dictionary2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TryLoad| Message: Deleting cached data at <C:\Users\Bob\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache> Area: Wox.Infrastructure.Storage.BinaryStorage1[System.Collections.Generic.Dictionary2[System.String,System.Int32]].TryLoad Source Path: S:\src\modules\launcher\Wox.Infrastructure\Storage\BinaryStorage`1.cs::60

2021-01-03 16:55:23.2807|INFO|Wox.Infrastructure.Storage.BinaryStorage1[[System.Collections.Generic.Dictionary2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TryLoad| Message: Cache file not exist, load default data Area: Wox.Infrastructure.Storage.BinaryStorage1[System.Collections.Generic.Dictionary2[System.String,System.Int32]].TryLoad Source Path: S:\src\modules\launcher\Wox.Infrastructure\Storage\BinaryStorage`1.cs::82

2021-01-03 16:55:23.2807|INFO|Wox.Infrastructure.Storage.BinaryStorage1[[System.Collections.Generic.Dictionary2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Save| Message: Saving cached data at <C:\Users\Bob\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache> Area: Wox.Infrastructure.Storage.BinaryStorage1[System.Collections.Generic.Dictionary2[System.String,System.Int32]].Save Source Path: S:\src\modules\launcher\Wox.Infrastructure\Storage\BinaryStorage`1.cs::153

2021-01-03 16:55:23.3189|INFO|Wox.Infrastructure.Storage.WoxJsonStorage1[[Wox.Infrastructure.UserSettings.PowerToysRunSettings, Wox.Infrastructure, Version=0.29.3.0, Culture=neutral, PublicKeyToken=null]].Load| Message: Deleting cached data at <C:\Users\Bob\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\PowerToysRunSettings.json> Area: Wox.Infrastructure.Storage.WoxJsonStorage1[Wox.Infrastructure.UserSettings.PowerToysRunSettings].Load Source Path: S:\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::59

2021-01-03 16:55:23.3307|INFO|Wox.Infrastructure.Stopwatch.Normal| Message: |ImageLoader.Initialize|Preload images cost <15ms> Area: Wox.Infrastructure.Stopwatch.Normal Source Path: S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50

2021-01-03 16:55:23.3307|INFO|Wox.Infrastructure.Image.ImageLoader+<>c.Initialize| Message: Number of preload images is <0>, Images Number: 4, Unique Items 4 Area: Wox.Infrastructure.Image.ImageLoader+<>c.Initialize Source Path: S:\src\modules\launcher\Wox.Infrastructure\Image\ImageLoader.cs::74

2021-01-03 16:55:23.3497|FATAL|UnHandledException|

Exception

System.BadImageFormatException: Could not load file or assembly 'System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. An attempt was made to load a program with an incorrect format.
   Source: Newtonsoft.Json
   TargetAssembly: Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
   TargetModule: Newtonsoft.Json.dll
   TargetSite: Newtonsoft.Json.Serialization.JsonContract CreateContract(System.Type)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get(TKey key)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContract(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Wox.Infrastructure.Storage.JsonStorage`1.LoadDefault()
   at Wox.Infrastructure.Storage.JsonStorage`1.Load()
   at PowerLauncher.ViewModel.SettingWindowViewModel..ctor()
   at PowerLauncher.App.<>c__DisplayClass14_0.<OnStartup>b__0()
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
   at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   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

2021-01-03 16:55:32.6877|INFO|PowerLauncher.App.Dispose| Message: Start PowerToys Run Exit----------------------------------------------------
Area: PowerLauncher.App.Dispose Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::179

2021-01-03 16:55:32.6877|INFO|PowerLauncher.App.Dispose| Message: End PowerToys Run Exit ----------------------------------------------------
Area: PowerLauncher.App.Dispose Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::199

2021-01-03 16:55:32.6877|INFO|Wox.Infrastructure.Stopwatch.Normal| Message: |App.OnExit|Exit cost <2ms> Area: Wox.Infrastructure.Stopwatch.Normal Source Path: S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50

2021-01-03 17:18:02.9068|INFO|PowerLauncher.App.OnStartup| Message: Begin PowerToys Run startup ---------------------------------------------------- Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::83

2021-01-03 17:18:02.9636|INFO|PowerLauncher.App.OnStartup| Message: Runtime info: Version: 0.29.3.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::84

2021-01-03 17:18:03.2772|INFO|Wox.Infrastructure.Stopwatch.Normal| Message: |ImageLoader.Initialize|Preload images cost <45ms> Area: Wox.Infrastructure.Stopwatch.Normal Source Path: S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50

2021-01-03 17:18:03.2772|INFO|Wox.Infrastructure.Image.ImageLoader+<>c.Initialize| Message: Number of preload images is <0>, Images Number: 4, Unique Items 4 Area: Wox.Infrastructure.Image.ImageLoader+<>c.Initialize Source Path: S:\src\modules\launcher\Wox.Infrastructure\Image\ImageLoader.cs::74

2021-01-03 17:18:03.2772|FATAL|UnHandledException|

Exception

System.BadImageFormatException: Could not load file or assembly 'System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. An attempt was made to load a program with an incorrect format.
   Source: Newtonsoft.Json
   TargetAssembly: Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
   TargetModule: Newtonsoft.Json.dll
   TargetSite: Newtonsoft.Json.Serialization.JsonContract CreateContract(System.Type)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get(TKey key)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContract(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Wox.Infrastructure.Storage.JsonStorage`1.LoadDefault()
   at Wox.Infrastructure.Storage.JsonStorage`1.Load()
   at PowerLauncher.ViewModel.SettingWindowViewModel..ctor()
   at PowerLauncher.App.<>c__DisplayClass14_0.<OnStartup>b__0()
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
   at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   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

2021-01-03 17:19:50.9399|INFO|PowerLauncher.App.Dispose| Message: Start PowerToys Run Exit----------------------------------------------------
Area: PowerLauncher.App.Dispose Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::179

2021-01-03 17:19:50.9399|INFO|PowerLauncher.App.Dispose| Message: End PowerToys Run Exit ----------------------------------------------------
Area: PowerLauncher.App.Dispose Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::199

2021-01-03 17:19:50.9399|INFO|Wox.Infrastructure.Stopwatch.Normal| Message: |App.OnExit|Exit cost <3ms> Area: Wox.Infrastructure.Stopwatch.Normal Source Path: S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50

2021-01-03 17:21:56.2495|INFO|PowerLauncher.App.OnStartup| Message: Begin PowerToys Run startup ---------------------------------------------------- Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::83

2021-01-03 17:21:56.2718|INFO|PowerLauncher.App.OnStartup| Message: Runtime info: Version: 0.29.3.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::84

2021-01-03 17:21:56.4464|INFO|Wox.Infrastructure.Stopwatch.Normal| Message: |ImageLoader.Initialize|Preload images cost <15ms> Area: Wox.Infrastructure.Stopwatch.Normal Source Path: S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50

2021-01-03 17:21:56.4464|INFO|Wox.Infrastructure.Image.ImageLoader+<>c.Initialize| Message: Number of preload images is <0>, Images Number: 4, Unique Items 4 Area: Wox.Infrastructure.Image.ImageLoader+<>c.Initialize Source Path: S:\src\modules\launcher\Wox.Infrastructure\Image\ImageLoader.cs::74

2021-01-03 17:21:56.4651|FATAL|UnHandledException|

Exception

System.BadImageFormatException: Could not load file or assembly 'System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. An attempt was made to load a program with an incorrect format.
   Source: Newtonsoft.Json
   TargetAssembly: Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
   TargetModule: Newtonsoft.Json.dll
   TargetSite: Newtonsoft.Json.Serialization.JsonContract CreateContract(System.Type)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get(TKey key)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContract(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Wox.Infrastructure.Storage.JsonStorage`1.LoadDefault()
   at Wox.Infrastructure.Storage.JsonStorage`1.Load()
   at PowerLauncher.ViewModel.SettingWindowViewModel..ctor()
   at PowerLauncher.App.<>c__DisplayClass14_0.<OnStartup>b__0()
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
   at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   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

2021-01-03 17:22:13.9073|INFO|PowerLauncher.App.Dispose| Message: Start PowerToys Run Exit----------------------------------------------------
Area: PowerLauncher.App.Dispose Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::179

2021-01-03 17:22:13.9089|INFO|PowerLauncher.App.Dispose| Message: End PowerToys Run Exit ----------------------------------------------------
Area: PowerLauncher.App.Dispose Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::199

2021-01-03 17:22:13.9089|INFO|Wox.Infrastructure.Stopwatch.Normal| Message: |App.OnExit|Exit cost <2ms> Area: Wox.Infrastructure.Stopwatch.Normal Source Path: S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50

enricogior commented 3 years ago

@MrIncUK

MrIncUK commented 3 years ago

@MrIncUK

Thank you!

That sorted the problem.