This is a migrated thread and some comments may be shown as answers.

chart ios throw exception

1 Answer 74 Views
Chart - Xamarin.iOS
This is a migrated thread and some comments may be shown as answers.
Itamar
Top achievements
Rank 1
Itamar asked on 13 Mar 2017, 09:37 AM

 Hello

We have 2 charts in carousel 
  Chart.XAxis.AllowZoom = true;
  Chart.XAxis.AllowPan = true;
  Chart.AllowTrackball = true;
  Chart.AllowPanDeceleration = true;


When we get into selected chart in the carousel 
We add the relevant series and clear the previous chart series 

This is the unhandled exception we get from the chart and the application crush    
ios chart throw
 exceptiFoundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: *** -[__NSPlaceholderArray initWithCapacity:]: capacity (2147483646) is ridiculous
Native stack trace:on 

   0x0041dbfc -[TKChartGridRender drawInContext:] + 380


if we turn off the AllowZoom and AllowPan This exception not exists  
  Chart.XAxis.AllowZoom = false;
  Chart.XAxis.AllowPan = false;


How to handle this exception
Best Regards 

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 14 Mar 2017, 11:26 AM
Hi,

Thanks for writing.

We are not familiar with this exception and haven't previously stumbled upon similar case. Can you please open a new support ticket and attach a ZIP containing a project which we can use to reproduce the scenario. This will help us directly debug the source and see what we can do.

Regards,
Deyan
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart - Xamarin.iOS
Asked by
Itamar
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or