Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ExecutionEngineException in DrawMapRect of MKOverlayRenderer

$
0
0

Hi Xamarin Team,

I have serious problems with these kind of exceptions. I get them collected with raygun.io. So I know they occur not only once but also not every time.

Both exceptions occur in DrawMapRect of a user class derived of MKOverlayRenderer. Both exceptions occur not very seldom. But they occur after a certain time.

As far as I know the exception occurs in the attempt to compile a method wrapper (i.e. SetStrokeColor) in the moment when this method is called. As far as I know this function will be executed in a special thread related to a map view.

Do you think it could be a good work around to call all these methods at the start of the app in main thread to avoid JIT compiling it later under special conditions in the map view thread?

Do you think you could fix this issue?

Regards,

Oliver

Crash A: ExecutionEngineException: Attempting to JIT compile method '(wrapper managed-to-native) MonoTouch.CoreGraphics.CGPath:CGPathCreateMutable ()' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information. ]

MonoTouch.CoreGraphics.CGPath..ctor() in <filename unknown>:0

MapViewHelper.LineOverlayRenderer.DrawMapRect(MKMapRect mapRect, Single zoomScale, MonoTouch.CoreGraphics.CGContext context) in <filename unknown>:0

Crash B:

[ExecutionEngineException: Attempting to JIT compile method '(wrapper managed-to-native) MonoTouch.CoreGraphics.CGContext:CGContextSetStrokeColorWithColor (intptr,intptr)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information. ]

MonoTouch.CoreGraphics.CGContext.SetStrokeColor(MonoTouch.CoreGraphics.CGColor color) in <filename unknown>:0

MapViewHelper.LineOverlayRenderer.DrawMapRect(MKMapRect mapRect, Single zoomScale, MonoTouch.CoreGraphics.CGContext context) in <filename unknown>:0

Viewing all articles
Browse latest Browse all 204402

Trending Articles