I am getting often below exception in my release version. I am not sure how to handles this. it looks like that it has something to do with Syncfusion.UI.Xaml.Charts.ChartDockPanel.MeasureOverride(Size) . below is i implement sfchart and stacktrace
<chart:SfChart x:Name="Chart" SelectionChanged="Chart_SelectionChanged" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
>
<chart:SfChart.Title>
<chart:ChartTitle Text="{Binding ChartTitle}"/>
</chart:SfChart.Title>
<chart:SfChart.PrimaryAxis>
<chart:DateTimeCategoryAxis AutoScrollingDelta="7" AutoScrollingMode="End" >
<chart:DateTimeCategoryAxis.Title>
<chart:ChartAxisTitle Text="{resx:Translate Date}"></chart:ChartAxisTitle>
</chart:DateTimeCategoryAxis.Title>
</chart:DateTimeCategoryAxis>
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis Minimum="0" Maximum="{Binding NumericalAxisMax}" Interval="{Binding NumericalAxisInterval}" >
<chart:NumericalAxis.Title>
<chart:ChartAxisTitle Text="{Binding NumericalAxisTitle}" ></chart:ChartAxisTitle>
</chart:NumericalAxis.Title>
</chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
<chart:SfChart.Series>
<chart:LineSeries EnableDataPointSelection="{Binding EnableDataPointSelection}" XBindingPath="XValue" YBindingPath="YValue"
SelectedDataPointColor="Yellow" ItemsSource="{Binding NumericMonthStats, Mode=OneWay}" EnableAnimation = "true"
AnimationDuration="0.8" >
<chart:LineSeries.DataMarker>
<chart:ChartDataMarker/>
</chart:LineSeries.DataMarker>
</chart:LineSeries>
</chart:SfChart.Series>
<chart:SfChart.ChartBehaviors>
<chart:ChartZoomPanBehavior EnableSelectionZooming="True"/>
</chart:SfChart.ChartBehaviors>
</chart:SfChart>
at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x20
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Size) + 0xc7
at __Interop.ForwardComStubs.Stub_32[TThis](__ComObject, Size, Int32) + 0x2d
at Syncfusion.UI.Xaml.Charts.ChartDockPanel.MeasureOverride(Size) + 0x1e4
at Windows.UI.Xaml.FrameworkElement.global::Windows.UI.Xaml.IFrameworkElementOverrides.MeasureOverride(Size) + 0xa
at myApp.UWP!<BaseAddress>+0x38b40a0 at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x20
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Size, Void*) + 0xce at __Interop.ForwardComStubs.Stub_64[TThis]
(__ComObject, Size, Int32) + 0x47 at Syncfusion.UI.Xaml.Charts.SfChart.MeasureOverride(Size) + 0x29e
at Windows.UI.Xaml.FrameworkElement.global::Windows.UI.Xaml.IFrameworkElementOverrides.MeasureOverride(Size) + 0xa
at myApp.UWP!<BaseAddress>+0x38b40a0 at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x20
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Size) + 0xc7
at __Interop.ForwardComStubs.Stub_32[TThis](__ComObject, Size, Int32) + 0x2d
at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.GetDesiredSize(Double, Double) + 0xb6
at Xamarin.Forms.Platform.UWP.Platform.Xamarin.Forms.Internals.IPlatform.GetNativeSize(VisualElement, Double, Double) + 0x9c
at Xamarin.Forms.VisualElement.OnSizeRequest(Double, Double) + 0x7a at Syncfusion.SfChart.XForms.SfChart.OnMeasure(Double, Double) + 0x71
at Xamarin.Forms.VisualElement.GetSizeRequest(Double, Double) + 0x18f
at Xamarin.Forms.VisualElement.Measure(Double, Double, MeasureFlags) + 0x18e
at Xamarin.Forms.StackLayout.CalculateNaiveLayout(StackLayout.LayoutInformation,
StackOrientation, Double, Double, Double, Double) + 0x210
at Xamarin.Forms.StackLayout.CalculateLayout(StackLayout.LayoutInformation, Double, Double, Double, Double, Boolean) + 0x12c
at Xamarin.Forms.StackLayout.LayoutChildren(Double, Double, Double, Double) + 0xd8
at Xamarin.Forms.Layout.UpdateChildrenLayout() + 0x5a5
at Xamarin.Forms.Layout.OnSizeAllocated(Double, Double) + 0xf
at Xamarin.Forms.Layout.<>c.<OnChildMeasureInvalidated>b__45_0() + 0x1a3
at System.Action.Invoke() + 0x18 at Xamarin.Forms.Command.<>c__DisplayClass4_0.<.ctor>b__0(Object) + 0x10
at Windows.UI.Core.DispatchedHandler.Invoke() + 0x25 at myApp.UWP!<BaseAddress>+0x386b58c
at Xamarin.Forms.Platform.UWP.TaskExtensions.<>c.<WatchForError>b__2_1(Object) + 0x1c at System.Action`1.Invoke(T) + 0x1b
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x30
at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x20
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32) + 0xb8 at __Interop.ForwardComStubs.Stub_15[TThis](__ComObject, Int32) + 0x24
at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object, UnhandledErrorDetectedEventArgs) + 0x3d
--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object, UnhandledErrorDetectedEventArgs) + 0x75 at System.EventHandler`1.Invoke(Object, TEventArgs) + 0x1b at __Interop.Intrinsics.HasThisCall__32[TArg0](Object, IntPtr, Object, TArg0)
+ 0x36 at myApp.UWP!<BaseAddress>+0x3865110