We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfChart throw null reference exception when application running on iOS

Hi all,

We use SfChart in our xamarin forms app. All components are working as well in android but in the ios sfchart components throw null exception and application is crashing. How I can fix this error? 

SfComponent version: 17.2.0.36
Xamarin froms version: 4.1.0.618606




  at Syncfusion.SfChart.iOS.SFChart.MeasureLegend () [0x0002d] in <45e49b78aad8463bacfc698a15a14b28>:0 
  at Syncfusion.SfChart.iOS.SFChart.UpdateChart () [0x00570] in <45e49b78aad8463bacfc698a15a14b28>:0 
  at Syncfusion.SfChart.iOS.SFChart.LayoutSubviews () [0x00006] in <45e49b78aad8463bacfc698a15a14b28>: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 /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.110/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.14.0.110/src/Xamarin.iOS/UIKit/UIApplication.cs:65 
  at FeedBackMobile.iOS.Application.Main (System.String[] args) [0x00001] in C:\Users\skarahan\Projects\FeedbackMobile\FeedBackMobile\FeedBackMobile.iOS\Main.cs:17 

2 Replies

SK Salih KARAHAN July 29, 2019 09:20 AM

Does anyone need any other information about of this issue? 🙄


RA Rachel A Syncfusion Team July 30, 2019 01:57 AM

Hi Salih, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked with simple sample using provided version, but we are unable to reproduce the reported issue at our end. We have attached the prepared sample for your reference. Currently we are checking our source code based on the provided call stack.  
 
 
In the meantime, can you please modify the attached sample and revert to us which will be helpful to investigate further.  
 
Regards, 
Rachel. 


Loader.
Live Chat Icon For mobile
Up arrow icon