WinDynamicDesktop icon indicating copy to clipboard operation
WinDynamicDesktop copied to clipboard

Config becomes corrupt when computer crashes

Open FrozenSoda opened this issue 7 years ago • 2 comments

When WinDynamicDesktop is running, and the computer crashes, due to a power outage for instance, the config file becomes corrupt (filled with NUL signs), which throws an error on application start:

[2019-07-23 10:00:52.250] System.NullReferenceException: Object reference not set to an instance of an object.
   at WinDynamicDesktop.JsonConfig.LoadConfig()
   at WinDynamicDesktop.AppContext..ctor(String[] args)
   at WinDynamicDesktop.Program.Main(String[] args)

Windows version: Windows 10 1903 WinDynamicDesktop version: 3.3.0 UWP

Maybe perform some null checks after loading the config to make sure it's not corrupted, and store a backup config that can be restored if this happens (that is updated when the normal config file is updated).

FrozenSoda avatar Jul 23 '19 10:07 FrozenSoda

[Google Translate] You can reinstall the application instead.

MD-DeCode avatar Jul 24 '19 18:07 MD-DeCode

Fixed by #161, thanks @Senexis

t1m0thyj avatar Oct 02 '19 03:10 t1m0thyj