twintechs / TwinTechsFormsLib

Apache License 2.0
193 stars 73 forks source link

Xamarin.Forms 2.0.1.6495 - GetRendererDelegate issues #35

Closed gotnull closed 8 years ago

gotnull commented 8 years ago

Error thrown in ViewExtensions:

_getRendererDelegate = (GetRendererDelegate)method.CreateDelegate (typeof(GetRendererDelegate));

Throws the following exception:

2016-01-27 16:17:52.042 TwinTechsFormsExample.iOS[950:39350] Unhandled Exception: System.ArgumentException: method arguments are incompatible at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x0034a] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/Delegate.cs:287 at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) [0x00000] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/Delegate.cs:307 at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/Delegate.cs:312 at System.Reflection.MethodInfo.CreateDelegate (System.Type delegateType) [0x00000] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MethodInfo.cs:147 at TwinTechs.Ios.Extensions.ViewExtensions.GetRenderer (Xamarin.Forms.BindableObject bindable) [0x0004d] in /Users/fulvio/Downloads/TwinTechsFormsLib-master/TwinTechsForms/TwinTechsForms.iOS/TwinTechs/Ios/Extensions/ViewExtensions.cs:32 at TwinTechs.Ios.Controls.PageViewContainerRenderer.ChangePage (Xamarin.Forms.Page page) [0x0001a] in /Users/fulvio/Downloads/TwinTechsFormsLib-master/TwinTechsForms/TwinTechsForms.iOS/TwinTechs/Ios/Controls/PageViewContainerRenderer.cs:42 at TwinTechs.Ios.Controls.PageViewContainerRenderer.m0 () [0x0001d] in /Users/fulvio/Downloads/TwinTechsFormsLib-master/TwinTechsForms/TwinTechsForms.iOS/TwinTechs/Ios/Controls/PageViewContainerRenderer.cs:74 at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/2377/73229919/source/maccore/src/Foundation/NSAction.cs:163 at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/2377/73229919/source/maccore/src/UIKit/UIApplication.cs:77 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/2377/73229919/source/maccore/src/UIKit/UIApplication.cs:61 at TwinTechsFormsExample.iOS.Application.Main (System.String[] args) [0x00008] in /Users/fulvio/Downloads/TwinTechsFormsLib-master/TwinTechsForms/iOS/Main.cs:17 2016-01-27 16:17:52.043 TwinTechsFormsExample.iOS[950:39350] Unhandled managed exception: method arguments are incompatible (System.ArgumentException) at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x0034a] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/Delegate.cs:287 at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) [0x00000] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/Delegate.cs:307 at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/Delegate.cs:312 at System.Reflection.MethodInfo.CreateDelegate (System.Type delegateType) [0x00000] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MethodInfo.cs:147 at TwinTechs.Ios.Extensions.ViewExtensions.GetRenderer (Xamarin.Forms.BindableObject bindable) [0x0004d] in /Users/fulvio/Downloads/TwinTechsFormsLib-master/TwinTechsForms/TwinTechsForms.iOS/TwinTechs/Ios/Extensions/ViewExtensions.cs:32 at TwinTechs.Ios.Controls.PageViewContainerRenderer.ChangePage (Xamarin.Forms.Page page) [0x0001a] in /Users/fulvio/Downloads/TwinTechsFormsLib-master/TwinTechsForms/TwinTechsForms.iOS/TwinTechs/Ios/Controls/PageViewContainerRenderer.cs:42 at TwinTechs.Ios.Controls.PageViewContainerRenderer.m0 () [0x0001d] in /Users/fulvio/Downloads/TwinTechsFormsLib-master/TwinTechsForms/TwinTechsForms.iOS/TwinTechs/Ios/Controls/PageViewContainerRenderer.cs:74 at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/2377/73229919/source/maccore/src/Foundation/NSAction.cs:163 at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/2377/73229919/source/maccore/src/UIKit/UIApplication.cs:77 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/2377/73229919/source/maccore/src/UIKit/UIApplication.cs:61 at TwinTechsFormsExample.iOS.Application.Main (System.String[] args) [0x00008] in /Users/fulvio/Downloads/TwinTechsFormsLib-master/TwinTechsForms/iOS/Main.cs:17 2016-01-27 16:17:52.043 TwinTechsFormsExample.iOS[950:39350] critical: Stacktrace:

