java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{42450820 position=7 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] tmpDetached no parent}

Stack Overflow | Kunal Yadav | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    Renamed file does not shows up in RecyclerView, crashes the app instead

    Stack Overflow | 7 months ago | Kunal Yadav
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{42450820 position=7 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] tmpDetached no parent}
  2. 0

    2.2.3 java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 9(offset:9).state:10

    GitHub | 6 months ago | proud2008
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 9(offset:9).state:10
  3. 0
    samebug tip
    You have to provide valid identical number for each child items.
    via GitHub by h6ah4i
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    note 2 kitkat

    GitHub | 1 year ago | SlideAutoreport
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{44985610 position=32 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] tmpDetached no parent}
  6. 0

    Crash

    GitHub | 1 year ago | SlideAutoreport
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{44bba658 position=221 id=-1, oldPos=39, pLpos:39 scrap [attachedScrap] tmpDetached no parent}
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

    Inconsistency detected. Invalid view holder adapter positionViewHolder{42450820 position=7 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] tmpDetached no parent}

    at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition()
  2. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4251)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4382)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4363)
    4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1961)
    5. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1370)
    6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1333)
    7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:562)
    8. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2864)
    9. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3071)
    9 frames
  3. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:14828)
    2. android.view.ViewGroup.layout(ViewGroup.java:4631)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
    4. android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1660)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1436)
    6. android.view.View.layout(View.java:14828)
    7. android.view.ViewGroup.layout(ViewGroup.java:4631)
    8. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    9. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    10. android.view.View.layout(View.java:14828)
    11. android.view.ViewGroup.layout(ViewGroup.java:4631)
    11 frames
  4. Android v7
    ActionBarOverlayLayout.onLayout
    1. android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:435)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:14828)
    2. android.view.ViewGroup.layout(ViewGroup.java:4631)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    5. android.view.View.layout(View.java:14828)
    6. android.view.ViewGroup.layout(ViewGroup.java:4631)
    7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
    8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
    9. android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
    10. android.view.View.layout(View.java:14828)
    11. android.view.ViewGroup.layout(ViewGroup.java:4631)
    12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    13. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    14. android.view.View.layout(View.java:14828)
    15. android.view.ViewGroup.layout(ViewGroup.java:4631)
    16. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2033)
    17. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1790)
    18. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1046)
    19. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5655)
    20. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    21. android.view.Choreographer.doCallbacks(Choreographer.java:574)
    22. android.view.Choreographer.doFrame(Choreographer.java:544)
    23. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
    24. android.os.Handler.handleCallback(Handler.java:733)
    25. android.os.Handler.dispatchMessage(Handler.java:95)
    26. android.os.Looper.loop(Looper.java:136)
    27. android.app.ActivityThread.main(ActivityThread.java:5052)
    27 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame