Forum Xamarin.iOS

XCode 8 , New Xamarin crashes

Hi Guys,
After updating Xcode to version 8 and with the latest xamarin environment we have some crashes while adding custom controls in our ViewControllers on devices that does not run i0S 10. Here the stacktrace:

2016-09-29 13:03:07.334 XXX[235:9070] critical: Stacktrace:

2016-09-29 13:03:07.334 XXX[235:9070] critical: at <0xffffffff>
2016-09-29 13:03:07.335 XXX[235:9070] critical: at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (intptr,intptr) <0x00007>
2016-09-29 13:03:07.335 XXX[235:9070] critical: at UIKit.UIViewController.get_View () [0x00030] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/src/build/ios/native/UIKit/UIViewController.g.cs:2716
2016-09-29 13:03:07.335 XXX[235:9070] critical: at xxx.iOS.Views.Base.BaseView`1.SetupToolbar (UIKit.UIView) <0x000db>
2016-09-29 13:03:07.335 XXX[235:9070] critical: at xxx.iOS.Views.Home.HubView.ViewDidLoad () [0x0004d] in /Users/xxx/xxx/xxx/Platform/xxx.iOS/Views/Home/xxx.cs:35
2016-09-29 13:03:07.335 XXX[235:9070] critical: at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000f3>
2016-09-29 13:03:07.335 XXX[235:9070] critical: at <0xffffffff>
2016-09-29 13:03:07.335 XXX[235:9070] critical: at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00007>
2016-09-29 13:03:07.335 XXX[235:9070] critical: at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/src/UIKit/UIApplication.cs:79
2016-09-29 13:03:07.335 XXX[235:9070] critical: at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/src/UIKit/UIApplication.cs:63
2016-09-29 13:03:07.335 XXX[235:9070] critical: at xxx.iOS.Application.Main (string[]) [0x00008] in /Users/xxx/DEV/xxx/Platform/xxx.iOS/Main.cs:21
2016-09-29 13:03:07.335 XXX[235:9070] critical: at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000f3>
2016-09-29 13:03:07.336 XXX[235:9070] critical:
2016-09-29 13:03:07.623 XXX[235:9070] critical: 0 XXX 0x00000001001f9ca8 mono_handle_native_sigsegv + 260
2016-09-29 13:03:07.623 XXX[235:9070] critical: 1 XXX 0x00000001002051b0 mono_sigsegv_signal_handler + 336
2016-09-29 13:03:07.623 XXX[235:9070] critical: 2 libsystem_platform.dylib 0x000000019aad594c sigtramp + 68
2016-09-29 13:03:07.623 XXX[235:9070] critical: 3 UIKit 0x000000018a782188 + 80
2016-09-29 13:03:07.624 XXX[235:9070] critical: 4 UIKit 0x000000018a66144c + 2468
2016-09-29 13:03:07.624 XXX[235:9070] critical: 5 UIKit 0x000000018a50c14c + 376
2016-09-29 13:03:07.624 XXX[235:9070] critical: 6 UIKit 0x000000018a2d849c + 176
2016-09-29 13:03:07.624 XXX[235:9070] critical: 7 UIKit 0x000000018a19bd44 + 144
2016-09-29 13:03:07.624 XXX[235:9070] critical: 8 UIKit 0x000000018a19bc9c + 28
2016-09-29 13:03:07.624 XXX[235:9070] critical: 9 XXX 0x0000000100e9cb48 wrapper_managed_to_native_ObjCRuntime_Messaging_IntPtr_objc_msgSendSuper_intptr_intptr + 104
2016-09-29 13:03:07.624 XXX[235:9070] critical: 10 XXX 0x0000000100deab18 UIKit_UIViewController_get_View + 120
2016-09-29 13:03:07.624 XXX[235:9070] critical: 11 XXX 0x000000010035952c xxx_iOS_Views_Base_BaseView_1_T_REF_SetupToolbar_UIKit_UIView + 220
2016-09-29 13:03:07.624 XXX[235:9070] critical: 12 XXX 0x00000001003f495c xxx_iOS_Views_Home_HubView_ViewDidLoad + 492
2016-09-29 13:03:07.624 XXX[235:9070] critical: 13 XXX 0x00000001007ee3e4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
2016-09-29 13:03:07.624 XXX[235:9070] critical: 14 XXX 0x0000000100208178 mono_jit_runtime_invoke + 1772
2016-09-29 13:03:07.624 XXX[235:9070] critical: 15 XXX 0x00000001002771ac do_runtime_invoke + 112
2016-09-29 13:03:07.624 XXX[235:9070] critical: 16 XXX 0x0000000100277108 mono_runtime_invoke + 208
2016-09-29 13:03:07.625 XXX[235:9070] critical: 17 XXX 0x00000001042145f8 _ZL30native_to_managed_trampoline_4P11objc_objectP13objc_selectorPP11_MonoMethodPKcS7
+ 248
2016-09-29 13:03:07.625 XXX[235:9070] critical: 18 XXX 0x000000010422c4e4 -[HubView viewDidLoad] + 60
2016-09-29 13:03:07.625 XXX[235:9070] critical: 19 UIKit 0x000000018a19c098 + 996
2016-09-29 13:03:07.625 XXX[235:9070] critical: 20 UIKit 0x000000018a25b580 + 72
2016-09-29 13:03:07.625 XXX[235:9070] critical: 21 UIKit 0x000000018a25b458 + 416
2016-09-29 13:03:07.625 XXX[235:9070] critical: 22 UIKit 0x000000018a25a6a0 + 144
2016-09-29 13:03:07.625 XXX[235:9070] critical: 23 UIKit 0x000000018a25a244 + 868
2016-09-29 13:03:07.625 XXX[235:9070] critical: 24 UIKit 0x000000018a259e6c + 60
2016-09-29 13:03:07.625 XXX[235:9070] critical: 25 UIKit 0x000000018a259dd4 + 208
2016-09-29 13:03:07.625 XXX[235:9070] critical: 26 UIKit 0x000000018a1977ac + 644
2016-09-29 13:03:07.625 XXX[235:9070] critical: 27 QuartzCore 0x0000000189996b58 + 148
2016-09-29 13:03:07.625 XXX[235:9070] critical: 28 QuartzCore 0x0000000189991764 + 292
2016-09-29 13:03:07.625 XXX[235:9070] critical: 29 QuartzCore 0x0000000189991624 + 32
2016-09-29 13:03:07.626 XXX[235:9070] critical: 30 QuartzCore 0x0000000189990cc0 + 252
2016-09-29 13:03:07.626 XXX[235:9070] critical: 31 QuartzCore 0x0000000189990a08 + 512
2016-09-29 13:03:07.626 XXX[235:9070] critical: 32 QuartzCore 0x000000018998a0f8 + 80
2016-09-29 13:03:07.626 XXX[235:9070] critical: 33 CoreFoundation 0x0000000184bbfbd0 + 32
2016-09-29 13:03:07.626 XXX[235:9070] critical: 34 CoreFoundation 0x0000000184bbd974 + 372
2016-09-29 13:03:07.626 XXX[235:9070] critical: 35 CoreFoundation 0x0000000184bbdda4 + 928
2016-09-29 13:03:07.626 XXX[235:9070] critical: 36 CoreFoundation 0x0000000184aecca0 CFRunLoopRunSpecific + 384
2016-09-29 13:03:07.626 XXX[235:9070] critical: 37 GraphicsServices 0x0000000190070088 GSEventRunModal + 180
2016-09-29 13:03:07.626 XXX[235:9070] critical: 38 UIKit 0x000000018a204ffc UIApplicationMain + 204
2016-09-29 13:03:07.626 XXX[235:9070] critical: 39 XXX 0x0000000100e99af4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 324
2016-09-29 13:03:07.626 XXX[235:9070] critical: 40 XXX 0x0000000100e40b6c UIKit_UIApplication_Main_string___intptr_intptr + 44
2016-09-29 13:03:07.627 XXX[235:9070] critical: 41 XXX 0x0000000100e40b2c UIKit_UIApplication_Main_string___string_string + 172
2016-09-29 13:03:07.627 XXX[235:9070] critical: 42 XXX 0x0000000100467a30 xxx_iOS_Application_Main_string__ + 160
2016-09-29 13:03:07.627 XXX[235:9070] critical: 43 XXX 0x00000001007ee3e4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
2016-09-29 13:03:07.627 XXX[235:9070] critical: 44 XXX 0x0000000100208178 mono_jit_runtime_invoke + 1772
2016-09-29 13:03:07.627 XXX[235:9070] critical: 45 XXX 0x00000001002771ac do_runtime_invoke + 112
2016-09-29 13:03:07.627 XXX[235:9070] critical: 46 XXX 0x0000000100279790 mono_runtime_exec_main + 832
2016-09-29 13:03:07.627 XXX[235:9070] critical: 47 XXX 0x00000001002793ac mono_runtime_run_main + 764
2016-09-29 13:03:07.627 XXX[235:9070] critical: 48 XXX 0x00000001001ed3c8 mono_jit_exec + 236
2016-09-29 13:03:07.627 XXX[235:9070] critical: 49 XXX 0x000000010032f698 xamarin_main + 2168
2016-09-29 13:03:07.627 XXX[235:9070] critical: 50 XXX 0x000000010425d954 main + 96
2016-09-29 13:03:07.627 XXX[235:9070] critical: 51 libdyld.dylib 0x000000019a8f68b8 + 4

2016-09-29 13:03:07.627 XXX[235:9070] 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.

With iOS 10 everything works fine, but with previous versions it just crashes.
Anyone that has the same problem? Any help will be very appreciated.
Regards,
Ilber

Tagged:
Sign In or Register to comment.