java.lang.IndexOutOfBoundsException: Invalid index 17, size is 17

GitHub | lschuetze | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Toggle lines with enabled marker causes crash

    GitHub | 2 years ago | silva96
    java.lang.IndexOutOfBoundsException: Invalid index 3, size is 3
  2. 0

    GitHub comment 1608#202032167

    GitHub | 1 year ago | PaoloRotolo
    java.lang.IndexOutOfBoundsException: Invalid index 45, size is 34
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    HorizontalBarChart: IndexOutOfBoundsException when plotting BarData without entries

    GitHub | 11 months ago | jan-glx
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  5. 0

    IndexOutOfBoundsException with CombineChart

    GitHub | 1 year ago | umeshkrpatel
    java.lang.IndexOutOfBoundsException: Invalid index 42, size is 39
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Invalid index 17, size is 17

    at java.util.ArrayList.throwIndexOutOfBoundsException()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    2. java.util.ArrayList.get(ArrayList.java:308)
    2 frames
  3. com.github.mikephil
    BarLineChartBase.onDraw
    1. com.github.mikephil.charting.formatter.FormattedStringCache$PrimFloat.getFormattedValue(Unknown)
    2. com.github.mikephil.charting.formatter.DefaultAxisValueFormatter.getFormattedValue(Unknown)
    3. com.github.mikephil.charting.components.AxisBase.getFormattedLabel(Unknown)
    4. com.github.mikephil.charting.components.AxisBase.getLongestLabel(Unknown)
    5. com.github.mikephil.charting.renderer.XAxisRenderer.computeSize(Unknown)
    6. com.github.mikephil.charting.renderer.XAxisRenderer.computeAxisValues(Unknown)
    7. com.github.mikephil.charting.renderer.XAxisRenderer.computeAxis(Unknown)
    8. com.github.mikephil.charting.charts.BarLineChartBase.onDraw(Unknown)
    8 frames
  4. Android Platform
    View.draw
    1. android.view.View.draw(View.java:15231)
    2. android.view.View.updateDisplayListIfDirty(View.java:14167)
    3. android.view.View.getDisplayList(View.java:14189)
    4. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
    5. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
    6. android.view.View.updateDisplayListIfDirty(View.java:14127)
    7. android.view.View.getDisplayList(View.java:14189)
    8. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
    9. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
    10. android.view.View.updateDisplayListIfDirty(View.java:14127)
    11. android.view.View.getDisplayList(View.java:14189)
    12. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
    13. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
    14. android.view.View.updateDisplayListIfDirty(View.java:14127)
    15. android.view.View.getDisplayList(View.java:14189)
    16. android.view.View.draw(View.java:14959)
    17. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
    18. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
    19. android.view.View.draw(View.java:15234)
    19 frames
  5. Android
    ActionBarOverlayLayout.draw
    1. com.android.internal.widget.ActionBarOverlayLayout.draw(ActionBarOverlayLayout.java:501)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.view.View.updateDisplayListIfDirty(View.java:14167)
    2. android.view.View.getDisplayList(View.java:14189)
    3. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
    4. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
    5. android.view.View.updateDisplayListIfDirty(View.java:14127)
    6. android.view.View.getDisplayList(View.java:14189)
    7. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:273)
    8. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:279)
    9. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:318)
    10. android.view.ViewRootImpl.draw(ViewRootImpl.java:2530)
    11. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2352)
    12. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1982)
    13. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
    14. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)
    15. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    16. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    17. android.view.Choreographer.doFrame(Choreographer.java:550)
    18. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    19. android.os.Handler.handleCallback(Handler.java:739)
    20. android.os.Handler.dispatchMessage(Handler.java:95)
    21. android.os.Looper.loop(Looper.java:135)
    22. android.app.ActivityThread.main(ActivityThread.java:5254)
    22 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames