We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Crash on Chart when zooming on it with two fingers

Hello:

I've developed an app on xamarin that it has a simple line chart with two series. It works fine except when you try to zoom with two fingers, this action crash the app with the following exception.

Java.Lang.ArrayIndexOutOfBoundsException: length=1; index=1
  at --- End of managed Java.Lang.ArrayIndexOutOfBoundsException stack trace ---
  at java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
  at at android.support.v4.widget.ViewDragHelper.saveLastMotion(ViewDragHelper.java:849)
  at at android.support.v4.widget.ViewDragHelper.shouldInterceptTouchEvent(ViewDragHelper.java:1057)
  at at android.support.v4.widget.DrawerLayout.onInterceptTouchEvent(DrawerLayout.java:1434)
  at at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2109)
  at at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
  at at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
  at at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
  at at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
  at at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
  at at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
  at at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
  at at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
  at at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
  at at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
  at at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2403)
  at at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1737)
  at at android.app.Activity.dispatchTouchEvent(Activity.java:2805)
  at at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
  at at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
  at at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2364)
  at at android.view.View.dispatchPointerEvent(View.java:9522)
  at at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4241)
  at at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4107)
  at at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3653)
  at at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3706)
  at at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3672)
  at at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3798)
  at at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3680)
  at at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3855)
  at at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3653)
  at at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3706)
  at at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3672)
  at at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3680)
  at at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3653)
  at at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5933)
  at at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5907)
  at at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5868)
  at at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6036)
  at at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
  at at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
  at at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
  at at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6007)
  at at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6059)
  at at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
  at at android.view.Choreographer.doCallbacks(Choreographer.java:670)
  at at android.view.Choreographer.doFrame(Choreographer.java:600)
  at at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
  at at android.os.Handler.handleCallback(Handler.java:739)
  at at android.os.Handler.dispatchMessage(Handler.java:95)
  at at android.os.Looper.loop(Looper.java:148)
  at at android.app.ActivityThread.main(ActivityThread.java:5417)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)


1 Reply

YP Yuvaraj Palanisamy Syncfusion Team August 12, 2016 09:19 AM UTC

Hi Roberto Majadas 
  
Thank you for contacting Syncfusion support.


We considered this as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents     
    

Regards,
Yuvaraj 
 


Loader.
Up arrow icon