SIGABRT issue on iOS (Forms project)

Hey.

I'm developing a crossplatform app using Xamarin Forms, but the iOS build has a random occurring crash at startup (using a iPhone 4S iOS 9.1 Simulator via Xamarin Studio).

The exception is wrapped, and triggerede deep down in something native, resulting in an app-quit, so I'm unable to debug it using breakpoints.

As far as I can tell, it is related to an Image resource. The crash always happens at launch, but not consistently.
Anyone with a hint as to what the problem could be? Or a pointer to how I could debug it?


Here is a print of the Application Output at crash:
(Sorry about the wall-of-text. Cannot get the Markdown code-tag to work with the copy-paste from the log)




MTRAXiOS(19367,0xb0cd1000) malloc: *** error for object 0x7efab7e0: double free
*** set a breakpoint in malloc_error_break to debug
2015-11-27 12:01:47.143 MTRAXiOS[19367:15773515] critical: Stacktrace: 2015-11-27 12:01:47.143 MTRAXiOS[19367:15773515] critical: at <0xffffffff>
2015-11-27 12:01:47.143 MTRAXiOS[19367:15773515] critical: at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_nfloat (intptr,intptr,intptr,System.nfloat)
2015-11-27 12:01:47.143 MTRAXiOS[19367:15773515] critical: at UIKit.UIImage.LoadFromData (Foundation.NSData,System.nfloat) [0x00017] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/src/build/ios/native/UIKit/UIImage.g.cs:593
2015-11-27 12:01:47.143 MTRAXiOS[19367:15773515] critical: at Xamarin.Forms.Platform.iOS.StreamImagesourceHandler/d__0.MoveNext ()
2015-11-27 12:01:47.144 MTRAXiOS[19367:15773515] critical: at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1064
2015-11-27 12:01:47.144 MTRAXiOS[19367:15773515] critical: at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00081] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:581
2015-11-27 12:01:47.144 MTRAXiOS[19367:15773515] critical: at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:530
2015-11-27 12:01:47.144 MTRAXiOS[19367:15773515] critical: at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x0003b] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1045
2015-11-27 12:01:47.144 MTRAXiOS[19367:15773515] critical: at System.Threading.Tasks.AwaitTaskContinuation.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x0000b] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:732
2015-11-27 12:01:47.144 MTRAXiOS[19367:15773515] critical: at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/threadpool.cs:859
2015-11-27 12:01:47.144 MTRAXiOS[19367:15773515] critical: at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/threadpool.cs:1196
2015-11-27 12:01:47.145 MTRAXiOS[19367:15773515] critical: at (wrapper runtime-invoke) .runtime_invoke_bool (object,intptr,intptr,intptr)
2015-11-27 12:01:47.145 MTRAXiOS[19367:15773515] critical:
Native stacktrace: 2015-11-27 12:01:47.147 MTRAXiOS[19367:15773515] critical: 0 MTRAXiOS 0x001d7f77 mono_handle_native_sigsegv + 311
2015-11-27 12:01:47.148 MTRAXiOS[19367:15773515] critical: 1 MTRAXiOS 0x001dfb61 sigabrt_signal_handler + 145
2015-11-27 12:01:47.148 MTRAXiOS[19367:15773515] critical: 2 libsystem_platform.dylib 0x090da03b _sigtramp + 43
2015-11-27 12:01:47.148 MTRAXiOS[19367:15773515] critical: 3 ??? 0xffffffff 0x0 + 4294967295
2015-11-27 12:01:47.148 MTRAXiOS[19367:15773515] critical: 4 libsystem_c.dylib 0x08e7739d abort + 156
2015-11-27 12:01:47.148 MTRAXiOS[19367:15773515] critical: 5 libsystem_malloc.dylib 0x08f87585 protect + 0
2015-11-27 12:01:47.148 MTRAXiOS[19367:15773515] critical: 6 libsystem_malloc.dylib 0x08f8abcd free_tiny_botch + 90
2015-11-27 12:01:47.148 MTRAXiOS[19367:15773515] critical: 7 libsystem_malloc.dylib 0x08f82329 szone_free + 1409
2015-11-27 12:01:47.149 MTRAXiOS[19367:15773515] critical: 8 CoreFoundation 0x00807b68 __CFAllocatorSystemDeallocate + 24
2015-11-27 12:01:47.149 MTRAXiOS[19367:15773515] critical: 9 CoreFoundation 0x007f21b4 CFAllocatorDeallocate + 100
2015-11-27 12:01:47.149 MTRAXiOS[19367:15773515] critical: 10 UIKit 0x03dfc624 _UIBuiltinTraitStorageRelease + 41
2015-11-27 12:01:47.149 MTRAXiOS[19367:15773515] critical: 11 CoreFoundation 0x007f69b7 __CFBasicHashAddValue + 711
2015-11-27 12:01:47.149 MTRAXiOS[19367:15773515] critical: 12 CoreFoundation 0x007f6625 CFBasicHashSetValue + 2693
2015-11-27 12:01:47.149 MTRAXiOS[19367:15773515] critical: 13 CoreFoundation 0x007f5b2d CFDictionarySetValue + 221
2015-11-27 12:01:47.149 MTRAXiOS[19367:15773515] critical: 14 UIKit 0x03dfc6d5 _UITraitCollectionCacheForBuiltinStorage + 172
2015-11-27 12:01:47.149 MTRAXiOS[19367:15773515] critical: 15 UIKit 0x03dfec47 +[UITraitCollection traitCollectionWithDisplayScale:] + 85
2015-11-27 12:01:47.150 MTRAXiOS[19367:15773515] critical: 16 UIKit 0x032c0bf0 -[UIImage(UIImagePrivate) _initWithData:preserveScale:cache:] + 421
2015-11-27 12:01:47.150 MTRAXiOS[19367:15773515] critical: 17 UIKit 0x032bbdac -[UIImage initWithData:] + 56
2015-11-27 12:01:47.150 MTRAXiOS[19367:15773515] critical: 18 UIKit 0x032bbdda -[UIImage initWithData:scale:] + 41
2015-11-27 12:01:47.150 MTRAXiOS[19367:15773515] critical: 19 UIKit 0x032bbb8f +[UIImage imageWithData:scale:] + 91
2015-11-27 12:01:47.150 MTRAXiOS[19367:15773515] critical: 20 ??? 0x1ab4e5a4 0x0 + 448062884
2015-11-27 12:01:47.150 MTRAXiOS[19367:15773515] critical: 21 ??? 0x1ab4dc04 0x0 + 448060420
2015-11-27 12:01:47.151 MTRAXiOS[19367:15773515] critical: 22 ??? 0x1a4fbb80 0x0 + 441432960
2015-11-27 12:01:47.151 MTRAXiOS[19367:15773515] critical: 23 ??? 0x1956396f 0x0 + 425081199
2015-11-27 12:01:47.151 MTRAXiOS[19367:15773515] critical: 24 ??? 0x18f93c70 0x0 + 418987120
2015-11-27 12:01:47.151 MTRAXiOS[19367:15773515] critical: 25 ??? 0x18f938bc 0x0 + 418986172
2015-11-27 12:01:47.151 MTRAXiOS[19367:15773515] critical: 26 ??? 0x19563880 0x0 + 425080960
2015-11-27 12:01:47.151 MTRAXiOS[19367:15773515] critical: 27 ??? 0x1ab48302 0x0 + 448037634
2015-11-27 12:01:47.151 MTRAXiOS[19367:15773515] critical: 28 ??? 0x18fb5f6e 0x0 + 419127150
2015-11-27 12:01:47.152 MTRAXiOS[19367:15773515] critical: 29 ??? 0x18fb57b8 0x0 + 419125176
2015-11-27 12:01:47.152 MTRAXiOS[19367:15773515] critical: 30 ??? 0x18fb5938 0x0 + 419125560
2015-11-27 12:01:47.152 MTRAXiOS[19367:15773515] critical: 31 MTRAXiOS 0x001e5b13 mono_jit_runtime_invoke + 707
2015-11-27 12:01:47.152 MTRAXiOS[19367:15773515] critical: 32 MTRAXiOS 0x002a492f mono_runtime_invoke + 127
2015-11-27 12:01:47.152 MTRAXiOS[19367:15773515] critical: 33 MTRAXiOS 0x002ee573 worker_thread + 675
2015-11-27 12:01:47.152 MTRAXiOS[19367:15773515] critical: 34 MTRAXiOS 0x002f56fd start_wrapper + 493
2015-11-27 12:01:47.153 MTRAXiOS[19367:15773515] critical: 35 MTRAXiOS 0x003558f0 inner_start_thread + 240
2015-11-27 12:01:47.153 MTRAXiOS[19367:15773515] critical: 36 libsystem_pthread.dylib 0x090c6c25 _pthread_body + 138
2015-11-27 12:01:47.153 MTRAXiOS[19367:15773515] critical: 37 libsystem_pthread.dylib 0x090c6b9b _pthread_body + 0
2015-11-27 12:01:47.153 MTRAXiOS[19367:15773515] critical: 38 libsystem_pthread.dylib 0x090c3e32 thread_start + 34
2015-11-27 12:01:47.153 MTRAXiOS[19367:15773515] critical: Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.
/Andreas

Answers

Sign In or Register to comment.