Bug 4996 - App crash on rotate using MT5.3.3 but work with MT5.2.11
Summary: App crash on rotate using MT5.3.3 but work with MT5.2.11
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.3.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-10 07:43 UTC by Mikkel Kruse Johnsen
Modified: 2013-10-29 08:10 UTC (History)
4 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 FIXED

Description Mikkel Kruse Johnsen 2012-05-10 07:43:37 UTC
[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Selector invoked from objective-c on a managed object (0x22AF8E0) that has been GC'ed ---> System.MissingMethodException: No constructor found for XMedicus.DetailViewController+SplitViewControllerDelegate::.ctor(System.IntPtr)
  at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00174] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Activator.cs:299 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Activator.cs:234 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <filename unknown>:0 
  at MonoTouch.ObjCRuntime.Runtime.ConstructNSObject (IntPtr ptr, IntPtr klass) [0x0000d] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:207 
  --- End of inner exception stack trace ---
  at MonoTouch.ObjCRuntime.Runtime.ConstructNSObject (IntPtr ptr, IntPtr klass) [0x00044] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:212 
  at MonoTouch.ObjCRuntime.Runtime.GetNSObject (IntPtr ptr) [0x0001f] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:256 
  at MonoTouch.ObjCRuntime.Runtime.GetNSObjectWrapped (IntPtr ptr) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:273 
  at (wrapper native-to-managed) MonoTouch.ObjCRuntime.Runtime:GetNSObjectWrapped (intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38 
  at XMedicus.Application.Main (System.String[] args) [0x00000] in /Users/mkj/Projects/StructuraIT/XMedicus/Main.cs:16 
Stacktrace:


Native stacktrace:

	0   XMedicus                            0x01167ed1 mono_handle_native_sigsegv + 244
	1   XMedicus                            0x0117f039 sigabrt_signal_handler + 112
	2   libsystem_c.dylib                   0x333ba7ed _sigtramp + 48
	3   libsystem_c.dylib                   0x333b020f pthread_kill + 54
	4   libsystem_c.dylib                   0x333a929f abort + 94
	5   XMedicus                            0x01209b0f monoeg_assertion_message + 58
	6   XMedicus                            0x0115857d mono_thread_abort + 112
	7   XMedicus                            0x01167c4f mono_handle_exception_internal + 2138
	8   XMedicus                            0x01167d1d mono_handle_exception + 12
	9   XMedicus                            0x0117e2f5 mono_arm_throw_exception + 116
	10  XMedicus                            0x00576a84 throw_exception + 48
	11  XMedicus                            0x000a1ba0 MonoTouch_ObjCRuntime_Runtime_GetNSObject_intptr + 144
	12  XMedicus                            0x000a1c20 MonoTouch_ObjCRuntime_Runtime_GetNSObjectWrapped_intptr + 28
	13  XMedicus                            0x000caad8 wrapper_native_to_managed_MonoTouch_ObjCRuntime_Runtime_GetNSObjectWrapped_intptr + 64
	14  XMedicus                            0x0121359c get_managed_object_for_ptr_fast + 116
	15  XMedicus                            0x0114e1e1 native_to_managed_trampoline_XMedicus_DetailViewController_SplitViewControllerDelegate_WillShowViewController + 72
	16  UIKit                               0x35ec8e35 -[UISplitViewController _updateMasterViewControllerFrame] + 1452
	17  UIKit                               0x35ec9269 -[UISplitViewController __viewWillLayoutSubviews] + 440
	18  UIKit                               0x35c1056b -[UILayoutContainerView layoutSubviews] + 178
	19  UIKit                               0x35bcf0bd -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 148
	20  CoreFoundation                      0x33f0d1fb -[NSObject performSelector:withObject:] + 42
	21  QuartzCore                          0x328a7aa5 -[CALayer layoutSublayers] + 216
	22  QuartzCore                          0x328a76bd _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 216
	23  QuartzCore                          0x328a75c9 -[CALayer layoutIfNeeded] + 152
	24  UIKit                               0x35d4da73 -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:] + 514
	25  UIKit                               0x35cafb1f -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3262
	26  UIKit                               0x35d4112b -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 46
	27  UIKit                               0x35d410bb -[UIWindow _setRotatableViewOrientation:duration:force:] + 70
	28  UIKit                               0x35c0fba9 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 108
	29  UIKit                               0x35bf6ea7 -[UIWindow _updateInterfaceOrientationFromDeviceOrientation:] + 162
	30  UIKit                               0x35c1026f -[UIWindow _updateInterfaceOrientationFromDeviceOrientationIfRotationEnabled:] + 74
	31  Foundation                          0x32f1a4ff __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_0 + 18
	32  CoreFoundation                      0x33f7a547 ___CFXNotificationPost_block_invoke_0 + 70
	33  CoreFoundation                      0x33f06097 _CFXNotificationPost + 1406
	34  Foundation                          0x32e8e3eb -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	35  UIKit                               0x35bd0f93 -[UIDevice setOrientation:animated:] + 214
	36  UIKit                               0x35bcc317 -[UIApplication handleEvent:withNewEvent:] + 2718
	37  UIKit                               0x35bcb70f -[UIApplication sendEvent:] + 54
	38  UIKit                               0x35bcb0e3 _UIApplicationHandleEvent + 5826
	39  GraphicsServices                    0x3348322b PurpleEventCallback + 882
	40  CoreFoundation                      0x33f82523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
	41  CoreFoundation                      0x33f824c5 __CFRunLoopDoSource1 + 140
	42  CoreFoundation                      0x33f81313 __CFRunLoopRun + 1370
	43  CoreFoundation                      0x33f044a5 CFRunLoopRunSpecific + 300
	44  CoreFoundation                      0x33f0436d CFRunLoopRunInMode + 104
	45  GraphicsServices                    0x33482439 GSEventRunModal + 136
	46  UIKit                               0x35bf9e7d UIApplicationMain + 1080
	47  XMedicus                            0x000ca5a0 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 240
	48  XMedicus                            0x0073d960 XMedicus_Application_Main_string__ + 152
	49  XMedicus                            0x0053ed44 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 200
	50  XMedicus                            0x0115a33f mono_jit_runtime_invoke + 1054
	51  XMedicus                            0x011c43f3 mono_runtime_invoke + 90
	52  XMedicus                            0x011c6fbf mono_runtime_exec_main + 306
	53  XMedicus                            0x011c7213 mono_runtime_run_main + 482
	54  XMedicus                            0x0115d7a7 mono_jit_exec + 94
	55  XMedicus                            0x0120e058 main + 2540
	56  XMedicus                            0x000021c8 start + 40

=================================================================
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 Mikkel Kruse Johnsen 2012-05-10 08:37:48 UTC
Well it does happen with MT 5.2.11 but not as often.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2012-05-10 09:15:36 UTC
Can you please add a test case/project? Without it I'd be guessing as to what's going on.
Comment 4 Miguel de Icaza [MSFT] 2012-10-19 16:34:05 UTC
We have posted an update that could help in this situation, would you be so kind to download the binaries in this page (it contains a description of the changes) and report whether this solves the problem?

https://docs.google.com/a/xamarin.com/document/d/1o3FQ-2oxF-v85iAIAr6rsIGSgQ-eSUUteozJe7C5fWE/edit
Comment 5 Mikkel Kruse Johnsen 2013-10-29 08:10:58 UTC
Old bug, no problem anymore.