java.lang.IllegalStateException: Activity has been destroyed

GitHub | raphaelcr93 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Activity has been destroyed

    at android.app.FragmentManagerImpl.enqueueAction()
  2. Android Platform
    DialogFragment.show
    1. android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1433)
    2. android.app.BackStackRecord.commitInternal(BackStackRecord.java:687)
    3. android.app.BackStackRecord.commit(BackStackRecord.java:663)
    4. android.app.DialogFragment.show(DialogFragment.java:230)
    4 frames
  3. mono.java.lang
    RunnableImplementor.run
    1. mono.java.lang.RunnableImplementor.n_run(Native Method)
    2. mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
    2 frames
  4. Android Platform
    Activity.runOnUiThread
    1. android.app.Activity.runOnUiThread(Activity.java:5511)
    1 frame
  5. md5b60ffeb829f638581ab2bb9b1a7f4f3f
    ButtonRenderer_ButtonClickListener.onClick
    1. md5b60ffeb829f638581ab2bb9b1a7f4f3f.ButtonRenderer_ButtonClickListener.n_onClick(Native Method)
    2. md5b60ffeb829f638581ab2bb9b1a7f4f3f.ButtonRenderer_ButtonClickListener.onClick(ButtonRenderer_ButtonClickListener.java:30)
    2 frames
  6. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5198)
    2. android.view.View$PerformClick.run(View.java:21147)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:148)
    6. android.app.ActivityThread.main(ActivityThread.java:5417)
    6 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames