X2CommunityCore / xcom2-launcher

The Alternative Mod Launcher (AML) is a replacement for the default game launchers from XCOM 2 and XCOM Chimera Squad.
GNU General Public License v3.0
357 stars 52 forks source link

Corrupted/invalid settings.json #206

Closed RevZero closed 4 years ago

RevZero commented 4 years ago

According to Sentry events and several reports from users, it can happen that the settings.json file gets corrupted.
There is no clear indication why and when this happens so far. It could be caused by asynchronous changes to the Settings class data while it is being serialized.

This has been an issue at least since 1.3.2. Probably earlier but mostly unnoticed due to a lack of Sentry error reporting.

Also see #169, #214

sentry-io[bot] commented 4 years ago

List of Sentry issues that are likely related. Depending on where the JSON data is missing it causes different serialization exceptions:

Sentry issue: XCOM2-LAUNCHER-4C

Sentry issue: XCOM2-LAUNCHER-5X

Sentry issue: XCOM2-LAUNCHER-2B

Sentry issue: XCOM2-LAUNCHER-5W