Bug 35646 - Xamarin.Forms Crashes reliably on startup
Summary: Xamarin.Forms Crashes reliably on startup
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 9.4 (iOS 9.2)
Hardware: PC Windows
: Highest blocker
Target Milestone: 9.2 (C6)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-06 18:13 UTC by Jason Smith [MSFT]
Modified: 2015-11-09 10:51 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:
VERIFIED FIXED

Description Jason Smith [MSFT] 2015-11-06 18:13:58 UTC
Doesn't happen on stable channel.

2015-11-06 15:11:25.816 XamarinFormsControlGalleryiOS[1835:1853797] error: * Assertion at ../../../../../mono/mono/mini/mini-generic-sharing.c:841, condition `oti' not met
2015-11-06 15:11:25.816 XamarinFormsControlGalleryiOS[1835:1853797] critical: Stacktrace:

2015-11-06 15:11:25.817 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at <unknown> <0xffffffff>
2015-11-06 15:11:25.817 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<T_REF>.System.Runtime.CompilerServices.IAsyncMethodBuilder.PreBoxInitialization<T_REF> (T_REF&) <0x0001f>
2015-11-06 15:11:25.817 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.GetCompletionAction<TMethodBuilder_INST, TStateMachine_REF> (TMethodBuilder_INST&,TStateMachine_REF&) [0x0006a] in /Users/builder/data/lanes/2097/b5396c29/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:936
2015-11-06 15:11:25.817 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at System.Runtime.CompilerServi
ces.AsyncTaskMethodBuilder`1<T_REF>.AwaitUnsafeOnCompleted<TAwaiter_INST, TStateMachine_REF> (TAwaiter_INST&,TStateMachine_REF&) [0x00000] in /Users/builder/data/lanes/2097/b5396c29/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:516
2015-11-06 15:11:25.817 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at Xamarin.Forms.Application/<GetPropertiesAsync>d__62.MoveNext () [0x00063] in C:\Users\Jason\Documents\GitHub\Duplo\Xamarin.Forms.Core\Application.cs:295
2015-11-06 15:11:25.818 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<T_REF> (T_REF&) <0x000c7>
2015-11-06 15:11:25.818 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<T_REF>.Start<T_REF> (T_REF&) <0x0002b>
2015-11-06 15:11:25.818 XamarinFormsControlGalleryiOS[1835:1853797] critical:   
at Xamarin.Forms.Application.GetPropertiesAsync () <IL 0x0002a, 0x0019f>
2015-11-06 15:11:25.818 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at Xamarin.Forms.Application..ctor () [0x00034] in C:\Users\Jason\Documents\GitHub\Duplo\Xamarin.Forms.Core\Application.cs:256
2015-11-06 15:11:25.818 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at Xamarin.Forms.Controls.App..ctor () [0x00000] in C:\Users\Jason\Documents\GitHub\Duplo\Xamarin.Forms.Controls\App.cs:102
2015-11-06 15:11:25.818 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at Xamarin.Forms.ControlGallery.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication,Foundation.NSDictionary) [0x00053] in C:\Users\Jason\Documents\GitHub\Duplo\Xamarin.Forms.ControlGallery.iOS\AppDelegate.cs:154
2015-11-06 15:11:25.819 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
2015-11-06 15:11:25.819 XamarinFormsControlGalleryiOS[1835:18537
97] critical:   at <unknown> <0xffffffff>
2015-11-06 15:11:25.819 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
2015-11-06 15:11:25.819 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/2097/b5396c29/source/maccore/src/UIKit/UIApplication.cs:74
2015-11-06 15:11:25.819 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x0001c] in /Users/builder/data/lanes/2097/b5396c29/source/maccore/src/UIKit/UIApplication.cs:57
2015-11-06 15:11:25.819 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at Xamarin.Forms.ControlGallery.iOS.Application.Main (string[]) [0x00019] in C:\Users\Jason\Documents\GitHub\Duplo\Xamarin.Forms.ControlGallery.iOS\Main.cs:27
2015-11-06 15:11:25.820 XamarinFormsControlGalleryiOS[1835:1853797] critical:   at (wrappe
r runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
2015-11-06 15:11:25.820 XamarinFormsControlGalleryiOS[1835:1853797] critical: 
Native stacktrace:
2015-11-06 15:11:25.887 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	0   XamarinFormsControlGalleryiOS       0x0000000101242100 mono_handle_native_sigsegv + 260
2015-11-06 15:11:25.887 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	1   libsystem_platform.dylib            0x000000019ad2194c _sigtramp + 68
2015-11-06 15:11:25.887 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	2   libsystem_pthread.dylib             0x000000019ad28f0c pthread_kill + 112
2015-11-06 15:11:25.887 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	3   libsystem_c.dylib                   0x000000019abd2b78 abort + 140
2015-11-06 15:11:25.888 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	4   XamarinFormsControlGalleryiOS       0x000000010133b190 _ZL12log_callbackPKcS0_S0_iPv + 76
2015-11-06 15:11:25.888 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	5   XamarinFormsControlGalleryiOS       0x0000000101332194 monoeg_assertion_message + 100
2015-11-06 15:11:25.888 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	6   XamarinFormsControlGalleryiOS       0x0000000101244088 fill_runtime_generic_context + 568
2015-11-06 15:11:25.888 XamarinFormsControlGaller
yiOS[1835:1853797] critical: 	7   XamarinFormsControlGalleryiOS       0x000000010036dd8c generic_trampoline_rgctx_lazy_fetch + 252
2015-11-06 15:11:25.888 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	8   XamarinFormsControlGalleryiOS       0x000000010019de10 System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_T_REF_System_Runtime_CompilerServices_IAsyncMethodBuilder_PreBoxInitialization_T_REF_T_REF_ + 32
2015-11-06 15:11:25.888 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	9   XamarinFormsControlGalleryiOS       0x000000010064317c System_Runtime_CompilerServices_AsyncMethodBuilderCore_GetCompletionAction_TMethodBuilder_INST_TStateMachine_REF_TMethodBuilder_INST__TStateMachine_REF_ + 972
2015-11-06 15:11:25.888 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	10  XamarinFormsControlGalleryiOS       0x000000010062a638 System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_T_REF_AwaitUnsafeOnCompleted_TAwaiter_INST_TStateMachine_REF_TAwaiter_INST__TStateMachine_REF__0 + 184
2015-1
1-06 15:11:25.888 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	11  XamarinFormsControlGalleryiOS       0x00000001003c1a7c Xamarin_Forms_Application__GetPropertiesAsyncd__62_MoveNext + 1004
2015-11-06 15:11:25.889 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	12  XamarinFormsControlGalleryiOS       0x000000010019eba8 System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_T_REF_T_REF_ + 200
2015-11-06 15:11:25.889 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	13  XamarinFormsControlGalleryiOS       0x000000010019dd9c System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_T_REF_Start_T_REF_T_REF_ + 44
2015-11-06 15:11:25.889 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	14  XamarinFormsControlGalleryiOS       0x00000001003bfe60 Xamarin_Forms_Application_GetPropertiesAsync + 416
2015-11-06 15:11:25.889 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	15  XamarinFormsControlGalleryiOS       0x00000001003bf538 Xamarin_Forms_Application__ctor + 520
2015-11-06 15:11:
25.889 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	16  XamarinFormsControlGalleryiOS       0x0000000100e73f00 Xamarin_Forms_Controls_App__ctor + 112
2015-11-06 15:11:25.890 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	17  XamarinFormsControlGalleryiOS       0x00000001000eb8b4 Xamarin_Forms_ControlGallery_iOS_AppDelegate_FinishedLaunching_UIKit_UIApplication_Foundation_NSDictionary + 708
2015-11-06 15:11:25.890 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	18  XamarinFormsControlGalleryiOS       0x000000010033c714 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
2015-11-06 15:11:25.890 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	19  XamarinFormsControlGalleryiOS       0x000000010124d618 mono_jit_runtime_invoke + 1280
2015-11-06 15:11:25.890 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	20  XamarinFormsControlGalleryiOS       0x00000001012b49c4 mono_runtime_invoke + 124
2015-11-06 15:11:25.890 XamarinFormsControlGalleryiOS[1
835:1853797] critical: 	21  XamarinFormsControlGalleryiOS       0x00000001011fa81c _ZL31native_to_managed_trampoline_14P11objc_objectP13objc_selectorPP11_MonoMethodS0_S0_PKcS7_S7_S7_ + 640
2015-11-06 15:11:25.890 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	22  XamarinFormsControlGalleryiOS       0x00000001011fabf0 -[AppDelegate application:didFinishLaunchingWithOptions:] + 96
2015-11-06 15:11:25.890 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	23  UIKit                               0x000000018aceb184 <redacted> + 400
2015-11-06 15:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	24  UIKit                               0x000000018af13e60 <redacted> + 2904
2015-11-06 15:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	25  UIKit                               0x000000018af181a4 <redacted> + 1660
2015-11-06 15:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	26  UIKit                               0x000000018af152e4 <redacted> + 168
2015-11-06 1
5:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	27  FrontBoardServices                  0x000000018f4677ec <redacted> + 184
2015-11-06 15:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	28  FrontBoardServices                  0x000000018f467b6c <redacted> + 56
2015-11-06 15:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	29  CoreFoundation                      0x00000001856d85a4 <redacted> + 24
2015-11-06 15:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	30  CoreFoundation                      0x00000001856d8038 <redacted> + 540
2015-11-06 15:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	31  CoreFoundation                      0x00000001856d5d38 <redacted> + 724
2015-11-06 15:11:25.891 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	32  CoreFoundation                      0x0000000185604dc0 CFRunLoopRunSpecific + 384
2015-11-06 15:11:25.892 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	33  UIKit          
                     0x000000018ace40ac <redacted> + 460
2015-11-06 15:11:25.892 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	34  UIKit                               0x000000018acdef44 UIApplicationMain + 204
2015-11-06 15:11:25.892 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	35  XamarinFormsControlGalleryiOS       0x0000000100c65b34 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 324
2015-11-06 15:11:25.892 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	36  XamarinFormsControlGalleryiOS       0x0000000100bfc03c UIKit_UIApplication_Main_string___intptr_intptr + 44
2015-11-06 15:11:25.892 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	37  XamarinFormsControlGalleryiOS       0x0000000100bfbffc UIKit_UIApplication_Main_string___string_string + 172
2015-11-06 15:11:25.892 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	38  XamarinFormsControlGalleryiOS       0x00000001000ea948 Xamarin_Forms_ControlGallery_iOS_Application_Main
_string__ + 280
2015-11-06 15:11:25.892 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	39  XamarinFormsControlGalleryiOS       0x000000010033c714 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
2015-11-06 15:11:25.892 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	40  XamarinFormsControlGalleryiOS       0x000000010124d618 mono_jit_runtime_invoke + 1280
2015-11-06 15:11:25.893 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	41  XamarinFormsControlGalleryiOS       0x00000001012b49c4 mono_runtime_invoke + 124
2015-11-06 15:11:25.895 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	42  XamarinFormsControlGalleryiOS       0x00000001012b90b8 mono_runtime_exec_main + 400
2015-11-06 15:11:25.895 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	43  XamarinFormsControlGalleryiOS       0x0000000101351bb8 xamarin_main + 1840
2015-11-06 15:11:25.896 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	44  XamarinFormsControlGalleryiOS       0x0000
00010120f810 main + 96
2015-11-06 15:11:25.896 XamarinFormsControlGalleryiOS[1835:1853797] critical: 	45  libdyld.dylib                       0x000000019ab428b8 <redacted> + 4
2015-11-06 15:11:25.896 XamarinFormsControlGalleryiOS[1835:1853797] 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 Jason Smith [MSFT] 2015-11-06 18:14:19 UTC
Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079

Installed Version: Professional

Visual Basic 2015   00322-40000-00000-AA386
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA386
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA386
Microsoft Visual C++ 2015

Visual F# 2015 RC   00322-40000-00000-AA386
Microsoft Visual F# 2015 RC

Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA386
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   14.0.20626.0
ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GenerateUnitTest   1.0
Generates unit test code for methods in classes under test.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JetBrains ReSharper Ultimate 10   Build 104.0.20151101.164448
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2015 JetBrains, Inc.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

Visual Studio Tools for Universal Windows Apps   14.0.23309.00 d14oob
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.0.0.1649 (90e1af2)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.0.27 (9d7074e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.2.1.21 (9ce9e8b)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Jason Smith [MSFT] 2015-11-06 19:45:36 UTC
This doesn't happen anymore with the latest dogfooding bits. Don't know what you guys changed but thanks!
Comment 3 Parmendra Kumar 2015-11-09 10:51:40 UTC
As per comment #2.

Closing this issue.