{"action":"opened","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3816","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3816/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3816/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3816/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3816","id":174104451,"number":3816,"title":"Index was out of range exception in Starcounter.XSON","user":{"login":"miyconst","id":6435556,"avatar_url":"https://avatars.githubusercontent.com/u/6435556?v=3","gravatar_id":"","url":"https://api.github.com/users/miyconst","html_url":"https://github.com/miyconst","followers_url":"https://api.github.com/users/miyconst/followers","following_url":"https://api.github.com/users/miyconst/following{/other_user}","gists_url":"https://api.github.com/users/miyconst/gists{/gist_id}","starred_url":"https://api.github.com/users/miyconst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyconst/subscriptions","organizations_url":"https://api.github.com/users/miyconst/orgs","repos_url":"https://api.github.com/users/miyconst/repos","events_url":"https://api.github.com/users/miyconst/events{/privacy}","received_events_url":"https://api.github.com/users/miyconst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/Typed%20JSON","name":"Typed JSON","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-30T19:30:03Z","updated_at":"2016-08-30T19:30:03Z","closed_at":null,"body":"From time to time I get this error and entire database crashes:\r\n\r\n```\r\n\"System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index\r\n   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)\r\n   at System.Collections.Generic.List`1.System.Collections.IList.get_Item(Int32 index)\r\n   at Starcounter.XSON.JsonProperty.EvalutateCurrent(JsonPointer ptr, ViewModelVersion version, Boolean& nextIsIndex) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.XSON\\Sessions\\JSON-Patch\\JsonProperty.cs:line 112\r\n   at Starcounter.XSON.JsonProperty.<>c.<DoEvaluate>b__11_0(JsonProperty prop, JsonPointer ptr, ViewModelVersion pv, Boolean isIndex) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.XSON\\Sessions\\JSON-Patch\\JsonProperty.cs:line 82\r\n   at Starcounter.Advanced.XSON.JsonExtension.Scope[T1,T2,T3,T4,TResult](Json json, Func`5 func, T1 arg1, T2 arg2, T3 arg3, T4 arg4) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.XSON\\Class Json\\JsonExtension.cs:line 231\r\n   at Starcounter.XSON.JsonProperty.DoEvaluate(JsonPointer pointer, Json root) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.XSON\\Sessions\\JSON-Patch\\JsonProperty.cs:line 79\r\n   at Starcounter.XSON.JsonProperty.Evaluate(JsonPointer pointer, Json root) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.XSON\\Sessions\\JSON-Patch\\JsonProperty.cs:line 59\r\n   at Starcounter.XSON.DefaultPatchHandler.Handle(Json root, JsonPatchOperation patchOp, JsonPointer pointer, IntPtr valuePtr, Int32 valueSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.XSON\\Sessions\\JSON-Patch\\DefaultPatchHandler.cs:line 18\r\n   at Starcounter.XSON.JsonPatch.Apply(Json root, IntPtr patchArrayPtr, Int32 patchArraySize, Boolean strictPatchRejection) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.XSON\\Sessions\\JSON-Patch\\JsonPatch.cs:line 682\r\n   at Starcounter.XSON.JsonPatch.Apply(Json root, Byte[] patchArray, Boolean strictPatchRejection) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.XSON\\Sessions\\JSON-Patch\\JsonPatch.cs:line 522\r\n   at Starcounter.Internal.PuppetRestHandler.HandleWebSocketJson(Byte[] bs, WebSocket ws) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.Apps.JsonPatch\\BuiltInRestHandlers\\PuppetRestHandler.cs:line 57\r\n   at Starcounter.Internal.AllWsGroups.RunHandler(UInt16 managedHandlerId, UInt32 groupId, WebSocket ws) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter.Internal\\Http\\WsManager.cs:line 289\r\n   at Starcounter.GatewayHandlers.HandleWebSocket(UInt16 managedHandlerId, Byte* rawChunk, BMX_TASK_INFO* taskInfo, Boolean* isHandled) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-develop-nightly-456\\Level1\\src\\Starcounter\\Apps\\GatewayHandlers.cs:line 784\r\nParamName=index\r\nHResult=-2146233086\r\n\"\r\n```\r\n\r\ncc @chrhol "}}
{"actor":{"display_login":"miyconst"}}