{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3585","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3585/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3585/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3585/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3585","id":153773538,"number":3585,"title":"Administrator crashes in TypedJson trying to show results of SELECT","user":{"login":"linkdata","id":2185977,"avatar_url":"https://avatars.githubusercontent.com/u/2185977?v=3","gravatar_id":"","url":"https://api.github.com/users/linkdata","html_url":"https://github.com/linkdata","followers_url":"https://api.github.com/users/linkdata/followers","following_url":"https://api.github.com/users/linkdata/following{/other_user}","gists_url":"https://api.github.com/users/linkdata/gists{/gist_id}","starred_url":"https://api.github.com/users/linkdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkdata/subscriptions","organizations_url":"https://api.github.com/users/linkdata/orgs","repos_url":"https://api.github.com/users/linkdata/repos","events_url":"https://api.github.com/users/linkdata/events{/privacy}","received_events_url":"https://api.github.com/users/linkdata/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/Administrator","name":"Administrator","color":"000000"},{"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":2,"created_at":"2016-05-09T13:14:47Z","updated_at":"2016-05-17T08:28:25Z","closed_at":null,"body":"Admittedly I'm pushing hard on it, but it shouldn't throw an exception when being asked to render a query result.\r\n\r\n`select * from LogStreamerBulker.Record`\r\n\r\n```\r\nSystem.Exception: TypedJson serializer: written size is larger than size of destination! (written: 34, destination: 1)\r\nType: Starcounter.Json, DebugString: <value: Starcounter.Arr`1[Starcounter.Json]><app: <null>>{\r\n   \"_0\":<value: 923>,\r\n   \"_1\":<value: 426426>,\r\n   \"_2\":<value: anteater/repl0>,\r\n   \"_3\":<value: >,\r\n   \"_4\":<value: >,\r\n   \"_5\":<value: 9223372036854775806>,\r\n   \"_6\":<value: 1>,\r\n   \"_7\":<value: -4398046511101,772959>,\r\n   \"_8\":<value: -3,40282346638529E+38>,\r\n   \"_9\":<value: 2,77891869134219>,\r\n   \"_10\":<value: 923>,\r\n   \"_11\":<value: Ob>\r\n}\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.AssertWrittenSize(Json json, Int32 realSize, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 110\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.Serialize(Json json, IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 79\r\n   at Starcounter.Json.ToJsonUtf8(IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Class Json\\Json.Serializing.cs:line 99\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.SerializeArray(TypedJsonSerializer serializer, Json json, IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 547\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-106\\Level1\\src\\Starcounter.XSON\\Class Json\\JsonExtension.cs:line 231\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.ScopeAndSerializeArray(TypedJsonSerializer serializer, Json json, Template template, IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 526\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.SerializeObject(TypedJsonSerializer serializer, Json json, IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 419\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-106\\Level1\\src\\Starcounter.XSON\\Class Json\\JsonExtension.cs:line 231\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.ScopeAndSerializeObject(TypedJsonSerializer serializer, Json json, Template template, IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 330\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.SerializeObject(TypedJsonSerializer serializer, Json json, IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 419\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-106\\Level1\\src\\Starcounter.XSON\\Class Json\\JsonExtension.cs:line 231\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.ScopeAndSerializeObject(TypedJsonSerializer serializer, Json json, Template template, IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 330\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.<Serialize>b__7_0(TypedJsonSerializer tjs, Json j, IntPtr d, Int32 ds) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 70\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-106\\Level1\\src\\Starcounter.XSON\\Class Json\\JsonExtension.cs:line 231\r\n   at Starcounter.Advanced.XSON.StandardJsonSerializerBase.Serialize(Json json, IntPtr dest, Int32 destSize) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Serializer\\Json\\StandardJsonSerializer.cs:line 65\r\n   at Starcounter.Json.ToJsonUtf8() in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Class Json\\Json.Serializing.cs:line 70\r\n   at Starcounter.Internal.JsonMimeConverter.Convert(Request request, IResource before, MimeType mimeType, MimeType& resultingMimeType) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.Apps.JsonPatch\\BuiltInRestHandlers\\JsonMimeConverter.cs:line 36\r\n   at Starcounter.Json.AsMimeType(MimeType mimeType, MimeType& resultingMimeType, Request request) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.XSON\\Class Json\\Json.IResource.cs:line 42\r\n   at Starcounter.Response.ConstructFromFields(Request req, Byte[] givenBuffer) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.Internal\\Http\\Response.cs:line 809\r\n   at Starcounter.Request.SendResponse(Response resp, Byte[] serializationBuf) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.Internal\\Http\\Request.cs:line 1241\r\n   at Starcounter.Internal.AppsBootstrapper.ProcessExternalRequest(Request req) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-106\\Level1\\src\\Starcounter.Apps.JsonPatch\\AppsBootstrapper.cs:line 609\r\nHResult=-2146233088\r\n```"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/219652620","html_url":"https://github.com/Starcounter/Starcounter/issues/3585#issuecomment-219652620","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3585","id":219652620,"user":{"login":"linkdata","id":2185977,"avatar_url":"https://avatars.githubusercontent.com/u/2185977?v=3","gravatar_id":"","url":"https://api.github.com/users/linkdata","html_url":"https://github.com/linkdata","followers_url":"https://api.github.com/users/linkdata/followers","following_url":"https://api.github.com/users/linkdata/following{/other_user}","gists_url":"https://api.github.com/users/linkdata/gists{/gist_id}","starred_url":"https://api.github.com/users/linkdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkdata/subscriptions","organizations_url":"https://api.github.com/users/linkdata/orgs","repos_url":"https://api.github.com/users/linkdata/repos","events_url":"https://api.github.com/users/linkdata/events{/privacy}","received_events_url":"https://api.github.com/users/linkdata/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T08:28:25Z","updated_at":"2016-05-17T08:28:25Z","body":"> What do you mean by pushing it hard?\r\n\r\nRun the latest [LogStreamerBulker](https://github.com/StarcounterSamples/LogStreamerBulker) for a while, then start selecting from the table like this, incrementing `oid` by 1000 to select different portions:\r\n\r\n`select * from LogStreamerBulker.Record where oid > 0`\r\n\r\nI usually hit a crashing combination on the second or third select. Fully reproducible."}}