WindowTop / WindowTop-App

Set window on top, make it dark, transparent and more
Other
1.16k stars 69 forks source link

Crash on startup due to corrupt cache.json #138

Closed AdamWHY2K closed 3 years ago

AdamWHY2K commented 3 years ago

7PVQZLGvPA

As you can see above the program crashes on startup.

As far as I can tell this is due to cache.json being corrupted I'll leave a copy of it here corrupt_cache.zip

Fixed by deleting the corrupt cache and letting WindowTop create a new one on next startup.. not sure what is causing the cache to become corrupt though.

gileli121 commented 3 years ago

@AdamWHY2K Thanks for the report. Maybe your hard drive is broken... I can't explain why it will create a corrupted JSON file. Maybe it is a very extreme edge case.

Anyway, it should be easy to fix. I just need to catch the exception of it and handle it

gileli121 commented 3 years ago

@AdamWHY2K Here is a build with a fix for the issue: WindowTop Build 14-09-21_1.zip

The fix should work also in case it happned for the settings.json file

gileli121 commented 3 years ago

Closed. If it will reported again, I will reopen