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
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)
BKBharathiraja K Syncfusion Team February 18, 2019 01:42 AM
Greetings from Syncfusion. We have tried to replicate the reported issue at our end by creating a sample with the provided code snippet, we are afraid that, we are not able to reproduce the issue at our end. Its working fine without any exception in Xamarin.Forms.UWP.
Since we are not aware of your exact application scenario, we are not able to reproduce this issue at our end, so can you please revert us by modifying the sample based on your application along with replication procedure. This will be helpful for us to investigate further and provide you a better solution at the earliest.
BKBharathiraja K Syncfusion Team February 18, 2019 02:09 AM
Greetings from Syncfusion,
We have analysed your query and we would like to let you know that while using chart inside the FlexLayout directly without set size, chart is adjusting automatically while resizing the application.
We have prepared a sample based by adding chart directly in FlexLayout and it can be downloaded from the below link.
We can reproduce the reported issue, when adding the chart controls in the grid layout and add that grid to FlexLayout as a child without setting Width and Height to chart.
Can you please confirm whether you are using the above scenario whether using chart in grid layout or directly added in FlexLayout?. If you confirm your use case scenario, we will validate the issue and provide you solution.