java.lang.ArrayIndexOutOfBoundsException

src.length=44 srcPos=25 dst.length=44 dstPos=2 length=42

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2558

  • via GitHub by xuanzhaopeng
    , 9 months ago
    src.length=44 srcPos=25 dst.length=44 dstPos=2 length=42
  • via GitHub by mysgithub
    , 1 year ago
    src.length=44 srcPos=0 dst.length=44 dstPos=-1 length=45
  • src.length=2 srcPos=0 dst.length=1 dstPos=0 length=2
  • Stack trace

    • java.lang.ArrayIndexOutOfBoundsException: src.length=44 srcPos=25 dst.length=44 dstPos=2 length=42 at java.lang.System.arraycopy(Native Method) at android.support.v7.widget.StaggeredGridLayoutManager$LazySpanLookup.offsetForAddition(StaggeredGridLayoutManager.java:2717) at android.support.v7.widget.StaggeredGridLayoutManager.handleUpdate(StaggeredGridLayoutManager.java:1482) at android.support.v7.widget.StaggeredGridLayoutManager.onItemsAdded(StaggeredGridLayoutManager.java:1438) at android.support.v7.widget.RecyclerView$6.dispatchUpdate(RecyclerView.java:748) at android.support.v7.widget.RecyclerView$6.onDispatchSecondPass(RecyclerView.java:765) at android.support.v7.widget.AdapterHelper.consumePostponedUpdates(AdapterHelper.java:122) at android.support.v7.widget.AdapterHelper.consumeUpdatesInOnePass(AdapterHelper.java:549) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3022) at android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2625) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:16515) at android.widget.LinearLayout.measureVertical(LinearLayout.java:847) at android.widget.LinearLayout.onMeasure(LinearLayout.java:588) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404) at android.widget.LinearLayout.measureVertical(LinearLayout.java:695) at android.widget.LinearLayout.onMeasure(LinearLayout.java:588) at android.view.View.measure(View.java:16515) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5169) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2310) at android.view.View.measure(View.java:16515) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1958) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1155) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1337) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1042) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5721) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) at android.view.Choreographer.doCallbacks(Choreographer.java:574) at android.view.Choreographer.doFrame(Choreographer.java:544) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 week ago
    27 times, 1 week ago
    Once, 2 months ago
    2 times, 2 months ago
    3 times, 6 months ago
    21 more bugmates