UIBezierPath causes native crash

Dear Support,

I got a native crash when I try to draw a line on screen. Issue occoures when I press and hold drawing for a while, but not always, so maybe I'm in wrong line of debugging. I tried to set my fields to be public static as I see it on a similar crash topic, but no effect.

I would be so thankful if I can have any suggestions to prevent this issue.

Here is the log about the crash:

InspectorDebugSession(2): HandleTargetEvent: ThreadStopped
The thread 'Unknown' (0x7) has exited with code 0 (0x0).
2017-03-29 17:12:41.733 App.iOS[9228:96633] critical: Stacktrace:
2017-03-29 17:12:41.734 App.iOS[9228:96633] critical: at <0xffffffff>
2017-03-29 17:12:41.734 App.iOS[9228:96633] critical: at (wrapper managed-to-native) CoreGraphics.CGPath.CGPathRelease (intptr) [0x00009] in <2eac029f6b5649dd8e6f90b6a5c86b1e>:0
2017-03-29 17:12:41.754 App.iOS[9228:96633] critical: at CoreGraphics.CGPath.Dispose (bool) [0x00015] in /Users/builder/data/lanes/4292/e66c6f19/source/xamarin-macios/src/CoreGraphics/CGPath.cs:137
2017-03-29 17:12:41.754 App.iOS[9228:96633] critical: at CoreGraphics.CGPath.Finalize () [0x00000] in /Users/builder/data/lanes/4292/e66c6f19/source/xamarin-macios/src/CoreGraphics/CGPath.cs:115
2017-03-29 17:12:41.755 App.iOS[9228:96633] critical: at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) [0x0001f] in <54e129cad3ee4c61a6b46c3680ddc69a>:0
2017-03-29 17:12:41.755 App.iOS[9228:96633] critical:
Native stacktrace:
2017-03-29 17:12:41.794 App.iOS[9228:96633] critical: 0 App.iOS 0x0000000108a22a4d mono_handle_native_sigsegv + 253
2017-03-29 17:12:41.794 App.iOS[9228:96633] critical: 1 App.iOS 0x0000000108a2f786 mono_sigsegv_signal_handler + 294
2017-03-29 17:12:41.795 App.iOS[9228:96633] critical: 2 libsystem_platform.dylib 0x00000001158aab3a _sigtramp + 26
2017-03-29 17:12:41.795 App.iOS[9228:96633] critical: 3 ??? 0x0000000000000000 0x0 + 0
2017-03-29 17:12:41.796 App.iOS[9228:96633] critical: 4 ??? 0x000000012d378515 0x0 + 5053580565
2017-03-29 17:12:41.796 App.iOS[9228:96633] critical: 5 App.iOS 0x0000000108a848df mono_gc_run_finalize + 735
2017-03-29 17:12:41.796 App.iOS[9228:96633] critical: 6 App.iOS 0x0000000108b4f17c sgen_gc_invoke_finalizers + 236
2017-03-29 17:12:41.797 App.iOS[9228:96633] critical: 7 App.iOS 0x0000000108a8663a finalizer_thread + 730
2017-03-29 17:12:41.797 App.iOS[9228:96633] critical: 8 App.iOS 0x0000000108b2f450 start_wrapper + 320
2017-03-29 17:12:41.797 App.iOS[9228:96633] critical: 9 App.iOS 0x0000000108b9b8f2 inner_start_thread + 354
2017-03-29 17:12:41.797 App.iOS[9228:96633] critical: 10 libsystem_pthread.dylib 0x00000001158bc9af _pthread_body + 180
2017-03-29 17:12:41.798 App.iOS[9228:96633] critical: 11 libsystem_pthread.dylib 0x00000001158bc8fb _pthread_body + 0
2017-03-29 17:12:41.798 App.iOS[9228:96633] critical: 12 libsystem_pthread.dylib 0x00000001158bc101 thread_start + 13

2017-03-29 17:12:41.798 App.iOS[9228:96633] critical:

Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries

used by your application.

The app has been terminated.
Launch failed. The app 'App.iOS' could not be launched on 'iPad Air 2 iOS 10.3'. Error: An error occurred while executing MTouch. Please check the logs for more details.

Sign In or Register to comment.