{"action":"created","issue":{"url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/96","labels_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/96/comments","events_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/96/events","html_url":"https://github.com/canton7/SyncTrayzor/issues/96","id":82478642,"number":96,"title":"Crash after update to latest release","user":{"login":"padraigkitterick","id":625622,"avatar_url":"https://avatars.githubusercontent.com/u/625622?v=3","gravatar_id":"","url":"https://api.github.com/users/padraigkitterick","html_url":"https://github.com/padraigkitterick","followers_url":"https://api.github.com/users/padraigkitterick/followers","following_url":"https://api.github.com/users/padraigkitterick/following{/other_user}","gists_url":"https://api.github.com/users/padraigkitterick/gists{/gist_id}","starred_url":"https://api.github.com/users/padraigkitterick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/padraigkitterick/subscriptions","organizations_url":"https://api.github.com/users/padraigkitterick/orgs","repos_url":"https://api.github.com/users/padraigkitterick/repos","events_url":"https://api.github.com/users/padraigkitterick/events{/privacy}","received_events_url":"https://api.github.com/users/padraigkitterick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-29T15:44:17Z","updated_at":"2015-05-29T17:04:07Z","closed_at":null,"body":"I got a prompt to install the latest release today (x64 windows). Clicked the update button and then after the install completed, and everytime I then attempted to run it I got the following stack trace:\r\n\r\nSystem.Xml.XmlException: Root element is missing.\r\n   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)\r\n   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()\r\n   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)\r\n   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)\r\n   at SyncTrayzor.Services.Config.ConfigurationProvider.LoadFromDisk(Configuration defaultConfiguration) in c:\\projects\\synctrayzor\\src\\SyncTrayzor\\Services\\Config\\ConfigurationProvider.cs:line 145\r\n   at SyncTrayzor.Services.Config.ConfigurationProvider.Initialize(Configuration defaultConfiguration) in c:\\projects\\synctrayzor\\src\\SyncTrayzor\\Services\\Config\\ConfigurationProvider.cs:line 85\r\n   at SyncTrayzor.Bootstrapper.Configure() in c:\\projects\\synctrayzor\\src\\SyncTrayzor\\Bootstrapper.cs:line 85\r\n   at Stylet.BootstrapperBase.Start(String[] args)\r\n   at System.Windows.Application.<.ctor>b__1(Object unused)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)\r\n\r\nI then downloaded 1.0.21 manually (x64 windows installer) and completed the install which went OK. Tried to run it and got the identical stack trace.\r\n\r\nThe relevant bit of the log file for the auto-update is as follows:\r\n\r\n2015-05-29 14:41:49.4802 [Info] SyncTrayzor.Services.UpdateManagement.UpdateManager: Auto-installing 1.0.21 \r\n2015-05-29 14:41:49.5352 [Info] SyncTrayzor.Services.ProcessStartProvider: Starting C:\\Program Files\\SyncTrayzor\\ProcessRunner.exe --nowindow -- \"C:\\Program Files\\SyncTrayzor\\ProcessRunner.exe\" --runas --launch=\"\\\"C:\\Program Files\\SyncTrayzor\\SyncTrayzor.exe\\\"\" -- \"C:\\Users\\syncuser\\AppData\\Local\\Temp\\SyncTrayzor\\SyncTrayzorUpdate-1.0.21.exe\" /SILENT \r\n2015-05-29 14:42:17.2647 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: ExePath: C:\\Program Files\\SyncTrayzor \r\n2015-05-29 14:42:17.6837 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: LogFilePath: C:\\Users\\syncuser\\AppData\\Roaming\\SyncTrayzor\\logs \r\n2015-05-29 14:42:17.6837 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: SyncThingBackupPath: C:\\Program Files\\SyncTrayzor\\syncthing.exe \r\n2015-05-29 14:42:17.6837 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: ConfigurationFilePath: C:\\Users\\syncuser\\AppData\\Roaming\\SyncTrayzor\\config.xml \r\n2015-05-29 14:42:17.6837 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: ConfigurationFileBackupPath: C:\\Users\\syncuser\\AppData\\Roaming\\SyncTrayzor\\config-backups \r\n2015-05-29 14:42:17.6837 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: CefCachePath: C:\\Users\\syncuser\\AppData\\Local\\SyncTrayzor\\cef\\cache \r\n2015-05-29 14:42:18.8808 [Debug] SyncTrayzor.Services.Config.ConfigurationProvider: Loaded default configuration: <Configuration ShowTrayIconOnlyOnClose=False MinimizeToTray=False CloseToTray=True ShowSynchronizedBalloon=True ShowDeviceConnectivityBalloons=True SyncthingAddress=localhost:8384 StartSyncthingAutomatically=True SyncthingApiKey= SyncthingEnvironmentalVariables=[] SyncthingUseCustomHome=False SyncthingDenyUpgrade=False SyncthingRunLowPriority=False Folders=[] NotifyOfNewVersions=True LastNotifiedVersion= ObfuscateDeviceIDs=True UseComputerCulture=True SyncthingConsoleHeight=100 WindowPlacement= SyncthingWebBrowserZoomLevel=0 LastSeenInstallCount=0 SyncthingPath=%APPDATA%\\SyncTrayzor\\syncthing.exe SyncthingCustomHomePath=%LOCALAPPDATA%\\SyncTrayzor\\syncthing> \r\n2015-05-29 14:42:19.0638 [Debug] SyncTrayzor.Services.Config.ConfigurationProvider: Found existing configuration at C:\\Users\\syncuser\\AppData\\Roaming\\SyncTrayzor\\config.xml \r\n2015-05-29 14:42:19.3878 [Error] SyncTrayzor.Bootstrapper: An unhandled exception occurred \r\n\r\nThat is then followed by the same stack trace mentioned above."},"comment":{"url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/comments/106871839","html_url":"https://github.com/canton7/SyncTrayzor/issues/96#issuecomment-106871839","issue_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/96","id":106871839,"user":{"login":"canton7","id":568104,"avatar_url":"https://avatars.githubusercontent.com/u/568104?v=3","gravatar_id":"","url":"https://api.github.com/users/canton7","html_url":"https://github.com/canton7","followers_url":"https://api.github.com/users/canton7/followers","following_url":"https://api.github.com/users/canton7/following{/other_user}","gists_url":"https://api.github.com/users/canton7/gists{/gist_id}","starred_url":"https://api.github.com/users/canton7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canton7/subscriptions","organizations_url":"https://api.github.com/users/canton7/orgs","repos_url":"https://api.github.com/users/canton7/repos","events_url":"https://api.github.com/users/canton7/events{/privacy}","received_events_url":"https://api.github.com/users/canton7/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T17:04:07Z","updated_at":"2015-05-29T17:04:07Z","body":"Yeah, Syncthing's config is separate from SyncTrayzor's. SyncTrayzor's config stores stuff like how to close to the tray, whether to watch folders for changes, the size of the console area, etc. For a full list, see what's in the settings menu.\r\n\r\nI'll leave this issue open for now: I've had two people with corrupt config files recently (for completely different reasons), and it's something I should probably catch a bit better..."}}