-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Labels
area-Codegen-AOT-mononeeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsiderationos-iosApple iOSApple iOS
Milestone
Description
This issue has been moved from a ticket on Developer Community.
I'm referencing System.Text.Json NuGet package version 5.0.2. I'm not able to deserialize valid JSON file. The method JsonSerializer.Deserialize(string json, JsonSerializerOptions? options = null) throws following exception:
System.ExecutionEngineException: 'Attempting to JIT compile method 'int System.Text.Json.JsonWriterHelper:NeedsEscaping (System.ReadOnlySpan`1<byte>,System.Text.Encodings.Web.JavaScriptEncoder)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.
at System.Text.Json.JsonEncodedText.EncodeHelper (System.ReadOnlySpan`1[T] utf8Value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00000] in <cb68364b029e41c3bf425990b94c94d9>:0
at System.Text.Json.JsonEncodedText.TranscodeAndEncode (System.ReadOnlySpan`1[T] value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00033] in <cb68364b029e41c3bf425990b94c94d9>:0
at System.Text.Json.JsonEncodedText.Encode (System.ReadOnlySpan`1[T] value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00014] in <cb68364b029e41c3bf425990b94c94d9>:0
at System.Text.Json.JsonEncodedText.Encode (System.String value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00014] in <cb68364b029e41c3bf425990b94c94d9>:0
at System.Text.Json.JsonSerializer.. cctor () [0x00042] in <cb68364b029e41c3bf425990b94c94d9>:0
Original Comments
Feedback Bot on 7/1/2021, 01:35 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Václav Dajbych on 7/8/2021, 01:38 PM:
(private comment, text removed)
Original Solutions
(no solutions)
Metadata
Metadata
Assignees
Labels
area-Codegen-AOT-mononeeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsiderationos-iosApple iOSApple iOS