chart crash if zooming and scrolling on IOS

hi all,
app crash on ios if i zoom or scroll a chart with this setting
   <chart:SfChart.ChartBehaviors>
                            <chart:ChartZoomPanBehavior ZoomMode="XY"/>
                        </chart:SfChart.ChartBehaviors>

thanks
ex:

Unhandled Exception:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <c4da4bcb0a614f31bf9f25261a36b747>:0 
  at System.Collections.ObjectModel.Collection`1[T].get_Item (System.Int32 index) [0x00000] in <c4da4bcb0a614f31bf9f25261a36b747>:0 
  at Syncfusion.SfChart.iOS.SFNumericalAxis.GenerateVisibleLabels () [0x001e0] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFAxis.UpdateLabels () [0x0003b] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFAxis.ComputeDesiredSize (System.Drawing.SizeF size) [0x00036] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.ChartCartesianAxisLayout.MeasureVerticalAxis (System.Collections.Generic.List`1[T] axes, System.Drawing.SizeF size) [0x00018] in <057bf57c50644588ab755a36150ca1f3>:0 
  a
t Syncfusion.SfChart.iOS.ChartCartesianAxisLayout.MeasureAxis (System.Drawing.SizeF size) [0x0008c] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.ChartCartesianAxisLayout.Measure (System.Drawing.SizeF availableSize) [0x000b8] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFChart.MeasureAxis () [0x0002f] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFChart.UpdateChart () [0x00632] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFChart.LayoutSubviews () [0x00006] in <057bf57c50644588ab755a36150ca1f3>: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/11.14.0.13/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String deleg
ateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at IXApp.iOS.Application.Main (System.String[] args) [0x00001] in D:\Dev\Updater\IXApp\IXApp.iOS\Main.cs:17 
2018-08-23 21:53:51.401 IXApp.iOS[6023:2017732] Unhandled managed exception:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index (System.ArgumentOutOfRangeException)
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <c4da4bcb0a614f31bf9f25261a36b747>:0 
  at System.Collections.ObjectModel.Collection`1[T].get_Item (System.Int32 index) [0x00000] in <c4da4bcb0a614f31bf9f25261a36b747>:0 
  at Syncfusion.SfChart.iOS.SFNumericalAxis.GenerateVisibleLabels () [0x001e0] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFAxis.UpdateLabels () [0x0003b] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFAxis.ComputeDesiredSize (System.Drawing.SizeF size) [0x00036] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.ChartCartesianAxisLayout.MeasureVerticalAxis (System.Collections.Generic.List`1[T] axes, System.Drawing.SizeF size) [0x00018] in <057bf57c50644588ab755a36150ca1f3
>:0 
  at Syncfusion.SfChart.iOS.ChartCartesianAxisLayout.MeasureAxis (System.Drawing.SizeF size) [0x0008c] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.ChartCartesianAxisLayout.Measure (System.Drawing.SizeF availableSize) [0x000b8] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFChart.MeasureAxis () [0x0002f] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFChart.UpdateChart () [0x00632] in <057bf57c50644588ab755a36150ca1f3>:0 
  at Syncfusion.SfChart.iOS.SFChart.LayoutSubviews () [0x00006] in <057bf57c50644588ab755a36150ca1f3>: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/11.14.0.13/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.Stri
ng delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.13/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at IXApp.iOS.Application.Main (System.String[] args) [0x00001] in D:\Dev\Updater\IXApp\IXApp.iOS\Main.cs:17 
2018-08-23 21:53:51.402 IXApp.iOS[6023:2017732] critical: Stacktrace:

3 Replies

ME Manivannan Elangovan Syncfusion Team August 24, 2018 12:20 PM UTC

Hi Alberto,

We are able to reproduce the reported issue "System.ArgumentOutOfRangeException" at our end and logged a defect report on this, and the fix will be available in our upcoming Volume 3 release which is scheduled to be rolled out in the Month of September 2018.

Thanks,
Manivannan E


AM Anilkumar Methuku replied to Manivannan Elangovan April 7, 2022 02:31 PM UTC

Hi, i'm also facing the same issue.

can you please help with a solution to this.



YP Yuvaraj Palanisamy Syncfusion Team April 10, 2022 02:52 AM UTC

Hi Anilkumar,


We have checked the reported problem “App crashed when zooming” and we are not able to reproduce the issue at our end. Please find the sample from the below attachment.


If still you are facing the problem, could you please revert us the modified sample with issue reproduced state which will be helpful to serve you better solution at the earliest.

  • Syncfusion package version,

  • Xamarin.Forms version and

  • Deployment target device version


Regards,

Yuvaraj.


Attachment: ChartSample_91881a6d.zip

Loader.
Up arrow icon