Skip to content

Instantly share code, notes, and snippets.

@Vova-SH
Created September 29, 2025 15:22
Show Gist options
  • Select an option

  • Save Vova-SH/5074637b6382ad5f49d358c4753a4d3b to your computer and use it in GitHub Desktop.

Select an option

Save Vova-SH/5074637b6382ad5f49d358c4753a4d3b to your computer and use it in GitHub Desktop.
Divkit full crash log
java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class androidx.recyclerview.widget.RecyclerView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0xC. Make sure other views do not use the same id.
at android.view.View.onRestoreInstanceState(View.java:22087)
at android.view.View.dispatchRestoreInstanceState(View.java:22059)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4239)
at android.view.View.restoreHierarchyState(View.java:22037)
at androidx.compose.ui.viewinterop.ViewFactoryHolder.<init>(AndroidView.android.kt:354)
at androidx.compose.ui.viewinterop.ViewFactoryHolder.<init>(AndroidView.android.kt:307)
at androidx.compose.ui.viewinterop.ViewFactoryHolder.<init>(AndroidView.android.kt:327)
at androidx.compose.ui.viewinterop.AndroidView_androidKt$createAndroidViewNodeFactory$1$1.invoke(AndroidView.android.kt:261)
at androidx.compose.ui.viewinterop.AndroidView_androidKt$createAndroidViewNodeFactory$1$1.invoke(AndroidView.android.kt:260)
at androidx.compose.runtime.changelist.Operation$InsertNodeFixup.execute(Operation.kt:705)
at androidx.compose.runtime.changelist.Operations.executeAndFlushAllPendingOperations(Operations.kt:349)
at androidx.compose.runtime.changelist.FixupList.executeAndFlushAllPendingFixups(FixupList.kt:53)
at androidx.compose.runtime.changelist.Operation$InsertSlotsWithFixups.execute(Operation.kt:665)
at androidx.compose.runtime.changelist.Operations.executeAndFlushAllPendingOperations(Operations.kt:349)
at androidx.compose.runtime.changelist.ChangeList.executeAndFlushAllPendingChanges(ChangeList.kt:88)
at androidx.compose.runtime.CompositionImpl.applyChangesInLocked(Composition.kt:1036)
at androidx.compose.runtime.CompositionImpl.applyChanges(Composition.kt:1067)
at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:684)
at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:591)
at androidx.compose.ui.platform.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame(AndroidUiFrameClock.android.kt:39)
at androidx.compose.ui.platform.AndroidUiDispatcher.performFrameDispatch(AndroidUiDispatcher.android.kt:108)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performFrameDispatch(AndroidUiDispatcher.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.android.kt:69)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1936)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1946)
at android.view.Choreographer.doCallbacks(Choreographer.java:1226)
at android.view.Choreographer.lambda$new$0$android-view-Choreographer(Choreographer.java:296)
at android.view.Choreographer$$ExternalSyntheticLambda0.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:971)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:206)
at android.os.Looper.loop(Looper.java:296)
at android.app.ActivityThread.main(ActivityThread.java:9159)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1018)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment