java.lang.ArrayIndexOutOfBoundsException: length=42; index=42** at maps.ah.k.a(Unknown Source:4000)

Stack Overflow | Hardik Mehta | 8 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

    ArrayIndexOutOfBounds on Android polyline draw

    Stack Overflow | 8 months ago | Hardik Mehta
    java.lang.ArrayIndexOutOfBoundsException: length=42; index=42** at maps.ah.k.a(Unknown Source:4000)

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      length=42; index=42** at maps.ah.k.a(Unknown Source:4000)

      at maps.ah.k.a()
    2. maps.ah
      d.onDraw
      1. maps.ah.k.a(Unknown Source)
      2. maps.ah.k.a(Unknown Source)
      3. maps.ah.i.a(Unknown Source)
      4. maps.ah.d.onDraw(Unknown Source)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.view.View.draw(View.java:16457)
      2. android.view.View.buildDrawingCacheImpl(View.java:15722)
      3. android.view.View.buildDrawingCache(View.java:15576)
      4. android.view.View.draw(View.java:16204)
      5. android.view.ViewGroup.drawChild(ViewGroup.java:3746)
      6. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3536)
      7. android.view.View.updateDisplayListIfDirty(View.java:15402)
      8. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      9. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      10. android.view.View.updateDisplayListIfDirty(View.java:15361)
      11. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      12. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      13. android.view.View.updateDisplayListIfDirty(View.java:15361)
      14. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      15. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      16. android.view.View.updateDisplayListIfDirty(View.java:15361)
      17. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      18. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      19. android.view.View.updateDisplayListIfDirty(View.java:15361)
      20. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      21. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      22. android.view.View.updateDisplayListIfDirty(View.java:15361)
      23. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      24. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      25. android.view.View.updateDisplayListIfDirty(View.java:15361)
      26. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      27. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      28. android.view.View.updateDisplayListIfDirty(View.java:15361)
      29. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      30. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      31. android.view.View.updateDisplayListIfDirty(View.java:15361)
      32. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      33. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      34. android.view.View.updateDisplayListIfDirty(View.java:15361)
      35. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      36. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      37. android.view.View.updateDisplayListIfDirty(View.java:15361)
      38. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      39. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      40. android.view.View.updateDisplayListIfDirty(View.java:15361)
      41. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      42. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      43. android.view.View.updateDisplayListIfDirty(View.java:15361)
      44. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      45. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      46. android.view.View.updateDisplayListIfDirty(View.java:15361)
      47. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      48. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      49. android.view.View.updateDisplayListIfDirty(View.java:15361)
      50. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      51. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      52. android.view.View.updateDisplayListIfDirty(View.java:15361)
      53. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      54. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      55. android.view.View.updateDisplayListIfDirty(View.java:15361)
      56. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      57. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      58. android.view.View.updateDisplayListIfDirty(View.java:15361)
      59. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3730)
      60. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3710)
      61. android.view.View.updateDisplayListIfDirty(View.java:15361)
      62. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:286)
      63. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:292)
      64. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:327)
      65. android.view.ViewRootImpl.draw(ViewRootImpl.java:3024)
      66. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2828)
      67. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2440)
      68. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1325)
      69. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6741)
      70. android.view.Choreographer$CallbackRecord.run(Choreographer.java:912)
      71. android.view.Choreographer.doCallbacks(Choreographer.java:714)
      72. android.view.Choreographer.doFrame(Choreographer.java:649)
      73. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:898)
      74. android.os.Handler.handleCallback(Handler.java:815)
      75. android.os.Handler.dispatchMessage(Handler.java:104)
      76. android.os.Looper.loop(Looper.java:207)
      77. android.app.ActivityThread.main(ActivityThread.java:5769)
      77 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
      2 frames