Hello
I am using Syncfusion.Xamarin.Forms 18.3.0.42.
My application sometimes crashes, when accessing the settings page, that contains a TableView. In the TableView, there are some labels, switch cells and some custom cells. These custom cells contain SfBussons.
When accessing the page a few times, an error occurs: Cannot access a disposed object. Object name: 'SfButtonRenderer'.
This only happens on an iOS device/simulator. On UWP it works fine.
Could you please have a look at this?
Here is the stack trace:
at Foundation.NSObject.get_SuperHandle () [0x00012] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/Foundation/NSObject2.cs:394
at UIKit.UIView.SetNeedsDisplay () [0x00023] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/UIKit/UIView.g.cs:1767
at Syncfusion.XForms.iOS.Border.SfBorderRenderer.UpdateProperties (System.Boolean isCornerRadiusUpdated, System.Boolean isBackgroundColorUpdated, System.Boolean isBorderColorUpdated, System.Boolean isBorderWidthUpdated, System.Boolean hasShadowUpdated, System.Boolean isDashArrayUpdated, System.Boolean isShadowColorUpdated) [0x001db] in <d21a6df4b87c4249a15f362557cfb646>:0
at Syncfusion.XForms.iOS.Border.SfBorderRenderer.OnSizeChanged (System.Object sender, System.EventArgs e) [0x00000] in <d21a6df4b87c4249a15f362557cfb646>:0
at (wrapper delegate-invoke) <Module>.invoke_void_object_EventArgs(object,System.EventArgs)
at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00029] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:1047
at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:357
at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:724
at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x001da] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:157
at Xamarin.Forms.Platform.iOS.ViewCellRenderer+ViewTableCell.LayoutSubviews () [0x00081] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Cells\ViewCellRenderer.cs:97
at Xamarin.Forms.Platform.iOS.CellTableViewCell.GetNativeCell (UIKit.UITableView tableView, Xamarin.Forms.Cell cell, System.Boolean recycleCells, System.String templateId) [0x000dc] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Cells\CellTableViewCell.cs:94
at Xamarin.Forms.Platform.iOS.TableViewModelRenderer.GetCell (UIKit.UITableView tableView, Foundation.NSIndexPath indexPath) [0x0001d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\TableViewModelRenderer.cs:34
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/14.0.0.0/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/14.0.0.0/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at MyProject.iOS.Application.Main (System.String[] args) [0x00002] in D:\.Net\MyProject\MyProject\MyProject.iOS\Main.cs:15
Kind regards
Phil