Has any one faced `Fatal Exception: java.lang.Ille...
# android
b
Has any one faced
Fatal Exception: java.lang.IllegalStateException: Already in the pool!
crash
Copy code
Fatal Exception: java.lang.IllegalStateException: Already in the pool!
       at androidx.core.util.Pools$SimplePool.release + 117(Pools.java:117)
       at androidx.recyclerview.widget.AdapterHelper.recycleUpdateOp + 743(AdapterHelper.java:743)
       at androidx.recyclerview.widget.AdapterHelper.recycleUpdateOpsAndClearList + 750(AdapterHelper.java:750)
       at androidx.recyclerview.widget.AdapterHelper.consumePostponedUpdates + 123(AdapterHelper.java:123)
       at androidx.recyclerview.widget.AdapterHelper.consumeUpdatesInOnePass + 557(AdapterHelper.java:557)
       at androidx.recyclerview.widget.RecyclerView.processAdapterUpdatesAndSetAnimationFlags + 3701(RecyclerView.java:3701)
       at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep1 + 3945(RecyclerView.java:3945)
       at androidx.recyclerview.widget.RecyclerView.dispatchLayout + 3755(RecyclerView.java:3755)
       at androidx.recyclerview.widget.RecyclerView.consumePendingUpdateOperations + 1888(RecyclerView.java:1888)
       at androidx.recyclerview.widget.RecyclerView$ViewFlinger.run + 5163(RecyclerView.java:5163)
       at android.view.Choreographer$CallbackRecord.run + 916(Choreographer.java:916)
       at android.view.Choreographer.doCallbacks + 718(Choreographer.java:718)
       at android.view.Choreographer.doFrame + 647(Choreographer.java:647)
       at android.view.Choreographer$FrameDisplayEventReceiver.run + 902(Choreographer.java:902)
       at android.os.Handler.handleCallback + 836(Handler.java:836)
       at android.os.Handler.dispatchMessage + 103(Handler.java:103)
       at android.os.Looper.loop + 232(Looper.java:232)
       at android.app.ActivityThread.main + 6802(ActivityThread.java:6802)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run + 1103(ZygoteInit.java:1103)
       at com.android.internal.os.ZygoteInit.main + 964(ZygoteInit.java:964)
I am facing this weird crash on production. Can any one please help
j
This does not seem related to Kotlin. File a bug on RecyclerView, ideally with a sample that allows reproducing the behavior.
b
@jw Thanks for the reply, tracked the issue https://issuetracker.google.com/issues/139871305
r
You already filed one bug for this; you don't need to file a second one. You also need way more information - like, for instance, what version of RV you're using, anything about how you're using it, etc.
b
@Ryan Mentley I am using recycler view version
androidXRecyclerView : "1.0.0"
. Basically I am using it of chat purpose, there are different kinds of view holders in the chat
r
Please put that sort of information (along with any more details you can provide - "different kinds of view holders" is unlikely to be enough to reproduce, as it would have been reported by others if that were the only factor) in the bug, as that's what anyone debugging it is going to be looking at. Sample code to reproduce is also likely to increase the chances of a fix. Also worth noting that 1.1.0 is currently at beta03 - knowing if it happens in that version would also be helpful.