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

GitHub | FabianTerhorst | 11 months ago
  1. 0

    [Error] When ItemAdapter.Set() get lower item count then before

    GitHub | 11 months ago | FabianTerhorst
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{2e77778 position=3 id=-1, oldPos=3, pLpos:-1 scrap [attachedScrap] tmpDetached no parent}
  2. 0

    java.lang.IndexOutOfBoundsException RecyclerView

    GitHub | 10 months ago | stevendobrien
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{41933fb0 position=7 id=-1, oldPos=0, pLpos:0 scrap [attachedScrap] tmpDetached not recyclable(1) no parent}
  3. 0

    Issue 77846 - android - IndexOutOfBoundsException in RecyclerView triggered by RecyclerView.onLayout() - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 1 week ago
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{21bb2f71 position=4 id=-1, oldPos=4, pLpos:-1 scrap tmpDetached no parent}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue 77846 - android - IndexOutOfBoundsException in RecyclerView triggered by RecyclerView.onLayout() - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 6 months ago
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{21bb2f71 position=4 id=-1, oldPos=4, pLpos:-1 scrap tmpDetached no parent}

  1. Agócs Tamás 47 times, last 9 months ago
  2. Stefan Braune 2 times, last 5 months ago
13 unregistered visitors
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{2e77778 position=3 id=-1, oldPos=3, 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.LayoutState.next(LayoutState.java:86)
    5. android.support.v7.widget.StaggeredGridLayoutManager.fill(StaggeredGridLayoutManager.java:1423)
    6. android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:610)
    7. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2864)
    8. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3071)
    8 frames
  3. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    2 frames
  4. android.support.design
    CoordinatorLayout.onLayout
    1. android.support.design.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1037)
    2. android.support.design.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:747)
    3. android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
    4. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1156)
    5. android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:760)
    5 frames
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    5. android.view.View.layout(View.java:16636)
    6. android.view.ViewGroup.layout(ViewGroup.java:5437)
    7. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    8. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    9. android.view.View.layout(View.java:16636)
    10. android.view.ViewGroup.layout(ViewGroup.java:5437)
    10 frames
  6. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1043)
    1 frame
  7. Android Platform
    FrameLayout.onLayout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    5. android.view.View.layout(View.java:16636)
    6. android.view.ViewGroup.layout(ViewGroup.java:5437)
    7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    9. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    10. android.view.View.layout(View.java:16636)
    11. android.view.ViewGroup.layout(ViewGroup.java:5437)
    12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    13. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    14. android.view.View.layout(View.java:16636)
    15. android.view.ViewGroup.layout(ViewGroup.java:5437)
    16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    18. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    19. android.view.View.layout(View.java:16636)
    20. android.view.ViewGroup.layout(ViewGroup.java:5437)
    21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    22. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    22 frames
  8. Android
    PhoneWindow$DecorView.onLayout
    1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
    1 frame
  9. Android Platform
    ViewRootImpl$TraversalRunnable.run
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2171)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1931)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
    6 frames