Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal Exception: java.lang.IllegalStateException no event down from INITIALIZED

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)
like image 290
Roudi Avatar asked Aug 04 '20 05:08

Roudi


3 Answers

The issue's fix is now stable in androidx.fragment:fragment-ktx:1.3.0.

like image 72
Denis Rudenko Avatar answered Oct 19 '22 09:10

Denis Rudenko


This issue has been fixed and is now stable.

Usage: androidx.fragment:fragment-ktx:1.3.0

like image 31
Westy92 Avatar answered Oct 19 '22 11:10

Westy92


Had this error when navController.navigate inside onCreate so i moved the code that checks the intent to onResume - problem solved

like image 2
ueen Avatar answered Oct 19 '22 09:10

ueen