System Crash when I swipe to Delete a ListView item and then Select another Item

JohnPBurkeJohnPBurke USMember ✭✭

Latest stable version of Xamarin.Forms and Visual Studio 2019.

Stack trace shows error originates in Xamarin.Forms.Platform.iOS.ContextScrollViewDelegate. I did some research and it shows this bug was fixed long ago.

Is there a fix for this?

Stack Trace:
[0:] Outer
[0:] Outer.Message: Object reference not set to an instance of an object
[0:] Outer.Source: Xamarin.Forms.Platform.iOS
[0:] Outer.StackTrace: at Xamarin.Forms.Platform.iOS.ContextScrollViewDelegate+<>c__DisplayClass25_0.b__1 (UIKit.UIGestureRecognizer recognizer, UIKit.UIGestureRecognizer r) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\ContextScrollViewDelegate.cs:178
at UIKit.UIGestureRecognizer+_UIGestureRecognizerDelegate.ShouldRecognizeSimultaneously (UIKit.UIGestureRecognizer gestureRecognizer, UIKit.UIGestureRecognizer otherGestureRecognizer) [0x0000a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.10.0.153/src/Xamarin.iOS/UIKit/UIGestureRecognizer.g.cs:908
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.10.0.153/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.10.0.153/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at XamAppGrandLife.iOS.Application.Main (System.String[] args) [0x00002] in C:\Development\GLH\Administration\XamAppGrandLife\XamAppGrandLife.iOS\Main.cs:15

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    I can't reproduce the error on my side , could you upload a basic sample ?

  • JohnPBurkeJohnPBurke USMember ✭✭
    I think it has to do with uneven rows. I also have a custom view for the items.
  • JohnPBurkeJohnPBurke USMember ✭✭

    Here is screen capture of the crash...

  • ColeXColeX Member, Xamarin Team Xamurai

    Could you share me a sample which can reproduce the error ?

  • JohnPBurkeJohnPBurke USMember ✭✭

    I can't share the project. I have been trying for days to fix. Getting nowhere...

  • ColeXColeX Member, Xamarin Team Xamurai
  • JohnPBurkeJohnPBurke USMember ✭✭

    I posted to that site and the requested more information. One thing I found was that my ListView crashes when it is in a TableView->TableViewSection. If I just display the list in a StackLayout, it no longer crashes.

    I really like the formatting of the TreeView to display content but I need some help with finding the reason for the crash.

Sign In or Register to comment.