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

GitHub | andansky | 3 months ago
  1. 0

    不能添加多个HeaderView?我添加了多个只显示一个,然后一刷新就报错呢。

    GitHub | 3 months ago | andansky
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{3f37ef34 position=8 id=-1, oldPos=2, pLpos:2 scrap [attachedScrap] tmpDetached no parent}
  2. 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}
  3. 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}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash if AbstractExpandableItemAdapter return always GroupId=0

    GitHub | 2 years ago | k-tigre
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 16(offset:-1).state:20
  6. 0

    RecyclerView: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position

    Stack Overflow | 2 years ago | casolorz
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 5(offset:5).state:7

  1. Stefan Braune 2 times, last 5 months ago
  2. Agócs Tamás 47 times, last 9 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{3f37ef34 position=8 id=-1, oldPos=2, pLpos:2 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: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.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)
    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.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3211)
    9. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3067)
    10. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
    10 frames
  3. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16112)
    2. android.view.ViewGroup.layout(ViewGroup.java:5188)
    2 frames
  4. in.srain.cube
    PtrFrameLayout.onLayout
    1. in.srain.cube.views.ptr.PtrFrameLayout.layoutChildren(PtrFrameLayout.java:260)
    2. in.srain.cube.views.ptr.PtrFrameLayout.onLayout(PtrFrameLayout.java:229)
    2 frames
  5. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:16112)
    2. android.view.ViewGroup.layout(ViewGroup.java:5188)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1959)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1813)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1722)
    6. android.view.View.layout(View.java:16112)
    7. android.view.ViewGroup.layout(ViewGroup.java:5188)
    8. android.widget.FrameLayout.layoutChildren(FrameLayout.java:645)
    9. android.widget.FrameLayout.onLayout(FrameLayout.java:580)
    10. android.view.View.layout(View.java:16112)
    11. android.view.ViewGroup.layout(ViewGroup.java:5188)
    12. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1195)
    13. android.view.View.layout(View.java:16112)
    14. android.view.ViewGroup.layout(ViewGroup.java:5188)
    15. android.widget.FrameLayout.layoutChildren(FrameLayout.java:645)
    16. android.widget.FrameLayout.onLayout(FrameLayout.java:580)
    17. android.view.View.layout(View.java:16112)
    18. android.view.ViewGroup.layout(ViewGroup.java:5188)
    19. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1959)
    20. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1813)
    21. android.widget.LinearLayout.onLayout(LinearLayout.java:1722)
    22. android.view.View.layout(View.java:16112)
    23. android.view.ViewGroup.layout(ViewGroup.java:5188)
    24. android.widget.FrameLayout.layoutChildren(FrameLayout.java:645)
    25. android.widget.FrameLayout.onLayout(FrameLayout.java:580)
    26. android.view.View.layout(View.java:16112)
    27. android.view.ViewGroup.layout(ViewGroup.java:5188)
    28. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2549)
    29. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2236)
    30. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1333)
    31. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6712)
    32. android.view.Choreographer$CallbackRecord.run(Choreographer.java:800)
    33. android.view.Choreographer.doCallbacks(Choreographer.java:603)
    34. android.view.Choreographer.doFrame(Choreographer.java:572)
    35. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786)
    36. android.os.Handler.handleCallback(Handler.java:815)
    37. android.os.Handler.dispatchMessage(Handler.java:104)
    38. android.os.Looper.loop(Looper.java:192)
    39. android.app.ActivityThread.main(ActivityThread.java:5784)
    39 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android
    ZygoteInit$MethodAndArgsCaller.run
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1084)
    1 frame