{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3604","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3604/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3604/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3604/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3604","id":153989071,"number":3604,"title":"An unhandled exception was detected.","user":{"login":"atifwaqar","id":4388707,"avatar_url":"https://avatars.githubusercontent.com/u/4388707?v=3","gravatar_id":"","url":"https://api.github.com/users/atifwaqar","html_url":"https://github.com/atifwaqar","followers_url":"https://api.github.com/users/atifwaqar/followers","following_url":"https://api.github.com/users/atifwaqar/following{/other_user}","gists_url":"https://api.github.com/users/atifwaqar/gists{/gist_id}","starred_url":"https://api.github.com/users/atifwaqar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atifwaqar/subscriptions","organizations_url":"https://api.github.com/users/atifwaqar/orgs","repos_url":"https://api.github.com/users/atifwaqar/repos","events_url":"https://api.github.com/users/atifwaqar/events{/privacy}","received_events_url":"https://api.github.com/users/atifwaqar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/Typed%20JSON","name":"Typed JSON","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"chrhol","id":1658979,"avatar_url":"https://avatars.githubusercontent.com/u/1658979?v=3","gravatar_id":"","url":"https://api.github.com/users/chrhol","html_url":"https://github.com/chrhol","followers_url":"https://api.github.com/users/chrhol/followers","following_url":"https://api.github.com/users/chrhol/following{/other_user}","gists_url":"https://api.github.com/users/chrhol/gists{/gist_id}","starred_url":"https://api.github.com/users/chrhol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrhol/subscriptions","organizations_url":"https://api.github.com/users/chrhol/orgs","repos_url":"https://api.github.com/users/chrhol/repos","events_url":"https://api.github.com/users/chrhol/events{/privacy}","received_events_url":"https://api.github.com/users/chrhol/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-05-10T11:59:26Z","updated_at":"2016-05-10T13:41:05Z","closed_at":null,"body":"My Server crashed again. I have 3 following exceptions in SC Logs (I copied these from SC log file) :\r\n\r\nFirst one is : \r\n`20160507T001301 Critical sc://owneror-pvpjthq/personal/administrator Starcounter - System.Exception: ScErrUnhandledException (SCERR1069): An unhandled exception was detected.\\r\\nVersion: 2.2.1834.\\r\\nHelp page: https://github.com/Starcounter/Starcounter/wiki/SCERR1069.\\r\\n   at StarcounterInternal.Hosting.Processor.RunTaskNoScheduling(Action userAction, String appName) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Hosting\\\\Starcounter.Hosting\\\\Processor.cs:line 102\\r\\n   at Starcounter.DbSession.GetAndExecuteQueuedTasks(Action 2 taskExecutionMethod) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter\\\\DbSession.cs:line 180\\r\\n   at StarcounterInternal.Hosting.Processor.RunTask(IntPtr hTask) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Hosting\\\\Starcounter.Hosting\\\\Processor.cs:line 149\\r\\n   at StarcounterInternal.Hosting.Processor.RunMessageLoop(Void* hsched) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Hosting\\\\Starcounter.Hosting\\\\Processor.cs:line 62\\r\\nHResult=-2146233088\\r\\nHelpLink=https://github.com/Starcounter/Starcounter/wiki/SCERR1069\\r\\n---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.\\r\\n   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)\\r\\n   at System.Collections.Generic.List 1.Enumerator.MoveNextRare()\\r\\n   at Starcounter.Json.CheckBoundArray(IEnumerable boundValue) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\Json.Object.ChangeLog.cs:line 390\\r\\n   at Starcounter.Templates.TArray 1.GetValue(Json parent) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Templates\\\\TArray.cs:line 127\\r\\n   at Starcounter.Json.<LogObjectValueChangesWithDatabase>b__123_0(ChangeLog clog, Json json, Boolean css) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\Json.Object.ChangeLog.cs:line 187\\r\\n   at Starcounter.Advanced.XSON.JsonExtension.Scope[T1,T2,T3](Json json, Action 3 action, T1 arg1, T2 arg2, T3 arg3) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\JsonExtension.cs:line 111\\r\\n   at Starcounter.Json.LogArrayChangesWithDatabase(ChangeLog changeLog, Boolean callStepSiblings) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\Json.Object.ChangeLog.cs:line 157\\r\\n   at Starcounter.Json.<LogObjectValueChangesWithDatabase>b__123_0(ChangeLog clog, Json json, Boolean css) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\Json.Object.ChangeLog.cs:line 219\\r\\n   at Starcounter.Advanced.XSON.JsonExtension.Scope[T1,T2,T3](Json json, Action 3 action, T1 arg1, T2 arg2, T3 arg3) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\JsonExtension.cs:line 111\\r\\n   at Starcounter.Json.LogArrayChangesWithDatabase(ChangeLog changeLog, Boolean callStepSiblings) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\Json.Object.ChangeLog.cs:line 157\\r\\n   at Starcounter.Json.<LogObjectValueChangesWithDatabase>b__123_0(ChangeLog clog, Json json, Boolean css) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\Json.Object.ChangeLog.cs:line 219\\r\\n   at Starcounter.Advanced.XSON.JsonExtension.Scope[T1,T2,T3](Json json, Action 3 action, T1 arg1, T2 arg2, T3 arg3) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\JsonExtension.cs:line 111\\r\\n   at Starcounter.Json.LogObjectValueChangesWithDatabase(ChangeLog changeLog, Boolean callStepSiblings) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Class Json\\\\Json.Object.ChangeLog.cs:line 277\\r\\n   at Starcounter.XSON.ChangeLog.Generate(Boolean flushLog) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Sessions\\\\JSON-Patch\\\\ChangeLog.cs:line 94\\r\\n   at Starcounter.XSON.JsonPatch.Generate(ChangeLog changeLog, Boolean includeNamespace, Boolean flushLog, Byte[]& patches) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Sessions\\\\JSON-Patch\\\\JsonPatch.cs:line 112\\r\\n   at Starcounter.XSON.JsonPatch.Generate(Json json, Boolean flushLog, Boolean includeNamespace, Byte[]& patches) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Sessions\\\\JSON-Patch\\\\JsonPatch.cs:line 90\\r\\n   at Starcounter.XSON.JsonPatch.Generate(Json json, Boolean flushLog, Boolean includeNamespace) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Sessions\\\\JSON-Patch\\\\JsonPatch.cs:line 68\\r\\n   at Administrator.Server.Managers.ServerManager.GetModelChanges(Session session) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.Administrator\\\\Server\\\\Managers\\\\ServerManager.cs:line 357\\r\\n   at Administrator.Server.Managers.ServerManager.<>c.<ServerModel_Changed>b__10_0(Session session, String sessionId) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.Administrator\\\\Server\\\\Managers\\\\ServerManager.cs:line 342\\r\\n   at Starcounter.Session.Use(SessionTask action, String sessionId) in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter.XSON\\\\Sessions\\\\Session.cs:line 712\\r\\n   at Starcounter.Task.Run() in C:\\\\TeamCity\\\\TeamCity9\\\\buildAgent\\\\work\\\\sc-develop-nightly-283\\\\Level1\\\\src\\\\Starcounter\\\\DbSession.cs:line 100\\r\\nHResult=-2146233079\\r\\n`\r\n\r\nSecond one is :\r\n`20160507T001301 Error sc://owneror-pvpjthq/personal/service Starcounter - ScErrDatabaseEngineTerminated (SCERR10007): The server detected that the user code host executable (sccode.exe) unexpectedly terminated during a management operation.`\r\n\r\nThird one is :\r\n`20160507T001301 Error sc://owneror-pvpjthq/personal/service Starcounter - ScErrUnhandledException (SCERR1069): An unhandled exception was detected.`"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/218160285","html_url":"https://github.com/Starcounter/Starcounter/issues/3604#issuecomment-218160285","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3604","id":218160285,"user":{"login":"atifwaqar","id":4388707,"avatar_url":"https://avatars.githubusercontent.com/u/4388707?v=3","gravatar_id":"","url":"https://api.github.com/users/atifwaqar","html_url":"https://github.com/atifwaqar","followers_url":"https://api.github.com/users/atifwaqar/followers","following_url":"https://api.github.com/users/atifwaqar/following{/other_user}","gists_url":"https://api.github.com/users/atifwaqar/gists{/gist_id}","starred_url":"https://api.github.com/users/atifwaqar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atifwaqar/subscriptions","organizations_url":"https://api.github.com/users/atifwaqar/orgs","repos_url":"https://api.github.com/users/atifwaqar/repos","events_url":"https://api.github.com/users/atifwaqar/events{/privacy}","received_events_url":"https://api.github.com/users/atifwaqar/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T13:41:05Z","updated_at":"2016-05-10T13:41:05Z","body":"Honestly I have no idea how to reproduce this crash, it just happens. \r\nI tried to investigate the crash, but strange thing is when I'm monitor the servers, they dont crash, as soon as I leave the office, they start crashing :P"}}