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

GitHub | stonecold123 | 5 months ago
  1. 0

    Expandable function and footerview cause error

    GitHub | 5 months ago | stonecold123
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{21e958a8 position=18 id=-1, oldPos=18, pLpos:-1 scrap [attachedScrap] tmpDetached no parent}
  2. 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{42823fa8 position=0 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] tmpDetached 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 | 2 weeks ago
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{42823fa8 position=0 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] 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{42823fa8 position=0 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] tmpDetached no parent}
  6. 0

    GitHub comment 5#245264376

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

  1. Agócs Tamás 1 times, last 7 months ago
3 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{21e958a8 position=18 id=-1, oldPos=18, pLpos:-1 scrap [attachedScrap] tmpDetached no parent}

    at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition()
  2. Android v7
    RecyclerView.onMeasure
    1. android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4801)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4932)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)
    4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
    5. android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:531)
    6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
    7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)
    8. android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
    9. android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3211)
    10. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2782)
    10 frames
  3. Android Platform
    View.measure
    1. android.view.View.measure(View.java:16772)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    6. android.view.View.measure(View.java:16772)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    8. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    9. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    10. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    11. android.view.View.measure(View.java:16772)
    11 frames
  4. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1624)
    1 frame
  5. Android Platform
    View.measure
    1. android.view.View.measure(View.java:16772)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    6. android.view.View.measure(View.java:16772)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    8. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    9. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    10. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    11. android.view.View.measure(View.java:16772)
    12. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    13. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    14. android.view.View.measure(View.java:16772)
    15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    16. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    17. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    18. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    19. android.view.View.measure(View.java:16772)
    19 frames
  6. Android Support v4
    DrawerLayout.onMeasure
    1. android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1079)
    1 frame
  7. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:16772)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    3 frames
  8. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  9. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:16772)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    6. android.view.View.measure(View.java:16772)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5139)
    7 frames