SfCalendar crashing on iOS

Hi,

When using a Master-Detail navigation in Xamarin Forms, if a SfCalendar is added to the Detail page and the user navigates back, the app crashes. It only happens in iOS, Android is fine.
I've attached a sample so you can reproduce it. Just select an item from the list, which will navigate to the detail page that has the calendar, and then go back.
Can you help, please?

Kind regards,
Nuno


Attachment: SfCalendarIssue_62d00e5f.zip

11 Replies

VR Vigneshkumar Ramasamy Syncfusion Team August 20, 2018 09:09 AM UTC

Hi Pedro Conde,

Sorry for the inconvenience,

We were able to reproduce the reported issue with “Crash occurs when using MasterDetails page with SfCalendar control” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account. 

Please log on to our support website to check for further updates.


http://www.syncfusion.com/Account/Logon?ReturnUrl=%2fsupport%2fdirecttrac/  

Regards, 
Vigneshkumar R 



LU Luca August 21, 2018 06:55 PM UTC

me too.. can you hep me please?

{System.NullReferenceException: Object reference not set to an instance of an object
  at Syncfusion.SfCalendar.XForms.iOS.SfCalendarRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00014] in <dd8aeb5359624548a13c2b88d298afdf>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:150 
  at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:398 
  at Xamarin.Forms.BindableObject.ClearValue (Xamarin.Forms.BindableProperty property, System.Boolean fromStyle, System.Boolean checkAccess) [0x000c1] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:507 
  at Xamarin.Forms.BindableObject.ClearValue (Xamarin.Forms.BindableProperty property) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:44 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x0007d] in <2dda3b1bfacd483c96a064e61838cf65>:0 
  at Xamarin.Forms.Platform.iOS.ViewRenderer`2[TView,TNativeView].Dispose (System.Boolean disposing) [0x00000] in <2dda3b1bfacd483c96a064e61838cf65>:0 
  at Syncfusion.SfCalendar.XForms.iOS.SfCalendarRenderer.Dispose (System.Boolean disposing) [0x0001d] in <dd8aeb5359624548a13c2b88d298afdf>:0 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/Foundation/NSObject2.cs:147 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in <2dda3b1bfacd483c96a064e61838cf65>:0 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/Foundation/NSObject2.cs:147 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37 
  at Xamarin.Forms.Platform.iOS.ScrollViewRenderer.Dispose (System.Boolean disposing) [0x00016] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\ScrollViewRenderer.cs:165 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/Foundation/NSObject2.cs:147 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in <2dda3b1bfacd483c96a064e61838cf65>:0 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/Foundation/NSObject2.cs:147 
  at Xamarin.Forms.Platform.iOS.Platform.DisposeModelAndChildrenRenderers (Xamarin.Forms.Element view) [0x00038] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:237 
  at Xamarin.Forms.Platform.iOS.Platform+<Xamarin-Forms-INavigation-PopModalAsync>d__23.MoveNext () [0x00143] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:134 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <c4da4bcb0a614f31bf9f25261a36b747>:0 
  at Xamarin.Forms.Application+NavigationImpl+<OnPopModal>d__2.MoveNext () [0x0005d] in D:\a\1\s\Xamarin.Forms.Core\Application.cs:380 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <c4da4bcb0a614f31bf9f25261a36b747>:0 
  at IXApp.VM.MainViewModel+<GoToPreviousPage>d__359.MoveNext () [0x00065] in D:\Dev\Updater\IXApp\IXApp\VM\MainViewModel.cs:1548 }



VR Vigneshkumar Ramasamy Syncfusion Team August 22, 2018 06:51 AM UTC

 
Hi Alberto,

Sorry for the inconvenience,

We were able to reproduce the reported issue with “Crash occurs when using MasterDetails page with SfCalendar control” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account. 

Please log on to our support website to check for further updates.


http://www.syncfusion.com/Account/Logon?ReturnUrl=%2fsupport%2fdirecttrac/
  

Regards,  
Vigneshkumar R  



CR Clinton Rocksmith August 27, 2018 11:21 PM UTC

We too have this problem.  Looking forward to a release to fix this.

Thank you


VR Vigneshkumar Ramasamy Syncfusion Team August 28, 2018 10:46 AM UTC

Hi Clinton 
 
The reported issue” Crash occurs when using MasterDetails page with SfCalendar control” will be fixed and included in our upcoming Volume2 SP2 release, which is expected to be available by end of August 2018. We appreciate your patience until then. 
 
Regards 
Vigneshkumar R  



AS Antonio Stan September 27, 2018 02:43 PM UTC

Hello,

I'm using v16.3.0.21 and the crash is still there in iOS, but I can share with you my workaround. In the Core project, create 

public class CustomSfCalendar : SfCalendar
    {
    }
  

And just simply create a custom renderer for iOS

[assembly: ExportRenderer(typeof(CustomSfCalendar), typeof(CustomSfCalendarRenderer))]
namespace HobbyDanceApp.iOS.CustomRenderers
{
    public class CustomSfCalendarRenderer : SfCalendarRenderer
    {
        protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            try
            {
                base.OnElementPropertyChanged(sender, e);
            }
            catch (Exception ex)
            { 
            }
        }
    }
}
 

Giving the fact that in stack trace the exception was thrown in OnElementPropertyChanged, I thought that if I wrap the base call in a try catch, I'll get rid of the exception. But surprise, it does not crash anymore...  

Kind regards,
Antonio D. Stan


VR Vigneshkumar Ramasamy Syncfusion Team September 28, 2018 10:42 AM UTC

Hi Antinio,

Thanks you for contacting Syncfusion Support.

Based on the provided information, we have checked, and we are able to reproduce the mentioned issue with “SfCalendar crashes in updated Xamarin.Forms version (above 2.5.0.280555) on Xamarin.Forms (iOS)”. We have considered this is an issue and we have logged the issue report on this, we will provide fix for the reported issue in our upcoming Volume 3 SP1 which will be rolled out in the end of October 2018. We appreciate your patience until then.

As of now, it will be working fine Xamarin.Forms stable version (2.5.0.280555). Please find the Xamarin.Forms stable version and prerelease version details from the below link,

Link: https://developer.xamarin.com/releases/

Please let us know if you have any concern.

Regards,
Vigneshkumar R 



IO IoTFier replied to Vigneshkumar Ramasamy October 19, 2018 01:46 PM UTC

Hi Antinio,

Thanks you for contacting Syncfusion Support.

Based on the provided information, we have checked, and we are able to reproduce the mentioned issue with “SfCalendar crashes in updated Xamarin.Forms version (above 2.5.0.280555) on Xamarin.Forms (iOS)”. We have considered this is an issue and we have logged the issue report on this, we will provide fix for the reported issue in our upcoming Volume 3 SP1 which will be rolled out in the end of October 2018. We appreciate your patience until then.

As of now, it will be working fine Xamarin.Forms stable version (2.5.0.280555). Please find the Xamarin.Forms stable version and prerelease version details from the below link,

Link: https://developer.xamarin.com/releases/

Please let us know if you have any concern.

Regards,
Vigneshkumar R 


Hi Vigneshkumar , this is still failing under XF V3.2 and 3.3 as well.

Can you please share the required fix under these versions as well?

Thnks


VR Vigneshkumar Ramasamy Syncfusion Team October 22, 2018 08:43 AM UTC

Hi Antinio, 
 
Thanks for the update. 
 
We have checked your query and the reported crash issue will be fixed in XF V3.3 also. As mentioned before issue fix will be available in our upcoming Volume 3 SP1 which will be rolled out in the end of October 2018. We appreciate your patience until then. 
 
Regards 
Vigneshkumar R 



RJ Rohit Jaitly November 26, 2018 10:09 AM UTC

Hi,

Is there any fixes available of this issue?


VR Vigneshkumar Ramasamy Syncfusion Team November 27, 2018 10:05 AM UTC

Hi Rohit Jaitly 
 
Thanks for contacting Syncfusion support. 
 
We have already fixed the reported crash issue calendar and you can download our latest version from below link. 
 
 
Please let us know if this helpful. 
 
Regards 
Vigneshkumar R 


Loader.
Up arrow icon