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

GitHub | sliferdroid | 2 months ago
  1. 0

    GitHub comment 15#249978074

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

    Crash on 2.1.3

    GitHub | 2 years ago | dalb8
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{64a18148 position=3 id=3, oldPos=2, pLpos:2 scrap tmpDetached no parent}
  3. 0

    RecyclerView IndexOutOfBoundsException

    Stack Overflow | 2 years ago | jihoon kim
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:0).state:4
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

    google.com | 1 week ago
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{42e637c8 position=389 id=-1, oldPos=386, pLpos:386 scrap no parent}
  6. 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 | 6 months ago
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{435debc0 position=2 id=-1, oldPos=1, pLpos:1 scrap tmpDetached not recyclable(1)undefined adapter position no parent}

  1. Stefan Braune 11 times, last 6 months 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{a7ed489 position=2 id=-1, oldPos=3, pLpos:3 scrap [attachedScrap] tmpDetached no parent}

    at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition()
  2. Android v7
    RecyclerView$1.run
    1. android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4858)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4989)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4970)
    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:3266)
    9. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3122)
    10. android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1549)
    11. android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:305)
    11 frames
  3. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    3. android.view.Choreographer.doFrame(Choreographer.java:549)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:135)
    8. android.app.ActivityThread.main(ActivityThread.java:5254)
    8 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:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames