Closed SamYStudiO closed 3 months ago
I've raised an internal ticket to investigate this crash. We'll return as soon as we have any feedback.
@SamYStudiO could you clarify the environment? Did you use compose in your app?
@pengdev I faced the same problem and I am using compose in my app. Do you have any suggestions?
Hello Guis, i've the same problem, but with navigation throught Deep Link navigation!
Hey @Levidamales @MatheusAraujoPro please update to the latest compose extension release, we have disabled the lifecycle plugin in the latest compose extension release, now all the lifecycle is handled within the compose extension and the above problematic code path wouldn't be executed.
I updated the compose extension version, but still have another case of the issue. Do you think they can be of the same reason?
This happens whenever I try to navigate after screen rotation:
java.lang.IllegalStateException: State must be at least CREATED to move to DESTROYED, but was INITIALIZED in component NavBackStackEntry(2d8f0727-c13b-4635-ac94-f279608c3cfc) destination=Destination(0x67884f5a) route=Editor
at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.jvm.kt:131)
at androidx.lifecycle.LifecycleRegistry.setCurrentState(LifecycleRegistry.jvm.kt:107)
at androidx.navigation.NavBackStackEntry.updateState(NavBackStackEntry.kt:186)
at androidx.navigation.NavBackStackEntry.setMaxLifecycle(NavBackStackEntry.kt:159)
at androidx.navigation.NavController.updateBackStackLifecycle$navigation_runtime_release(NavController.kt:1100)
at androidx.navigation.NavController.dispatchOnDestinationChanged(NavController.kt:996)
at androidx.navigation.NavController.navigate(NavController.kt:1882)
at androidx.navigation.NavController.navigate(NavController.kt:1817)
at androidx.navigation.NavController.navigate(NavController.kt:2225)
at androidx.navigation.NavController.navigate$default(NavController.kt:2220)
at ...
@Levidamales from the stack trace, I didn't see anything mapbox-specific code path. There might be some other issues in your code relates to NavBackStackEntry
.
@SamYStudiO could you clarify the environment? Did you use compose in your app?
@pengdev I'm not using compose and this issue happens a lot in my production app
This started to appear without any change to mapbox version but a change from lifecycle library from 2.8.2 to 2.8.3... this info may help figure it out
@pengdev Can this be reopened or should i create new?
@SamYStudiO I posted an answer to StackOverflow. It's about Jetpack Compose, but you may find something useful for you: https://stackoverflow.com/questions/78927851/jetpack-compose-navigation-crashes-app-after-orientation-change
@pengdev Can this be reopened or should i create new?
@SamYStudiO please create new ticket with detailed information, would be good if you have a minimum reproduce example.
@Galkin-Palkin I'm not using compose @pengdev i'll make another ticket, problem is i can't reproduce it but as shown from firebase it happens a lot in production
Environment
Observed behavior and steps to reproduce
I see a lot of crashes from firebase crashlytics but i can't reproduce it.