Skip to content

Handle corrupted "user.config" #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
unitycoder opened this issue Oct 30, 2022 · 1 comment
Open

Handle corrupted "user.config" #99

unitycoder opened this issue Oct 30, 2022 · 1 comment

Comments

@unitycoder
Copy link
Owner

unitycoder commented Oct 30, 2022

Had computer crash/BSOD, unitylauncherpro user.config file was corrupted and then application fails to launch.

info:
https://www.codeproject.com/Articles/30216/Handling-Corrupt-user-config-Settings
https://stackoverflow.com/questions/42708868/user-config-corruption

error:
System.Configuration.ConfigurationErrorsException: 'Configuration system failed to initialize'

unitycoder added a commit that referenced this issue Dec 22, 2022
* dev: (73 commits)
  Changed: get unity installs returns list instead of array, Editors: add uninstall context menu (fix #103)
  updates: add download & install button, add null version checks
  upgrade window: add Download & Install button, show red outline if project version is missing, adjust ui aligments
  fix changed download urls for Alpha, Beta
  fix: null ref is explore folder, without projects on the list (or filtered by search)
  rearrange settings panel (fix #40), set bigger minimum window width
  hide git branch text on streamermode
  if press up/down while tabcontrol is focused, move selection to grid
  recent project: disable opening project from datagrid header or scrollbar double clicks (fix #106)
  editors: add download win/linux dedicated server modules, new project: add tooltip if projectname already exists
  editors: add IL2CPP module download context menu
  fix null version code error from unity editor preview builds, add: browse Scripts folder parent, if missing scripts folder.
  improve release notes url parsing
  better default settings (window size, single instance, humanfriendly dates, override 40 max projects)
  fix: removing manually added project (without it being opened first)
  new project: autoselect win64 if no matching platform in selected unity, disable process hidden window on launch (whole editor was invisible)
  add "win64" as default platform, add releasetype (lts/alpha/beta) to new project dialog, move releasetype checking to Tools, fix preferred version initial value from "none" to null,
  fix launching empty folder from context menu, without preferred unity version
  add initscript for new quick projects started without name dialog, hide console window on process start (it was visible in unity 2023, not visible in older versions(?)), set enableProjectRename and showTargetPlatform settings as true by default)
  handle corrupt user config, take backup of user config (fix #99)
  ...

# Conflicts:
#	UnityLauncherPro/Tools.cs (using dev)
@unitycoder
Copy link
Owner Author

restore backup can still fail, if backup file itself is broken..
need to save backup when it works and confirm that its xml file.

  • validate backup file when creating it
  • create secondary backup file?
  • allow exporting settings to file (or basically, button to browse config folder, so user can take manual copy)
  • dialog needs 3rd option, "reset settings", because if backup file is also broken, cannot get past this dialog, until go delete the file manually

Image

@unitycoder unitycoder reopened this Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant