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

GitHub | Orange168 | 2 weeks ago
  1. 0
    Call notifyDataSetChanged instead of notifyItemRemoved due to a bug in RecyclerView
  2. 0

    Expanding parent view holder -> crash

    GitHub | 9 months ago | camino2007
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{24819493 position=19 id=-1, oldPos=6, pLpos:6 scrap [attachedScrap] tmpDetached no parent}
  3. 0

    Issue 158046 - android - RecyclerView doesn't properly clear state when setAdapter() is called - Android Open Source Project - Issue Tracker - Google Project Hosting

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

    Automated exception search integrated into your IDE

  5. 0

    Issue 158046 - android - RecyclerView doesn't properly clear state when setAdapter() is called - Android Open Source Project - Issue Tracker - Google Project Hosting

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

  1. Agócs Tamás 1 times, last 8 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{34e69164 position=0 id=-1, oldPos=1, 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:5220)
    2. android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5402)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5363)
    4. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5359)
    5. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2141)
    6. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1525)
    7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1488)
    8. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:585)
    9. android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3457)
    10. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2963)
    10 frames
  3. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:17928)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    4. android.view.View.measure(View.java:17928)
    5. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:846)
    6. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:512)
    7. android.view.View.measure(View.java:17928)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
    9. android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    9 frames
  4. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
    1 frame
  5. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:17928)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
    2 frames
  6. Android v7
    ActionBarOverlayLayout.onMeasure
    1. android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:393)
    1 frame
  7. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:17928)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    4. android.view.View.measure(View.java:17928)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
    6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1723)
    7. android.widget.LinearLayout.measureVertical(LinearLayout.java:785)
    8. android.widget.LinearLayout.onMeasure(LinearLayout.java:654)
    9. android.view.View.measure(View.java:17928)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    11 frames
  8. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2745)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:17928)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2412)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1414)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1638)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1292)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6598)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:800)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:603)
    9. android.view.Choreographer.doFrame(Choreographer.java:572)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786)
    11. android.os.Handler.handleCallback(Handler.java:815)
    12. android.os.Handler.dispatchMessage(Handler.java:104)
    13. android.os.Looper.loop(Looper.java:194)
    14. android.app.ActivityThread.main(ActivityThread.java:5682)
    14 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:963)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
    2 frames