simple-stack-compose-integration: State change completion cannot be called multiple times
I’ve noticed my app crashed couple of times with this error message
FATAL EXCEPTION: main
java.lang.IllegalStateException: State change completion cannot be called multiple times!
at com.zhuinden.simplestack.NavigationCore$1.stateChangeComplete(NavigationCore.java:643)
at com.zhuinden.simplestackcomposeintegration.core.ComposeStateChanger$BackstackState$RenderScreen$2.invokeSuspend(ComposeIntegrationCore.kt:278)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:81)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run(AndroidUiDispatcher.android.kt:57)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7660)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I have no reproduce steps, it seemingly happened out of nowhere (I was writing code when suddenly app crashed on the phone with no interaction).
Do you have any more information on why or how is this exception occurring?
This is with simple-stack-compose 0.3.0 and compose 1.0.0-beta05
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (15 by maintainers)
Commits related to this issue
- 0.4.3: Attempt to fix crash in #7 — committed to Zhuinden/simple-stack-compose-integration by Zhuinden 3 years ago
I will report if I manage to reproduce it once again and I will try to be more observant on what exactly was I doing when it happens