Skip to content

Fix lifecycle crashes when android-lifecycle is updated to 2.9.0+#696

Merged
EricKuck merged 1 commit intobluelinelabs:developfrom
therabarnett-droid:fix-lifecycle-crash
Mar 14, 2026
Merged

Fix lifecycle crashes when android-lifecycle is updated to 2.9.0+#696
EricKuck merged 1 commit intobluelinelabs:developfrom
therabarnett-droid:fix-lifecycle-crash

Conversation

@therabarnett-droid
Copy link
Contributor

@therabarnett-droid therabarnett-droid commented Mar 13, 2026

We recently updated to Compose 1.10.0 and it uses Lifcycle 2.94. Lifecycle 2.9.0+ has added checks to prevent moving from a lifecycle state of DESTROYED to any other state and throws an error if it happens. Previously it didn't have these checks so it didn't error out. We are blocked from updating lifecycle until we can handle these crashes.
Example stack trace:

Fatal Exception: java.lang.IllegalStateException
State is 'DESTROYED' and cannot be moved to 'STARTED' in component com.bluelinelabs.conductor.internal.c@5750cc3
androidx.lifecycle.LifecycleRegistryKt.checkLifecycleStateTransition (LifecycleRegistry.kt:96)

androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent (LifecycleRegistry.jvm.kt:119)
com.bluelinelabs.conductor.internal.ControllerLifecycleOwner$1.postCreateView (ControllerLifecycleOwner.kt:25)
com.bluelinelabs.conductor.Controller.inflate (Controller.java:1121)
com.bluelinelabs.conductor.ControllerChangeHandler$Companion.executeChange (ControllerChangeHandler.java:265)
com.bluelinelabs.conductor.ControllerChangeHandler$Companion.executeChange (ControllerChangeHandler.java:218)
com.bluelinelabs.conductor.ControllerChangeHandler.executeChange (ControllerChangeHandler.kt:273)
com.bluelinelabs.conductor.Router.performPendingControllerChanges (Router.java:956)
com.bluelinelabs.conductor.Router$2.run (Router.java:812)
android.os.Handler.handleCallback (Handler.java:942)

@EricKuck EricKuck merged commit 70976f0 into bluelinelabs:develop Mar 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants