I have been using SfDataGrid in a deployed application for over a year without any issues. Recently the iPhone 10 was released and I noticed that the datagrid is crashing, but only on iPhone 10. Previous phones work without any issues.
Below is the error and stack trace from the crash and it is coming from within the SfDataGrid component:
Object reference not set to an instance of an object
at Syncfusion.SfDataGrid.VisualContainer.set_VerticalOffset (System.Double value) [0x00006] in <c3adc0ba74224f2691c435bf11ff9990>:0
at Syncfusion.SfDataGrid.VisualContainer.VisualContainer_Scrolled (System.Object sender, System.EventArgs e) [0x0001c] in <c3adc0ba74224f2691c435bf11ff9990>:0
at UIKit.UIScrollView+_UIScrollViewDelegate.Scrolled (UIKit.UIScrollView scrollView) [0x0000d] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/build/ios/native/UIKit/UIScrollView.g.cs:1364
at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSendSuper_IntPtr (intptr,intptr,intptr)
at UIKit.UIView.AddSubview (UIKit.UIView view) [0x00041] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/build/ios/native/UIKit/UIView.g.cs:270
at Syncfusion.SfDataGrid.SfDataGrid.gridLoaded () [0x0001c] in <c3adc0ba74224f2691c435bf11ff9990>:0
at Syncfusion.SfDataGrid.SfDataGrid.LayoutSubviews () [0x00008] in <c3adc0ba74224f2691c435bf11ff9990>:0
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 /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at AppName.iOS.Application.Main (System.String[] args) [0x00001] in AppName.iOS/Main.cs:12
Does anyone know if there's a fix for this?
I did notice that a basic configuration of the SfDataGrid does work ok even on iPhone 10, but when I start using more custom configuration options in the grid it starts to crash. I have not been able to pin point which specific configuration is causing this just yet.
Any help / info would be appreciated.
We have fixed the reported crashing of SfDataGrid in iPhone 10. This issue has been included in our upcoming releases, which is scheduled to be rolled out by the End of December 2017. If the custom assemblies are required, please contact us through the direct trac incident.
Direct trac link: https://www.syncfusion.com/account/login
Regards,
Shivagurunathan. K