{"action":"created","issue":{"url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/120","labels_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/120/comments","events_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/120/events","html_url":"https://github.com/canton7/SyncTrayzor/issues/120","id":92388187,"number":120,"title":"Crash on startup","user":{"login":"sigvei","id":34950,"avatar_url":"https://avatars.githubusercontent.com/u/34950?v=3","gravatar_id":"","url":"https://api.github.com/users/sigvei","html_url":"https://github.com/sigvei","followers_url":"https://api.github.com/users/sigvei/followers","following_url":"https://api.github.com/users/sigvei/following{/other_user}","gists_url":"https://api.github.com/users/sigvei/gists{/gist_id}","starred_url":"https://api.github.com/users/sigvei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigvei/subscriptions","organizations_url":"https://api.github.com/users/sigvei/orgs","repos_url":"https://api.github.com/users/sigvei/repos","events_url":"https://api.github.com/users/sigvei/events{/privacy}","received_events_url":"https://api.github.com/users/sigvei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-01T13:38:43Z","updated_at":"2015-07-01T15:33:39Z","closed_at":null,"body":"This error occured a few weeks ago at first, but upgrading hasn't solved it.\r\n\r\nThis is the crash:\r\n\r\n```\r\nVersion: 1.0.25.82; Variant: Installed; Arch: Amd64\r\nPath: C:\\Program Files\\SyncTrayzor\\SyncTrayzor.exe\r\nSystem.Xml.XmlException: ., heksadesimalverdi 0x00, er et ugyldig tegn. Linje 1, posisjon 1.\r\n   ved System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)\r\n   ved System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()\r\n   ved System.Xml.XmlTextReaderImpl.ParseDocumentContent()\r\n   ved System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)\r\n   ved System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)\r\n   ved SyncTrayzor.Services.Config.ConfigurationProvider.LoadFromDisk(Configuration defaultConfiguration) i c:\\projects\\synctrayzor\\src\\SyncTrayzor\\Services\\Config\\ConfigurationProvider.cs:linje 142\r\n   ved SyncTrayzor.Services.Config.ConfigurationProvider.Initialize(Configuration defaultConfiguration) i c:\\projects\\synctrayzor\\src\\SyncTrayzor\\Services\\Config\\ConfigurationProvider.cs:linje 87\r\n   ved SyncTrayzor.Bootstrapper.Configure() i c:\\projects\\synctrayzor\\src\\SyncTrayzor\\Bootstrapper.cs:linje 88\r\n   ved Stylet.BootstrapperBase.Start(String[] args)\r\n   ved System.Windows.Application.<.ctor>b__1(Object unused)\r\n   ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n   ved MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)\r\n```\r\n\r\nThe Norwegian text translates to: hex value 0x00 is an illegal character. Line 1, position 1.\r\n\r\nI tried to start syncthing manually as well, and it fails by saying «FATAL: Cannot open database: leveldb/storage: corrupted or incomplete CURRENT file - Is another copy of Syncthing already running?». Another copy is not running.\r\n\r\nI am not sure whether the SyncTrayzor error causes the Syncthing error or vice versa, so I start here. Feel free to close it if it is clearly a Syncthing error, and I will bring it over there for further discussion."},"comment":{"url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/comments/117717250","html_url":"https://github.com/canton7/SyncTrayzor/issues/120#issuecomment-117717250","issue_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/120","id":117717250,"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-07-01T15:33:39Z","updated_at":"2015-07-01T15:33:39Z","body":"Yeah, they're separate and independent errors. It looks like your disk went foobar and corrupted both Syncthing's database and SyncTrayzor's configuration file?\r\n\r\nCan you paste the contents of `C:\\Users\\You\\AppData\\Roaming\\SyncTrayzor\\config.xml`? It looks like something prepended a load of null bytes to it... \r\n\r\nIn terms of recovery, renaming  `C:\\Users\\You\\AppData\\Roaming\\SyncTrayzor\\config.xml` to e.g.  `C:\\Users\\You\\AppData\\Roaming\\SyncTrayzor\\config.backup.xml` is a good bet: SyncTrayzor will re-create the configuration next time it starts. You'll lose SyncTrayzor-specific configuration options, but not your Syncthing configuration (e.g. devices and folders)."}}