java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:-1).state:3

GitHub | Awais-Ali | 1 year 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

    Crash When, 0 index item select from column one , and drop at 0 index of second column

    GitHub | 1 year ago | Awais-Ali
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:-1).state:3
  2. 0
    samebug tip
    Call notifyDataSetChanged instead of notifyItemRemoved due to a bug in RecyclerView
  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

    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}
  6. 0

    note 2 kitkat

    GitHub | 2 years 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}
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 item position 0(offset:-1).state:3

    at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition()
  2. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4653)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4611)
    3. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)
    4. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1384)
    5. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)
    6. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:584)
    7. android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:2977)
    8. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2901)
    9. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3277)
    9 frames
  3. Android Platform
    HorizontalScrollView.onLayout
    1. android.view.View.layout(View.java:15133)
    2. android.view.ViewGroup.layout(ViewGroup.java:4862)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1888)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1742)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1651)
    6. android.view.View.layout(View.java:15133)
    7. android.view.ViewGroup.layout(ViewGroup.java:4862)
    8. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1888)
    9. android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1877)
    10. android.widget.LinearLayout.onLayout(LinearLayout.java:1653)
    11. android.view.View.layout(View.java:15133)
    12. android.view.ViewGroup.layout(ViewGroup.java:4862)
    13. android.widget.FrameLayout.layoutChildren(FrameLayout.java:515)
    14. android.widget.FrameLayout.onLayout(FrameLayout.java:450)
    15. android.view.View.layout(View.java:15133)
    16. android.view.ViewGroup.layout(ViewGroup.java:4862)
    17. android.widget.FrameLayout.layoutChildren(FrameLayout.java:515)
    18. android.widget.HorizontalScrollView.onLayout(HorizontalScrollView.java:1474)
    18 frames
  4. com.woxthebox.draglistview
    BoardView.onLayout
    1. com.woxthebox.draglistview.BoardView.onLayout(BoardView.java:115)
    1 frame
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:15133)
    2. android.view.ViewGroup.layout(ViewGroup.java:4862)
    3. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1160)
    4. android.view.View.layout(View.java:15133)
    5. android.view.ViewGroup.layout(ViewGroup.java:4862)
    5 frames
  6. 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
  7. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:15133)
    2. android.view.ViewGroup.layout(ViewGroup.java:4862)
    2 frames
  8. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1183)
    1 frame
  9. Android Platform
    LinearLayout.setChildFrame
    1. android.view.View.layout(View.java:15133)
    2. android.view.ViewGroup.layout(ViewGroup.java:4862)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:515)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:450)
    5. android.view.View.layout(View.java:15133)
    6. android.view.ViewGroup.layout(ViewGroup.java:4862)
    7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1888)
    8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1742)
    9. android.widget.LinearLayout.onLayout(LinearLayout.java:1651)
    10. android.view.View.layout(View.java:15133)
    11. android.view.ViewGroup.layout(ViewGroup.java:4862)
    12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:515)
    13. android.widget.FrameLayout.onLayout(FrameLayout.java:450)
    14. android.view.View.layout(View.java:15133)
    15. android.view.ViewGroup.layout(ViewGroup.java:4862)
    16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1888)
    16 frames