2016-01-27 16:17:52.043 TwinTechsFormsExample.iOS[950:39350] critical: Native stacktrace:

2016-01-27 16:17:52.073 TwinTechsFormsExample.iOS[950:39350] critical: 0 TwinTechsFormsExample.iOS 0x0019e8f7 mono_handle_native_sigsegv + 311 2016-01-27 16:17:52.073 TwinTechsFormsExample.iOS[950:39350] critical: 1 TwinTechsFormsExample.iOS 0x001a5ed1 sigabrt_signal_handler + 145 2016-01-27 16:17:52.073 TwinTechsFormsExample.iOS[950:39350] critical: 2 libsystem_platform.dylib 0x0964501b _sigtramp + 43 2016-01-27 16:17:52.074 TwinTechsFormsExample.iOS[950:39350] critical: 3 ??? 0xffffffff 0x0 + 4294967295 2016-01-27 16:17:52.074 TwinTechsFormsExample.iOS[950:39350] critical: 4 libsystem_c.dylib 0x093d965d abort + 156 2016-01-27 16:17:52.074 TwinTechsFormsExample.iOS[950:39350] critical: 5 TwinTechsFormsExample.iOS 0x00326706 xamarin_unhandled_exception_handler + 342 2016-01-27 16:17:52.074 TwinTechsFormsExample.iOS[950:39350] critical: 6 TwinTechsFormsExample.iOS 0x0019f15b mono_invoke_unhandled_exception_hook + 91 2016-01-27 16:17:52.074 TwinTechsFormsExample.iOS[950:39350] critical: 7 TwinTechsFormsExample.iOS 0x0019dfdd mono_handle_exception_internal + 6061 2016-01-27 16:17:52.074 TwinTechsFormsExample.iOS[950:39350] critical: 8 TwinTechsFormsExample.iOS 0x0019c829 mono_handle_exception + 41 2016-01-27 16:17:52.074 TwinTechsFormsExample.iOS[950:39350] critical: 9 TwinTechsFormsExample.iOS 0x00138f1e mono_x86_throw_exception + 142 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 10 ??? 0x1616ef57 0x0 + 370601815 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 11 ??? 0x1a8f0dbc 0x0 + 445582780 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 12 ??? 0x1a8f0d50 0x0 + 445582672 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 13 ??? 0x1a8f0cfc 0x0 + 445582588 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 14 ??? 0x1a8f0b7b 0x0 + 445582203 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 15 ??? 0x1a8eeca0 0x0 + 445574304 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 16 ??? 0x1a8eebd4 0x0 + 445574100 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 17 ??? 0x1a2928d9 0x0 + 438905049 2016-01-27 16:17:52.075 TwinTechsFormsExample.iOS[950:39350] critical: 18 ??? 0x161f192e 0x0 + 371136814 2016-01-27 16:17:52.076 TwinTechsFormsExample.iOS[950:39350] critical: 19 TwinTechsFormsExample.iOS 0x001ab6a3 mono_jit_runtime_invoke + 707 2016-01-27 16:17:52.076 TwinTechsFormsExample.iOS[950:39350] critical: 20 TwinTechsFormsExample.iOS 0x0026180f mono_runtime_invoke + 127 2016-01-27 16:17:52.076 TwinTechsFormsExample.iOS[950:39350] critical: 21 TwinTechsFormsExample.iOS 0x000aa881 _ZL30native_to_managed_trampoline_1P11objc_objectP13objc_selectorPP11MonoMethodPKcS7 + 257 2016-01-27 16:17:52.076 TwinTechsFormsExample.iOS[950:39350] critical: 22 TwinTechsFormsExample.iOS 0x000aed1a -[MonoMac_NSAsyncActionDispatcher xamarinApplySelector] + 74 2016-01-27 16:17:52.076 TwinTechsFormsExample.iOS[950:39350] critical: 23 libobjc.A.dylib 0x084dc059 -[NSObject performSelector:withObject:] + 70 2016-01-27 16:17:52.076 TwinTechsFormsExample.iOS[950:39350] critical: 24 Foundation 0x010580d8 NSThreadPerformPerform + 323 2016-01-27 16:17:52.076 TwinTechsFormsExample.iOS[950:39350] critical: 25 CoreFoundation 0x089206ff CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 15 2016-01-27 16:17:52.076 TwinTechsFormsExample.iOS[950:39350] critical: 26 CoreFoundation 0x0891638b CFRunLoopDoSources0 + 523 2016-01-27 16:17:52.077 TwinTechsFormsExample.iOS[950:39350] critical: 27 CoreFoundation 0x089157a8 CFRunLoopRun + 1032 2016-01-27 16:17:52.077 TwinTechsFormsExample.iOS[950:39350] critical: 28 CoreFoundation 0x089150e6 CFRunLoopRunSpecific + 470 2016-01-27 16:17:52.077 TwinTechsFormsExample.iOS[950:39350] critical: 29 CoreFoundation 0x08914efb CFRunLoopRunInMode + 123 2016-01-27 16:17:52.077 TwinTechsFormsExample.iOS[950:39350] critical: 30 GraphicsServices 0x09c13664 GSEventRunModal + 192 2016-01-27 16:17:52.077 TwinTechsFormsExample.iOS[950:39350] critical: 31 GraphicsServices 0x09c134a1 GSEventRun + 104 2016-01-27 16:17:52.077 TwinTechsFormsExample.iOS[950:39350] critical: 32 UIKit 0x0180ebfa UIApplicationMain + 160 2016-01-27 16:17:52.077 TwinTechsFormsExample.iOS[950:39350] critical: 33 ??? 0x18a09b50 0x0 + 413178704 2016-01-27 16:17:52.077 TwinTechsFormsExample.iOS[950:39350] critical: 34 ??? 0x18a09948 0x0 + 413178184 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 35 ??? 0x17dfea38 0x0 + 400550456 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 36 ??? 0x17dfe774 0x0 + 400549748 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 37 ??? 0x17dfe900 0x0 + 400550144 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 38 TwinTechsFormsExample.iOS 0x001ab6a3 mono_jit_runtime_invoke + 707 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 39 TwinTechsFormsExample.iOS 0x0026180f mono_runtime_invoke + 127 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 40 TwinTechsFormsExample.iOS 0x00266521 mono_runtime_exec_main + 401 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 41 TwinTechsFormsExample.iOS 0x002662e5 mono_runtime_run_main + 629 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 42 TwinTechsFormsExample.iOS 0x001341fd mono_jit_exec + 93 2016-01-27 16:17:52.078 TwinTechsFormsExample.iOS[950:39350] critical: 43 TwinTechsFormsExample.iOS 0x0033f871 xamarin_main + 2497 2016-01-27 16:17:52.079 TwinTechsFormsExample.iOS[950:39350] critical: 44 TwinTechsFormsExample.iOS 0x000f47a1 main + 113 2016-01-27 16:17:52.079 TwinTechsFormsExample.iOS[950:39350] critical: 45 libdyld.dylib 0x09332a21 start + 1 2016-01-27 16:17:52.079 TwinTechsFormsExample.iOS[950:39350] critical: 46 ??? 0x00000003 0x0 + 3

2016-01-27 16:17:52.079 TwinTechsFormsExample.iOS[950:39350] 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.

gotnull commented 8 years ago

Fixed by changing BindableObject to VisualElement.

https://github.com/twintechs/TwinTechsFormsLib/issues/26