Bug 21894 - Exception from DynamicRegistrar
Summary: Exception from DynamicRegistrar
Status: RESOLVED DUPLICATE of bug 20675
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: master
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-06 19:59 UTC by Todd Berman
Modified: 2014-08-07 10:13 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 DUPLICATE of bug 20675

Description Todd Berman 2014-08-06 19:59:32 UTC
We get this stack when using: Version: 7.2.6.28 (Business Edition)
Hash: 606f31a
Branch: 
Build date: 2014-08-01 15:27:48-0400

Aug  6 16:27:18 Emuyes-iPhone-5S DMFiOS[3976] <Warning>: LogHost: Unhandled AppDomain exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> MonoTouch.MonoTouchException: Failed to find the closed generic method 'InvokeConformsToProtocol' on the type 'DMF.iOS.Views.Chats.ChatMessageCellBase`1+DefineDisabledTextView[[DMF.Core.ViewModels.Chats.ChatMessageViewModel, DMF-Core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
	  at MonoTouch.Registrar.DynamicRegistrar.FindClosedMethod (System.Type closed_type, System.Reflection.MethodBase open_method) [0x00072] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/DynamicRegistrar.cs:635 
	  at MonoTouch.ObjCRuntime.Runtime.GetGenericMethodDirect (IntPtr obj, IntPtr typeptr, IntPtr methodptr, Int32 paramCount, System.IntPtr* paramptr) [0x00035] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:273 
	  at (wrapper native-to-managed) MonoTouch.ObjCRuntime.Runtime:GetGenericMethodDirect (intptr,intptr,intptr,int,intptr*)
	  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:IntPtr_objc_msgSendSuper (intptr,intptr)
	  at MonoTouch.UIKit.UITextView..ctor () [0x0003b] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UITextView.g.cs:247 
	  at DMF.iOS.Views.Chats.ChatMessageCellBase`1+DefineDisabledTextView[DMF.Core.ViewModels.Chats.ChatMessageViewModel]..ctor () [0x00000] in <filename unknown>:0 
	  at DMF.iOS.Views.Chats.ChatMessageCell..ctor (IntPtr handle) [0x0007c] in /Users/emuye/Code/dmf-client/DMF-iOS/Views/Chats/ChatMessageCell.cs:40 
	  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
	  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:537 
	  --- End of inner exception stack trace ---
	  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00016] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:543 
	  at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00095] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:528 
	  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:556 
	  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62 
	  at MonoTouch.ObjCRuntime.Runtime.ConstructNSObject[NSObject] (IntPtr ptr, System.Type type, MissingCtorResolution missingCtorResolution) [0x00000] in <filename unknown>:0 
	  at MonoTouch.ObjCRuntime.Runtime.ConstructNSObject (IntPtr ptr, IntPtr klass, MissingCtorResolution missingCtorResolution) [0x00013] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:417 
	  at MonoTouch.ObjCRuntime.Runtime.GetNSObject (IntPtr ptr, MissingCtorResolution missingCtorResolution) [0x00021] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:501 
	  at MonoTouch.ObjCRuntime.Runtime.GetNSObject (IntPtr ptr) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:489 
	  at MonoTouch.UIKit.UICollectionView.DequeueReusableCell (MonoTouch.Foundation.NSString reuseIdentifier, MonoTouch.Foundation.NSIndexPath indexPath) [0x0005f] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UICollectionView.g.cs:252 
	  at ReactiveUI.UICollectionViewAdapter.DequeueReusableCell (MonoTouch.Foundation.NSString cellKey, MonoTouch.Foundation.NSIndexPath path) [0x00000] in <filename unknown>:0 
	  at ReactiveUI.CommonReactiveSource`4[System.Object,MonoTouch.UIKit.UICollectionView,MonoTouch.UIKit.UICollectionViewCell,ReactiveUI.CollectionViewSectionInformation`1[System.Object]].GetCell (MonoTouch.Foundation.NSIndexPath indexPath) [0x00000] in <filename unknown>:0 
	  at ReactiveUI.ReactiveCollectionViewSource`1[System.Object].GetCell (MonoTouch.UIKit.UICollectionView collectionView, MonoTouch.Foundation.NSIndexPath indexPath) [0x00000] in <filename unknown>:0 
	  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper (intptr,intptr)
	  at MonoTouch.UIKit.UIView.LayoutSubviews () [0x0002a] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UIView.g.cs:1325 
	  at DMF.iOS.Views.Chats.ChatMessageListView.LayoutSubviews () [0x00018] in /Users/emuye/Code/dmf-client/DMF-iOS/Views/Chats/ChatMessageListView.cs:130 
	  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,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:39 
	  at DMF.iOS.Application.Main (System.String[] args) [0x00008] in /Users/emuye/Code/dmf-client/DMF-iOS/Main.cs:11 
Aug  6 16:27:19 Emuyes-iPhone-5S DMFiOS[3976] <Warning>: Unhandled managed exception: Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
	  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00016] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:543 
	  at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00095] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:528 
	  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:556 
	  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62 
	  at MonoTouch.ObjCRuntime.Runtime.ConstructNSObject[NSObject] (IntPtr ptr, System.Type type, MissingCtorResolution missingCtorResolution) [0x00000] in <filename unknown>:0 
	  at MonoTouch.ObjCRuntime.Runtime.ConstructNSObject (IntPtr ptr, IntPtr klass, MissingCtorResolution missingCtorResolution) [0x00013] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:417 
	  at MonoTouch.ObjCRuntime.Runtime.GetNSObject (IntPtr ptr, MissingCtorResolution missingCtorResolution) [0x00021] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:501 
	  at MonoTouch.ObjCRuntime.Runtime.GetNSObject (IntPtr ptr) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:489 
	  at MonoTouch.UIKit.UICollectionView.DequeueReusableCell (MonoTouch.Foundation.NSString reuseIdentifier, MonoTouch.Foundation.NSIndexPath indexPath) [0x0005f] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UICollectionView.g.cs:252 
	  at ReactiveUI.UICollectionViewAdapter.DequeueReusableCell (MonoTouch.Foundation.NSString cellKey, MonoTouch.Foundation.NSIndexPath path) [0x00000] in <filename unknown>:0 
	  at ReactiveUI.CommonReactiveSource`4[System.Object,MonoTouch.UIKit.UICollectionView,MonoTouch.UIKit.UICollectionViewCell,ReactiveUI.CollectionViewSectionInformation`1[System.Object]].GetCell (MonoTouch.Foundation.NSIndexPath indexPath) [0x00000] in <filename unknown>:0 
	  at ReactiveUI.ReactiveCollectionViewSource`1[System.Object].GetCell (MonoTouch.UIKit.UICollectionView collectionView, MonoTouch.Foundation.NSIndexPath indexPath) [0x00000] in <filename unknown>:0 
	  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper (intptr,intptr)
	  at MonoTouch.UIKit.UIView.LayoutSubviews () [0x0002a] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UIView.g.cs:1325 
	  at DMF.iOS.Views.Chats.ChatMessageListView.LayoutSubviews () [0x00018] in /Users/emuye/Code/dmf-client/DMF-iOS/Views/Chats/ChatMessageListView.cs:130 
	  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,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:39 
	  at DMF.iOS.Application.Main (System.String[] args) [0x00008] in /Users/emuye/Code/dmf-client/DMF-iOS/Main.cs:11
Comment 1 Rolf Bjarne Kvinge [MSFT] 2014-08-07 09:28:32 UTC
This has been fixed already, for a workaround have a look at the duplicated bug (comment 1).

*** This bug has been marked as a duplicate of bug 20675 ***