Getting dispose exceptions on IOS only

Hi,

I see randomly a few crashes in my appcenter for IOS with the following stacktrace. I am not disposing anything myself. Probably it is getting disposed on navigation away from the page. any idea what could be the problem here?

Application Specific Information: *** Terminating app due to uncaught exception 'SIGABRT', reason: 'UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.' Xamarin Exception Stack: UIKit.UIKitThreadAccessException: UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread. at UIKit.UIApplication.EnsureUIThread () [0x00020] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:101 at UIKit.UIView.RemoveFromSuperview () [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/ios/native/UIKit/UIView.g.cs:1254 at Syncfusion.SfChart.iOS.SFSeries.DisposeSeries () [0x00086] in <918ce82952d44e25b9af03b457789327>:0 at Syncfusion.SfChart.iOS.SFChart.DisposeChart () [0x000fc] in <918ce82952d44e25b9af03b457789327>:0 at Syncfusion.SfChart.XForms.iOS.Disposer.Dispose (Syncfusion.SfChart.XForms.SfChart sfchart) [0x00018] in <918ce82952d44e25b9af03b457789327>:0 at Syncfusion.SfChart.XForms.iOS.Renderers.SfChartRenderer.Dispose (System.Boolean disposing) [0x00008] in <918ce82952d44e25b9af03b457789327>:0 at Foundation.NSObject.Finalize () [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSObject2.cs:207


2 Replies

GM Gayathri Manickam Syncfusion Team January 17, 2022 02:10 PM UTC

Hi Emil, 
 
Currently we are validating the reported issue from the provided stack trace, and we will update you the complete details in two business days (January 19, 2022). We appreciate your patience until then.  
 
Thanks, 
Gayathri M. 



GM Gayathri Manickam Syncfusion Team January 19, 2022 02:04 PM UTC

Hi Emil, 
 
We have tried to reproduce the reported issue with different scenario using the provided stack trace and we were unable to reproduce at our end. Also, stack trace shown exception thrown from the iOS framework. We are not aware of your exact used case scenario of chart in your project. Hence, could you please provide us more information such as chart code snippet added in your project or simple sample to replicate the issue which will be helpful us to provide solution at earlier.  
 
Regards,  
Gayathri M 


Loader.
Up arrow icon