java.lang.IllegalStateException: Fragment already added: HomeFragment{9609a480 #0 id=0x7f060073 XPlatformMenus.Core.ViewModels.HomeViewModel}

GitHub | vrodax | 5 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. 0

    GitHub comment 55#252396694

    GitHub | 5 months ago | vrodax
    java.lang.IllegalStateException: Fragment already added: HomeFragment{9609a480 #0 id=0x7f060073 XPlatformMenus.Core.ViewModels.HomeViewModel}
  2. 0

    Fragment crashes on orientation change

    Stack Overflow | 2 years ago | AnZyuZya
    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  3. 0

    On Rotation I get "Unable to destroy activity ... Can not perform this action after onSaveInstanceState"

    Stack Overflow | 4 years ago | Lisa Anne
    java.lang.RuntimeException: Unable to destroy activity {com.example.quotes/com.example.quotes.Quotes}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. thilo 21 times, last 10 months ago
2 unregistered visitors

Root Cause Analysis

  1. java.lang.IllegalStateException

    Fragment already added: HomeFragment{9609a480 #0 id=0x7f060073 XPlatformMenus.Core.ViewModels.HomeViewModel}

    at android.support.v4.app.FragmentManagerImpl.addFragment()
  2. Android Support v4
    FragmentManagerImpl.popBackStackImmediate
    1. android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1323)
    2. android.support.v4.app.BackStackRecord.popFromBackStack(BackStackRecord.java:933)
    3. android.support.v4.app.FragmentManagerImpl.popBackStackState(FragmentManager.java:1670)
    4. android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:586)
    4 frames
  3. xplatformmenus.droid.activities
    MainActivity.onBackPressed
    1. xplatformmenus.droid.activities.MainActivity.n_onBackPressed(Native Method)
    2. xplatformmenus.droid.activities.MainActivity.onBackPressed(MainActivity.java:47)
    2 frames
  4. Android Platform
    Activity.dispatchKeyEvent
    1. android.app.Activity.onKeyUp(Activity.java:2193)
    2. android.view.KeyEvent.dispatch(KeyEvent.java:2664)
    3. android.app.Activity.dispatchKeyEvent(Activity.java:2423)
    3 frames
  5. Android v7
    WindowCallbackWrapper.dispatchKeyEvent
    1. android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:524)
    2. android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:50)
    3. android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:241)
    4. android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:50)
    4 frames
  6. Android
    PhoneWindow$DecorView.dispatchKeyEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1962)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:3845)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3819)
    3. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
    4. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3442)
    5. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3411)
    6. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3518)
    7. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3419)
    8. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3575)
    9. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
    10. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3442)
    11. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3411)
    12. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3419)
    13. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
    14. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3442)
    15. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3411)
    16. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3551)
    17. android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3711)
    18. android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2010)
    19. android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1704)
    20. android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1695)
    21. android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:1987)
    22. android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
    23. android.os.MessageQueue.nativePollOnce(Native Method)
    24. android.os.MessageQueue.next(MessageQueue.java:138)
    25. android.os.Looper.loop(Looper.java:123)
    26. android.app.ActivityThread.main(ActivityThread.java:5001)
    26 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    2 frames
  10. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame