java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{3115d7ae position=2 id=-1, oldPos=-1, pLpos:-1 no parent}\

GitHub | petar19992 | 11 months 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
    samebug tip
    Try to use notifyDataSetChanged() instead of notifyItemRemoved(), there's a bug in RecyclerView and notifyItemRemoved() does not work in some environments.
    via GitHub by bottiger
  2. 0

    Issue 77846 - android - IndexOutOfBoundsException in RecyclerView triggered by RecyclerView.onLayout() - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 11 months ago
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{419d9008 position=10 id=-1, oldPos=9, pLpos:9 scrap 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 | 12 months ago
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{419d9008 position=10 id=-1, oldPos=9, pLpos:9 scrap tmpDetached no parent}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Inconsistency detected. Invalid view holder adapter

    GitHub | 2 years ago | bottiger
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{4344d348 position=1 id=10, oldPos=-1, pLpos:-1 scrap tmpDetached no parent}

  1. brunosatriani 7 times, last 11 months ago
  2. dmitry 1 times, last 1 year ago
8 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{3115d7ae position=2 id=-1, oldPos=-1, pLpos:-1 no parent}\

    at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition()
  2. Android v7
    RecyclerView$ViewFlinger.run
    1. android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4247)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4378)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4359)
    4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1961)
    5. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1370)
    6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1333)
    7. android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1161)
    8. android.support.v7.widget.LinearLayoutManager.scrollHorizontallyBy(LinearLayoutManager.java:1006)
    9. android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:3803)
    9 frames
  3. Android Platform
    ActivityThread.main
    1. android.os.Handler.handleCallback(Handler.java:739)
    2. android.os.Handler.dispatchMessage(Handler.java:95)
    3. android.os.Looper.loop(Looper.java:135)
    4. android.app.ActivityThread.main(ActivityThread.java:5910)
    4 frames
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  5. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
    2 frames