sfSchedule crashes in IOS

Hello,

I amhaving a problem with sfSchedule causing my xamarin.forms app to crash in IOS.  When I remove it from the xaml, the app loads find, but as soon as i put it back in, the app crashes on loading.  Here is my xaml and the error message:

XAML

Snippet
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
			 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
			 xmlns:local="clr-namespace:HandymanScheduler"
			 xmlns:schedule="clr-namespace:Syncfusion.SfSchedule.XForms;assembly=Syncfusion.SfSchedule.XForms"
             xmlns:busyindicator="clr-namespace:Syncfusion.SfBusyIndicator.XForms;assembly=Syncfusion.SfBusyIndicator.XForms"
             x:Class="HandymanScheduler.MainPage">
 
 
    <Grid VerticalOptions="FillAndExpand">
        <StackLayout VerticalOptions="FillAndExpand">
            <StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand">
            <Label Text="{Binding LoggedInUser.EmailAddress}"></Label>
                <Button Text="Refresh" Command="{Binding RefreshCommand}" HorizontalOptions="End"></Button>
            </StackLayout>
            <Button Text="Sign In" Command="{Binding SignIn}"></Button>
            <local:EditorLayout  x:Name="editorLayout" IsVisible="{Binding EditorVisible}"/>
            <schedule:SfSchedule x:Name="schedule" IsVisible="{Binding ScheduleVisible}"  
            ScheduleView="WeekView" AllowAppointmentDrag="True" DataSource="{Binding Appointments}"
            CellTappedCommand="{Binding ScheduleCellTappedCommand}" 
            VisibleDatesChangedCommand="{Binding DatesChangedCommand}"
            VerticalOptions="FillAndExpand"></schedule:SfSchedule>
        </StackLayout>
            <busyindicator:SfBusyIndicator x:Name="busyindicator" 
                                       AnimationType="SlicedCircle" 
                                       ViewBoxWidth = "150" 
                                       ViewBoxHeight="150"
                                       EnableAnimation="True"
                                           IsBusy="{Binding IsBusy}"
                                           Title="{Binding BusyTitle}"/>
    </Grid>
</ContentPage>

Exception

=================================================================

Basic Fault Address Reporting

=================================================================


Memory around native instruction pointer (0x1cef4f0dc):0x1cef4f0cc fd 7b

c1

a8

c0 03

10

29

5f d6

80

d2

10 00 d4 .{

01

.

0x1cef4f0dc c3 00

...._..).....

00 54 fd 7b bf a9 fd 03 00

91 55 d6 ff 97 .

..T.{......U...

0x1cef4f0ec bf 03 00 91 fd 7b c1 a8 c0 03 5f d6 90 29

80 d2 .....{.

..._..)..

0x1cef4f0fc 01 10 00 d4 c3

00 00 54 fd 7b bf a9 fd 03 00 91 ..

.....T.{

......


=================================================================

Managed Stacktrace:

=================================================================

  at <unknown> <0xffffffff>

  at ObjCRuntime.Runtime:ThrowNSException <0x00016>

  at ObjCRuntime.Runtime:throw_ns_exception <0x0000a>

  at ObjCRuntime.Runtime:throw_ns_exception <0x00032>

  at <unknown> <0xffffffff>

  at ObjCRuntime.Messaging:IntPtr_objc_msgSend_UIntPtr <0x0001e>

  at Foundation.NSArray:GetAtIndex <0x00036>

  at Foundation.NSArray:UnsafeGetItem <0x00010>

  at Foundation.NSArray:GetItem <0x00040>

  at Syncfusion.SfSchedule.iOS.SFSchedule:SetDefaultValue <0x00294>

  at Syncfusion.SfSchedule.iOS.SFSchedule:.ctor <0x00164>

  at Syncfusion.SfSchedule.XForms.iOS.SfScheduleExt:.ctor <0x00002>

  at Syncfusion.SfSchedule.XForms.iOS.SfScheduleRenderer:GetNativeSchedule <0x00002>

  at Syncfusion.SfSchedule.XForms.iOS.SfScheduleRenderer:OnElementChanged <0x000a8>

  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0

x002a2>

  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>

  at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>


ageRenderer:ViewDidLoad <0x0010c>

  at System.Object:runtime_invoke_direct_void__this__ <0x0008e>

=================================================================


  at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>

  at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>

  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>

  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>

  at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>

  at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>

  at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>

  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>

  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>

  at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>

  at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>

  at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>

  at Xamarin.Forms.Platform.iOS.P

The app has been terminated.


5 Replies

SS SaiGanesh Sakthivel Syncfusion Team February 11, 2022 01:50 PM UTC

Hi Troy, 
 
#Regarding SfSchedule crash on iOS 
Currently, we are checking the reported scenario from our end. We will update you on the further details on February 15, 2022. We appreciate the patience until then. 
 
Regards,
SaiGanesh Sakthivel
 



SS SaiGanesh Sakthivel Syncfusion Team February 15, 2022 11:52 AM UTC

Hi Troy, 
 
#Regarding crash in sfschedule iOS 
We could not to replicate the reported scenario from our end. We have prepared the simple sample with given information and tested the sample with iPhone 8 Simulator version 14.4. we have attached the tested sample in the following locations.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ScheduleXamarin1021772354
 
 
Please check the sample and let us know if you still facing the same issue? If not, please modify our sample based on your scenario and revert us back with the following details, 
 
·       Issue reproducing video 
·       Syncfusion version and Xamarin version used. 
·       Share the issue reproduce iPhone version.

 
It will be helpful for us to check on it and provide you the solution at the earliest.  
 
Regards,
SaiGanesh Sakthivel



TR Troy February 16, 2022 01:08 AM UTC

My app works find in the simulator as well.  However, both my app and the sample you sent me crash when I run it on my actual iphone.  It also crashes for apple themselves.  I submitted to the store to run it in Testflight, and they rejected it because it crashes on opening.

I am using Xamarin.Forms 5 from Visual Studio 2022 and I am targeting Android and IOS.  In summary, Android works find both on the Emulator and on an actual device and IOS works find on the simulator but crashes on my iPhone 6.  My iphone runs IOS 12.5.5 and I used the simulator 'iPhone 13 iOS 15.2'.

The sample app you sent me also crashes on my iPhone, but runs fine on the simulator.



SS SaiGanesh Sakthivel Syncfusion Team February 17, 2022 02:05 PM UTC

Hi Troy, 
 
#Regarding SfSchedule crash on iOS  
We could not replicate the reported scenario from our side. We have tested the given sample with iPad Air 5th gen 14.4 device. Please refer to the tested sample video in the following link for your reference. 
 
 
Could you please confirm us whether reported scenario is occurs other iPhone version device or ipad device from your side? Meanwhile, we are checking the mention device version iOS 12.5.5 availability with other teams. Once we got the device, we will check and the update you on the further details.  
 
Regards,  
SaiGanesh Sakthivel  



TR Troy February 17, 2022 07:02 PM UTC

I was just following up to see if there is any more traction on this issue.


Loader.
Up arrow icon