Error with ContentPage Behavior
Opened this issue · 0 comments
uysuy commented
Hello,
I have tried to show shake animation with content page in Xamarin Form,
Any way it got some error:
System.InvalidOperationException: bindable not an instance of AssociatedType
2019-10-17 00:20:29.474545-0700 CABMOBILE.iOS[12406:142385]
Unhandled Exception:
System.InvalidOperationException: bindable not an instance of AssociatedType
at Xamarin.Forms.Behavior.Xamarin.Forms.IAttachedObject.AttachTo (Xamarin.Forms.BindableObject bindable) [0x0001c] in D:\a\1\s\Xamarin.Forms.Core\Interactivity\Behavior.cs:21
at Xamarin.Forms.AttachedCollection1[T].InsertItem (System.Int32 index, T item) [0x0002b] in D:\a\1\s\Xamarin.Forms.Core\Interactivity\AttachedCollection.cs:58 at System.Collections.ObjectModel.Collection
1[T].Add (T item) [0x00020] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/external/corefx/src/Common/src/CoreLib/System/Collections/ObjectModel/Collection.cs:73
at CABMOBILE.Forms.HomePages.HomePage.presentChanged (System.Object sender, System.EventArgs e) [0x0000c] in D:\Project\CAB\Mobile Banking\CABMOBILE\CABMOBILE\CABMOBILE\Forms\HomePages\Controllers\HomePage.xaml.cs:39
at Xamarin.Forms.MasterDetailPage.OnIsPresentedPropertyCha
nged (Xamarin.Forms.BindableObject sender, System.Object oldValue, System.Object newValue) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\MasterDetailPage.cs:223
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:445
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:379
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x00042] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:316
at
Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:293
at Xamarin.Forms.MasterDetailPage.set_IsPresented (System.Boolean value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\MasterDetailPage.cs:60
at Xamarin.Forms.Platform.iOS.NavigationRenderer+<>c__DisplayClass76_0.g__OnItemTapped|1 (System.Object sender, System.EventArgs e) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:776
at UIKit.UIBarButtonItem+Callback.Call (Foundation.NSObject sender) [0x0000d] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/UIKit/UIBarButtonItem.cs:30
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005
] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/UIKit/UIApplication.cs:63
at CABMOBILE.iOS.Application.Main (System.String[] args) [0x00001] in D:\Project\CAB\Mobile Banking\CABMOBILE\CABMOBILE\CABMOBILE.iOS\Main.cs:17
2019-10-17 00:20:29.479288-0700 CABMOBILE.iOS[12406:142385] Unhandled managed exception:
bindable not an instance of AssociatedType (System.InvalidOperationException)
at Xamarin.Forms.Behavior.Xamarin.Forms.IAttachedObject.AttachTo (Xamarin.Forms.BindableObject bindable) [0x0001c] in D:\a\1\s\Xamarin.Forms.Core\Interactivity\Behavior.cs:21
at Xamarin.Forms.AttachedCollection1[T].InsertItem (System.Int32 index, T item) [0x0002b] in D:\a\1\s\Xamarin.Forms.Core\Interactivity\AttachedCollection.cs:58 at System.Collection s.ObjectModel.Collection
1[T].Add (T item) [0x00020] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/external/corefx/src/Common/src/CoreLib/System/Collections/ObjectModel/Collection.cs:73
at CABMOBILE.Forms.HomePages.HomePage.presentChanged (System.Object sender, System.EventArgs e) [0x0000c] in D:\Project\CAB\Mobile Banking\CABMOBILE\CABMOBILE\CABMOBILE\Forms\HomePages\Controllers\HomePage.xaml.cs:39
at Xamarin.Forms.MasterDetailPage.OnIsPresentedPropertyChanged (Xamarin.Forms.BindableObject sender, System.Object oldValue, System.Object newValue) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\MasterDetailPage.cs:223
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:445
at Xamarin.Forms.Bi
ndableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:379
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x00042] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:316
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:293
at Xamarin.Forms.MasterDetailPage.set_IsPresented (System.Boolean value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\MasterDetailPage.cs:60
at Xamarin.Forms.Platform.iOS.NavigationRenderer+<>c__DisplayClass76_0.g__OnItemTapped|1 (System.Object sender, System.EventArgs e) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\N
avigationRenderer.cs:776
at UIKit.UIBarButtonItem+Callback.Call (Foundation.NSObject sender) [0x0000d] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/UIKit/UIBarButtonItem.cs:30
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/UIKit/UIApplication.cs:63
at CABMOBILE.iOS.Application.Main (System.String[] args) [0x00001] in D:\Project\CAB\Mobile Banking\CABMOBILE\CABMOBILE\CABMOBILE.iOS\Main.cs:17
2019-10-17 00:20:29.480577-070
0 CABMOBILE.iOS[12406:142385] critical: Stacktrace:
2019-10-17 00:20:29.480760-0700 CABMOBILE.iOS[12406:142385] critical:
Native stacktrace:
2019-10-17 00:20:29.489705-0700 CABMOBILE.iOS[12406:142385] critical: 0 CABMOBILE.iOS 0x0000000109ca9f94 mono_handle_native_crash + 244
2019-10-17 00:20:29.490090-0700 CABMOBILE.iOS[12406:142385] critical: 1 libsystem_platform.dylib 0x000000011a926b3d _sigtramp + 29
2019-10-17 00:20:29.490271-0700 CABMOBILE.iOS[12406:142385] critical: 2 ??? 0x000000010a93652c 0x0 + 4472399148
2019-10-17 00:20:29.490433-0700 CABMOBILE.iOS[12406:142385] critical: 3 libsystem_c.dylib 0x000000011a6a9c45 abort + 127
2019-10-17 00:20:29.490591-0700 CABMOBILE.iOS[12406:142385] critical: 4 CABMOBILE.iOS 0x0000000109ec682f xamarin_unhandled_exception_handler + 47
2019-10-17 00:20:29.490746-0700 CABMOBILE.iOS[12406:142385] critical: 5 CABMOBILE.iOS 0x0000000109d4744e mono_invoke_unhandled_exception_hook + 158
2019-10-17 00:20:29.490950-0700 CABMOBILE.iOS[12406:142385] critical: 6 CABMOBILE.
iOS 0x0000000109ca993c mono_handle_exception_internal + 6140
2019-10-17 00:20:29.491102-0700 CABMOBILE.iOS[12406:142385] critical: 7 CABMOBILE.iOS 0x0000000109ca8139 mono_handle_exception + 25
2019-10-17 00:20:29.491429-0700 CABMOBILE.iOS[12406:142385] critical: 8 CABMOBILE.iOS 0x0000000109c28603 mono_amd64_throw_exception + 131
2019-10-17 00:20:29.493006-0700 CABMOBILE.iOS[12406:142385] critical: 9 ??? 0x00000001397ae5a7 0x0 + 5259322791
2019-10-17 00:20:29.493269-0700 CABMOBILE.iOS[12406:142385] critical: 10 CABMOBILE.iOS 0x0000000109b8803d _ZL32native_to_managed_trampoline_178P11objc_objectP13objc_selectorPP11_MonoMethodP8NSObjectj + 461
2019-10-17 00:20:29.493540-0700 CABMOBILE.iOS[12406:142385] critical: 11 CABMOBILE.iOS 0x0000000109b87e68 -[UIKit_UIBarButtonItem_Callback InvokeAction:] + 56
2019-10-17 00:20:29.493752-0700 CABMOBILE.iOS[12406:142385] critical: 12 UIKitCore 0x0000000122de1ecb -[UIApplication sendAction:to:from:forEvent:] + 83
2019-10-17 00:20:29.494056-0700 CABMOBILE.iOS[12406:142385] critical: 13 UIKitCore 0x000000012252295b __45-[_UIButtonBarTargetAction _invoke:forEvent:]_block_invoke + 154
2019-10-17 00:20:29.494369-0700 CABMOBILE.iOS[12406:142385] critical: 14 UIKitCore
0x0000000122522894 -[_UIButtonBarTargetAction _invoke:forEvent:] + 152
2019-10-17 00:20:29.494662-0700 CABMOBILE.iOS[12406:142385] critical: 15 UIKitCore 0x0000000122de1ecb -[UIApplication sendAction:to:from:forEvent:] + 83
2019-10-17 00:20:29.494984-0700 CABMOBILE.iOS[12406:142385] critical: 16 UIKitCore 0x000000012281d0bd -[UIControl sendAction:to:forEvent:] + 67
2019-10-17 00:20:29.495367-0700 CABMOBILE.iOS[12406:142385] critical: 17 UIKitCore 0x000000012281d3da -[UIControl _sendActionsForEvents:withEvent:] + 450
2019-10-17 00:20:29.495934-0700 CABMOBILE.iOS[12406:142385] critical: 18 UIKitCore 0x000000012281c31e -[UIControl touchesEnded:withEvent:] + 583
2019-10-17 00:20:29.496823-0700 CABMOBILE.iOS[12406:142385] critical: 19 UIKitCore 0x0000000122e1d0a4 -[UIWindow _sendTouchesForEvent:] + 2729
2019-10-17 00:20:29.497133-0700 CABMOBILE.iOS[12406:142385] critical: 20 UIKitCore 0x0000000122e1e7a0 -[UIWindow sendEvent:] + 4080
2019-10-17 00:20:29.497303-0700 CABMOBILE.iOS[12406:142385] critical: 21 UIKitCore 0x0000000122dfc394 -[UIApplication sendEvent:] + 352
2019-10-17 00:20:29.497835-0700 CABMOBILE.iOS[12406:142385] critical: 22 UIKitCore 0x0000000122ed15a9 __dispatchPreprocessedEventFromEventQueue + 3054
2019-10-17 00:20:29.499048-0700 CABMOBILE.iOS[12406:142385] critical: 23 UIKitCore 0x0000000122ed41cb __handleEventQueueInternal + 5948
2019-10-17 00:20:29.499311-0700 CABMOBILE.iOS[12406:142385] critical: 24 CoreFoundation 0x00000001182ae721 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
2019-10-17 00:20:29.499493-0700 CABMOBILE.iOS[12406:142385] critical: 25 CoreFoundation 0x00000001182adf93 __CFRunLoopDoSources0 + 243
2019-10-17 00:20:29.499658-0700 CABMOBILE.iOS[12406:142385] critical: 26 CoreFoundation 0x00000001182a863f __CFRunLoopRun + 1263
2019-10-17 00:20:29.499831-0700 CABMOBILE.iOS[12406:142385] critical: 27 CoreFoundation 0x00000001182a7e11 CFRunLoopRunSpecific + 625
2019-10-17 00:20:29.499999-0700 CABMOBILE.iOS[12406:142385] critical: 28 GraphicsServices 0x000000011e59e1dd GSEventRunModal + 62
2019-10-17 00:20:29.500161-0700 CABMOBILE.iOS[12
406:142385] critical: 29 UIKitCore 0x0000000122de081d UIApplicationMain + 140
2019-10-17 00:20:29.500387-0700 CABMOBILE.iOS[12406:142385] critical: 30 ??? 0x000000013da391ee 0x0 + 5329097198
2019-10-17 00:20:29.500710-0700 CABMOBILE.iOS[12406:142385] critical: 31 ??? 0x000000013da38f83 0x0 + 5329096579
2019-10-17 00:20:29.501073-0700 CABMOBILE.iOS[12406:142385] 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.
The app has been terminated.
Do you have any solution please let me know.
Thanks