java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:2).state:2

GitHub | PDDStudio | 9 months ago
  1. 0

    IndexOutOfBoundsException

    GitHub | 9 months ago | PDDStudio
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:2).state:2
  2. 0

    "Inconsistency detected. Invalid view holder adapter positionViewHolder"

    GitHub | 4 months ago | Snakeice
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{5f0faf2 position=1 id=-1, oldPos=1, pLpos:-1 scrap [attachedScrap] tmpDetached no parent} 'Troca de informações/experiencias JB Importador - Exportações e importações de dados'
  3. 0

    Refactor RecyclerView in FilesFragment

    GitHub | 7 months ago | audax
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 4(offset:4).state:7
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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 item position 0(offset:2).state:2

    at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition()
  2. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4405)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4363)
    3. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1961)
    4. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1370)
    5. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1333)
    6. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:562)
    7. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2900)
    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 v4
    SwipeRefreshLayout.onLayout
    1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:584)
    1 frame
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
    4. android.view.View.layout(View.java:16636)
    5. android.view.ViewGroup.layout(ViewGroup.java:5437)
    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:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    2 frames
  8. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1043)
    1 frame
  9. 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
  10. Android
    PhoneWindow$DecorView.onLayout
    1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
    1 frame
  11. Android Platform
    Choreographer.doFrame
    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)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    9. android.view.Choreographer.doFrame(Choreographer.java:606)
    9 frames