Bug 43529 - Crash at startup on iOS Simulator
Summary: Crash at startup on iOS Simulator
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.1
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-08-19 07:16 UTC by Sven Carstensen
Modified: 2017-06-19 18:55 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Sven Carstensen 2016-08-19 07:16:27 UTC
Sometimes the app crashes at startup on iOS Simulator with the following Exception.
Real devices seems to be not affected.

IKVO.iOS(51840,0xb06c5000) malloc: *** error for object 0x7f9e0890: double free
*** set a breakpoint in malloc_error_break to debug
2016-08-19 09:05:37.536 IKVO.iOS[51840:22163730] critical: Stacktrace:

2016-08-19 09:05:37.536 IKVO.iOS[51840:22163730] critical:   at <unknown> <0xffffffff>
2016-08-19 09:05:37.536 IKVO.iOS[51840:22163730] critical:   at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_nfloat (intptr,intptr,intptr,System.nfloat) <0x00012>
2016-08-19 09:05:37.536 IKVO.iOS[51840:22163730] critical:   at UIKit.UIImage.LoadFromData (Foundation.NSData,System.nfloat) [0x00017] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/build/ios/native/UIKit/UIImage.g.cs:594
2016-08-19 09:05:37.536 IKVO.iOS[51840:22163730] critical:   at Xamarin.Forms.Platform.iOS.StreamImagesourceHandler/<LoadImageAsync>d__0.MoveNext () [0x000a8] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.iOS\Renderers\ImageRenderer.cs:190
2016-08-19 09:05:37.536 IKVO.iOS[51840:22163730] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1089
2016-08-19 09:05:37.536 IKVO.iOS[51840:22163730] critical:   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x0008d] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:957
2016-08-19 09:05:37.536 IKVO.iOS[51840:22163730] critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:904
2016-08-19 09:05:37.537 IKVO.iOS[51840:22163730] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x0003b] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1070
2016-08-19 09:05:37.537 IKVO.iOS[51840:22163730] critical:   at System.Threading.Tasks.AwaitTaskContinuation.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x0000b] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:720
2016-08-19 09:05:37.537 IKVO.iOS[51840:22163730] critical:   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/threadpool.cs:857
2016-08-19 09:05:37.537 IKVO.iOS[51840:22163730] critical:   at ObjCRuntime.Runtime.ThreadPoolDispatcher (System.Func`1<bool>) [0x00006] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/ObjCRuntime/Runtime.cs:233
2016-08-19 09:05:37.537 IKVO.iOS[51840:22163730] critical:   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x0000c] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/threadpool.cs:1209
2016-08-19 09:05:37.537 IKVO.iOS[51840:22163730] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_bool (object,intptr,intptr,intptr) <IL 0x0001f, 0x000c6>
2016-08-19 09:05:37.537 IKVO.iOS[51840:22163730] critical: 
Native stacktrace:

2016-08-19 09:05:37.540 IKVO.iOS[51840:22163730] critical: 	0   IKVO.iOS                            0x001a66bd mono_handle_native_sigsegv + 317
2016-08-19 09:05:37.540 IKVO.iOS[51840:22163730] critical: 	1   IKVO.iOS                            0x001af901 sigabrt_signal_handler + 161
2016-08-19 09:05:37.540 IKVO.iOS[51840:22163730] critical: 	2   libsystem_platform.dylib            0x097bc79b _sigtramp + 43
2016-08-19 09:05:37.540 IKVO.iOS[51840:22163730] critical: 	3   ???                                 0xffffffff 0x0 + 4294967295
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	4   libsystem_c.dylib                   0x0954c65d abort + 156
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	5   libsystem_malloc.dylib              0x09663585 protect + 0
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	6   libsystem_malloc.dylib              0x09666bcd free_tiny_botch + 90
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	7   libsystem_malloc.dylib              0x0965e329 szone_free + 1409
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	8   CoreFoundation                      0x008028e8 __CFAllocatorSystemDeallocate + 24
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	9   CoreFoundation                      0x007ecf34 CFAllocatorDeallocate + 100
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	10  UIKit                               0x04388e84 _UIBuiltinTraitStorageRelease + 41
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	11  CoreFoundation                      0x0082f740 __CFBasicHashReplaceValue + 416
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	12  CoreFoundation                      0x007f138b CFBasicHashSetValue + 2667
2016-08-19 09:05:37.541 IKVO.iOS[51840:22163730] critical: 	13  CoreFoundation                      0x007f08ad CFDictionarySetValue + 221
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	14  UIKit                               0x04388f35 _UITraitCollectionCacheForBuiltinStorage + 172
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	15  UIKit                               0x0438b8d0 +[UITraitCollection traitCollectionWithDisplayScale:] + 94
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	16  UIKit                               0x03818dbf -[UIImage(UIImagePrivate) _initWithData:preserveScale:cache:] + 214
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	17  UIKit                               0x0381403c -[UIImage initWithData:] + 56
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	18  UIKit                               0x0381406a -[UIImage initWithData:scale:] + 41
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	19  UIKit                               0x03813e1f +[UIImage imageWithData:scale:] + 91
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	20  ???                                 0x1b0d8eb0 0x0 + 453873328
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	21  ???                                 0x1b0d8194 0x0 + 453869972
2016-08-19 09:05:37.542 IKVO.iOS[51840:22163730] critical: 	22  ???                                 0x1ae367fc 0x0 + 451110908
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	23  ???                                 0x1adcdbbf 0x0 + 450681791
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	24  ???                                 0x1ac63a6e 0x0 + 449198702
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	25  ???                                 0x1ac632a4 0x0 + 449196708
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	26  ???                                 0x1adcda58 0x0 + 450681432
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	27  ???                                 0x1b0a030d 0x0 + 453640973
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	28  ???                                 0x1ac5dab0 0x0 + 449174192
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	29  ???                                 0x1ac5ca50 0x0 + 449170000
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	30  ???                                 0x1ac5c5ca 0x0 + 449168842
2016-08-19 09:05:37.543 IKVO.iOS[51840:22163730] critical: 	31  ???                                 0x1ac5c7cf 0x0 + 449169359
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] critical: 	32  IKVO.iOS                            0x001b6859 mono_jit_runtime_invoke + 921
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] critical: 	33  IKVO.iOS                            0x002750ce mono_runtime_invoke + 142
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] critical: 	34  IKVO.iOS                            0x002c06a0 worker_thread + 1792
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] critical: 	35  IKVO.iOS                            0x002c9779 start_wrapper + 569
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] critical: 	36  IKVO.iOS                            0x00330b90 inner_start_thread + 352
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] critical: 	37  libsystem_pthread.dylib             0x097a9780 _pthread_body + 138
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] critical: 	38  libsystem_pthread.dylib             0x097a96f6 _pthread_body + 0
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] critical: 	39  libsystem_pthread.dylib             0x097a6f7a thread_start + 34
2016-08-19 09:05:37.544 IKVO.iOS[51840:22163730] 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.
=================================================================
Comment 1 Paul DiPietro [MSFT] 2016-08-22 15:05:40 UTC
We'd need a reproduction for this in order to investigate further.
Comment 2 Sven Carstensen 2016-08-25 06:16:39 UTC
This problem isn't be cleary reproducible.
Some times it happens multiple times, then the next start works faultless.

Other developers have also found this bug.
See: https://forums.xamarin.com/discussion/56788/sigabrt-issue-on-ios-forms-project
Comment 3 Paul DiPietro [MSFT] 2017-06-19 18:55:03 UTC
This issue will be closed due to a lack of response from other users reporting the issue to the point where we can reasonably assume it no longer exists. Please reopen this and attach a minimized reproduction project if the issue still exists as of the latest prerelease or nightly build with any pertinent info.