Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Crash on replace compose screen #28

Open
maqsats opened this issue Nov 27, 2023 · 2 comments
Open

Crash on replace compose screen #28

maqsats opened this issue Nov 27, 2023 · 2 comments

Comments

@maqsats
Copy link

maqsats commented Nov 27, 2023

Cannot replace compose screen when I launch Biometry

java.lang.IllegalStateException: **no event up from DESTROYED** at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.kt:250) at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.kt:287) at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.kt:136) at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.kt:119) at cafe.adriel.voyager.androidx.AndroidScreenLifecycleOwner.onStop(AndroidScreenLifecycleOwner.kt:110) at cafe.adriel.voyager.androidx.AndroidScreenLifecycleOwner.access$onStop(AndroidScreenLifecycleOwner.kt:44) at cafe.adriel.voyager.androidx.AndroidScreenLifecycleOwner$LifecycleDisposableEffect$1$invoke$$inlined$onDispose$1.dispose(Effects.kt:485) at androidx.compose.runtime.DisposableEffectImpl.onForgotten(Effects.kt:87) at androidx.compose.runtime.CompositionImpl$RememberEventDispatcher.dispatchRememberObservers(Composition.kt:1264) at androidx.compose.runtime.CompositionImpl.applyChangesInLocked(Composition.kt:975) at androidx.compose.runtime.CompositionImpl.applyChanges(Composition.kt:996) at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:636) at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:548) at androidx.compose.ui.platform.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame(AndroidUiFrameClock.android.kt:41) at androidx.compose.ui.platform.AndroidUiDispatcher

@maqsats
Copy link
Author

maqsats commented Nov 27, 2023

image
I am calling removeObserver onDestroy and logs show that everything works correctly

@maqsats
Copy link
Author

maqsats commented Nov 29, 2023

@Dorofeev @YokiToki @Alex009 @Tetraquark

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant