Hi all,
I'm running the current stable build of Xamarin.iOS (6.4.3.0 (Business Edition)). I just hit this error when tapping a button that has a segue assigned to it in a storyboard:
2013-08-29 19:25:14.559 XNotesiOS[19348:907] Unhandled Exception: Failed to marshal the Objective-C object 0x21be9290 (type: MonoTouch.UIKit.UIGestureRecognizer+_UIGestureRecognizerDelegate). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance (because the type 'MonoTouch.UIKit.UIGestureRecognizer+_UIGestureRecognizerDelegate' does not have a constructor that takes one IntPtr argument).
I'm repeatedly working through one of my app's workflows to test for memory leaks. I've seen random crashes where Xamarin Studio doesn't give any indication of what happened, but the XCode device console shows something like this stack trace when I attempted to request GC to occur. This is the first time I've seen the above exception.
<Error>: Stacktrace:
<Error>: at <unknown> <0xffffffff>
<Error>: at (wrapper managed-to-native) System.GC.InternalCollect (int) <0xffffffff>
<Error>: at System.GC.Collect () [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/GC.cs:51
<Error>: at XNotes_iOS.LoginController.ViewDidAppear (bool) [0x00033] in /Users/tommybaggett/Workspaces/cornerstone/XNotesMobile/XNotes_iOS/Controllers/LoginController.cs:199
<Error>: at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
<Error>: at <unknown> <0xffffffff>
<Error>: at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
<Error>: at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
<Error>: at XNotes_iOS.Application.Main (string[]) [0x0004b] in /Users/tommybaggett/Workspaces/cornerstone/XNotesMobile/XNotes_iOS/Main.cs:40
<Error>: at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>