Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccessViolationException crashing app #10

Open
sporty81 opened this issue Feb 24, 2016 · 1 comment
Open

AccessViolationException crashing app #10

sporty81 opened this issue Feb 24, 2016 · 1 comment

Comments

@sporty81
Copy link

Once in a while my app is crashing due to a AccessViolationException. Anyone else seen this or have any ideas? I'm not sure exactly what json was being parsed. I'm using the latest version of the nuget.

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at System.Text.Json.JsonParser.FasterGetPropInfo(TypeInfo)
at System.Text.Json.JsonParser.Obj(Int32)
at System.Text.Json.JsonParser.Val(Int32)
at DynamicClass.Set(System.Object, System.Text.Json.JsonParser, Int32, Int32)
at System.Text.Json.JsonParser.Arr(Int32)
at System.Text.Json.JsonParser.Val(Int32)
at DynamicClass.Setstacks(System.Object, System.Text.Json.JsonParser, Int32, Int32)
at System.Text.Json.JsonParser.Obj(Int32)
at System.Text.Json.JsonParser.Val(Int32)
at DynamicClass.Set(System.Object, System.Text.Json.JsonParser, Int32, Int32)
at System.Text.Json.JsonParser.Arr(Int32)
at System.Text.Json.JsonParser.Val(Int32)
at DynamicClass.Setstacks(System.Object, System.Text.Json.JsonParser, Int32, Int32)
at System.Text.Json.JsonParser.Obj(Int32)
at System.Text.Json.JsonParser.Val(Int32)
at DynamicClass.Set(System.Object, System.Text.Json.JsonParser, Int32, Int32)
at System.Text.Json.JsonParser.Arr(Int32)
at System.Text.Json.JsonParser.Val(Int32)
at DynamicClass.Setstacks(System.Object, System.Text.Json.JsonParser, Int32, Int32)
at System.Text.Json.JsonParser.Obj(Int32)
at System.Text.Json.JsonParser.Val(Int32)
at System.Text.Json.JsonParser.DoParse[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String, System.Collections.Generic.IDictionary2<System.Type,System.Func5<System.Type,System.Object,System.Object,Int32,System.Func2<System.Object,System.Object>>) at System.Text.Json.JsonParser.Parse[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon, System.String, System.Collections.Generic.IDictionary2<System.Type,System.Func5<System.Type,System.Object,System.Object,Int32,System.Func2<System.Object,System.Object>>)

@ysharplanguage
Copy link
Owner

@sporty81 Thanks for reporting, and it would help to have the input JSON / steps to reproduce. But I'm considering to retire all versions from 2.0.0.7 to 2.0.0.11 (inclusive), as I suspect that a nasty regression eventually slipped in, ever since that FASTER_GETPROPINFO. Consider backing up to v2.0.0.6, functionally equivalent and likely more reliable (and not relying on any unsafe code, btw). You won't lose much in performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants