[MonoTouch] MT 5.3.2 using ServiceStack.Text Json Deserialization Fails
Bobby Johnson
bobby.johnson at gmail.com
Fri Mar 30 18:45:37 UTC 2012
I am running the alfa channel and noticed that my code runs locally fine
but fails on the device with the following error:
System.ExecutionEngineException: Attempting to JIT compile method
'ServiceStack.Text.Json.JsonReader`1<MonoTouch.CoreLocation.CLLocationCoordinate2D>:GetParseFn
()' while running with --aot-only.
at ServiceStack.Text.Json.JsonReader.GetParseFn (System.Type type)
[0x00000] in <filename unknown>:0
at ServiceStack.Text.Json.JsonTypeSerializer.GetParseFn (System.Type
type) [0x00000] in <filename unknown>:0
at
ServiceStack.Text.Common.DeserializeType`1[ServiceStack.Text.Json.JsonTypeSerializer].GetParseMethod
(System.Type type) [0x00000] in <filename unknown>:0
at
ServiceStack.Text.Common.JsReader`1[ServiceStack.Text.Json.JsonTypeSerializer].GetParseFn[Product]
() [0x00000] in <filename unknown>:0
at ServiceStack.Text.Json.JsonReader`1[Furnishly.UI.Product]..cctor ()
[0x00000] in <filename unknown>:0
I found this support
article<http://docs.xamarin.com/ios/troubleshooting#System.ExecutionEngineException.3a_Attempting_to_JIT_compile_method_(wrapper_managed-to-managed)_Foo.5b.5d.3aSystem.Collections.Generic.ICollection.601.get_Count_()>and
was able to get my code working again with these
changes <https://gist.github.com/2253888>.
This code worked no problems in previous versions, so I thought I would
report it as possibly a bug.
Thanks!
Bobby
--
"The explanation requiring the fewest assumptions is most likely to be
correct."
- Occam’s Razor
http://en.wikipedia.org/wiki/Occam's_Razor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120330/6a231a28/attachment.html>
More information about the MonoTouch
mailing list