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

Crash on Displaying Scheduler on iOS only

Hello,

I have a xamarin forms app, that crashes as soon as the schedule control is displayed only on iOS. On Android works fine!
I am using the 17.2.0.51 version of Syncfusion controls. 
I have Visual Studio 2019 v. 16.3.1. The iOS emulator uses the latest version of Xcode v 11.0.

The control is hosted in master-detail page, and the error that I get is: System.NullReferenceException: Object reference not set to an instance of an object

I have initialized the Scheduler on 

   public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {

Syncfusion.SfSchedule.XForms.iOS.SfScheduleRenderer.Init();

// various init
LoadApplication(new App(fullpath));


       return base.FinishedLaunching(app, options);
}

The full exception from Visual studio is the following.
he thread 0xa has exited with code 0 (0x0).
2019-09-27 12:35:48.041513+0300 EasyPlan.iOS[9355:358297] 
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at Syncfusion.SfSchedule.iOS.HeaderView.UpdateHeaderStyle () [0x00096] in <5301650aaf554eeabe23d0cf6a5ff51f>:0 
  at Syncfusion.SfSchedule.iOS.SFSchedule.InitializeSchdule () [0x0001f] in <5301650aaf554eeabe23d0cf6a5ff51f>:0 
  at Syncfusion.SfSchedule.iOS.SFSchedule.LayoutSubviews () [0x00008] in <5301650aaf554eeabe23d0cf6a5ff51f>: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/13.2.0.42/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/13.2.0.42/src/Xamar
in.iOS/UIKit/UIApplication.cs:65 
  at EasyPlan.iOS.Application.Main (System.String[] args) [0x00001] in D:\TFSEH\EasyHotelia\EasyPlan\EasyPlan.iOS\Main.cs:17
2019-09-27 12:35:48.043302+0300 EasyPlan.iOS[9355:358297] Unhandled managed exception: Object reference not set to an instance of an object (System.NullReferenceException)
  at Syncfusion.SfSchedule.iOS.HeaderView.UpdateHeaderStyle () [0x00096] in <5301650aaf554eeabe23d0cf6a5ff51f>:0 
  at Syncfusion.SfSchedule.iOS.SFSchedule.InitializeSchdule () [0x0001f] in <5301650aaf554eeabe23d0cf6a5ff51f>:0 
  at Syncfusion.SfSchedule.iOS.SFSchedule.LayoutSubviews () [0x00008] in <5301650aaf554eeabe23d0cf6a5ff51f>: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/13.2.0.42/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/13.2.0.42/s
rc/Xamarin.iOS/UIKit/UIApplication.cs:65 
  at EasyPlan.iOS.Application.Main (System.String[] args) [0x00001] in D:\TFSEH\EasyHotelia\EasyPlan\EasyPlan.iOS\Main.cs:17




3 Replies

KA Karthikraja Arumugam Syncfusion Team September 27, 2019 10:13 AM UTC

Hi Anestis, 
 
Thank you for contacting Syncfusion support. 
 
We have checked the reported issue with Schedule. We have fixed the issue and included the issue fix in our Volume 3 Beta release v17.3.0.9, mentioned nuget package (17.3.0.9) is available already, you need to check the IncludePrerelease version when the nuget packages installation. So kindly update the nuget package and check the same. 
 
Please find the link for the same,  
 
Please let us know if you need any further assistance. 
 
Regards, 
Karthik Raja A 



AK Anestis Katsiamakas September 27, 2019 11:06 AM UTC

Hello,

Indeed the beta release v17.3.0.9 has fixed the problem!
I have also noticed that the beta release fixed another crash on NumericUpdown control on DataForm, again on iOS.

Thanks!


KA Karthikraja Arumugam Syncfusion Team September 27, 2019 11:13 AM UTC

Hi Anestis, 
 
Thank you for the update. 
 
We are glad that the mentioned issue resolved at your end. Please get in touch with us if you would require further assistance. 
 
Regards, 
Karthik Raja A 


Loader.
Up arrow icon