Not sure what I changed in the application but I'm getting this untraceable stack trace all of a sudden after a release (I updated a few dependencies but not sure which is causing it cause I cannot replicate.
atal Exception: java.lang.IllegalStateException: no event down from INITIALIZED
at androidx.lifecycle.LifecycleRegistry.backwardPass(LifecycleRegistry.java:281)
at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:302)
at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:148)
at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:134)
at androidx.fragment.app.FragmentViewLifecycleOwner.handleLifecycleEvent(FragmentViewLifecycleOwner.java:62)
at androidx.fragment.app.Fragment.performDestroyView(Fragment.java:3130)
at androidx.fragment.app.FragmentStateManager.destroyFragmentView(FragmentStateManager.java:706)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1407)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1477)
at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1555)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1608)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3046)
at androidx.fragment.app.FragmentManager.dispatchDestroyView(FragmentManager.java:3018)
at androidx.fragment.app.Fragment.performDestroyView(Fragment.java:3128)
at androidx.fragment.app.FragmentStateManager.destroyFragmentView(FragmentStateManager.java:706)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1407)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1477)
at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1555)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1617)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2150)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2061)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1957)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3056)
at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2983)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2923)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:562)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1324)
at androidx.fragment.app.FragmentManager.addAddedFragments(FragmentManager.java:2392)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2137)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2061)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1957)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3056)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2990)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:458)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:210)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1392)
at android.app.Activity.performStart(Activity.java:7338)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3172)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:186)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:171)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:148)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:76)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1988)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:232)
at android.app.ActivityThread.main(ActivityThread.java:7240)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883)
The issue's fix is now stable in androidx.fragment:fragment-ktx:1.3.0
.
This issue has been fixed and is now stable.
Usage: androidx.fragment:fragment-ktx:1.3.0
Had this error when navController.navigate
inside onCreate
so i moved the code that checks the intent to onResume
- problem solved
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With