0

Fatal Exception: java.lang.IllegalStateException: FragmentManager has been destroyed (Android Kotlin)

I got this crash on my firebase crashlytics for my app, and it happens too many times. The statistic shows that the crash is 97% happens to Android 13. And this crash is very confusing because I can't reproduce it. Someone said that this crash is from the library that I used because it was outdated, but again I can't make sure if it was. Did someone know how to handle this, or at least know how to reproduce it? Here is the crash logs

Fatal Exception: java.lang.IllegalStateException: FragmentManager has been destroyed
       at androidx.fragment.app.FragmentManager.ensureExecReady(FragmentManager.java:1641)
       at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1695)
       at androidx.fragment.app.FragmentManager.executePendingTransactions(FragmentManager.java:564)
       at com.github.terrakok.cicerone.androidx.AppNavigator.applyCommandsSync(AppNavigator.kt:34)
       at com.github.terrakok.cicerone.androidx.AppNavigator$applyCommands$1.run(AppNavigator.kt:29)
       at android.os.Handler.handleCallback(Handler.java:942)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8741)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
5
  • try this: stackoverflow.com/a/69890970/9290612 Commented May 28, 2023 at 7:10
  • 1
    Does this answer your question? java.lang.IllegalStateException: FragmentManager has been destroyed Commented Jun 1, 2023 at 8:07
  • @A.R.B.N I did tried that but again how to test that, cause I still don't know how to reproduce the bug Commented Jun 5, 2023 at 3:33
  • @AndreyBienkowski I did tried that but again how to test that, cause I still don't know how to reproduce the bug Commented Jun 5, 2023 at 3:35
  • @GeraldSapphire, if your problem is gone, that means you solved it, so why should it reproduce? Commented Jul 30 at 4:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.