java.lang.IllegalStateException: FragmentManager is already executing transactions

Stack Overflow | Mero_Android | 2 months ago
  1. 0

    FragmentManager is already executing transactions after using method setOffscreenPageLimit()

    Stack Overflow | 2 months ago | Mero_Android
    java.lang.IllegalStateException: FragmentManager is already executing transactions
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    FragmentManager is already executing transactions. When is it safe to initialise pager after commit?

    Stack Overflow | 4 months ago | Nick Cardoso
    java.lang.IllegalStateException: FragmentManager is already executing transactions With this stack trace: (I took android.support out of the package names just for brevity) v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1620)
  4. 0

    Why FragmentManager.putFragment is not working if Fragment is not in Fragment manager?

    Stack Overflow | 3 years ago | Lingviston
    java.lang.IllegalStateException: Fragment SearchFragment{53406f68} is not currently in the FragmentManager

    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

      FragmentManager is already executing transactions

      at android.support.v4.app.FragmentManagerImpl.execSingleAction()
    2. Android Support v4
      ViewPager.setOffscreenPageLimit
      1. android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1626)
      2. android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:679)
      3. android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:143)
      4. android.support.v4.view.ViewPager.populate(ViewPager.java:1240)
      5. android.support.v4.view.ViewPager.populate(ViewPager.java:1088)
      6. android.support.v4.view.ViewPager.setOffscreenPageLimit(ViewPager.java:852)
      6 frames
    3. com.amir.ahmed
      SelectionFragment.onActivityCreated
      1. com.amir.ahmed.EELUStudentUnion.SelectionFragment.setupViewPager(SelectionFragment.java:59)
      2. com.amir.ahmed.EELUStudentUnion.SelectionFragment.onActivityCreated(SelectionFragment.java:40)
      2 frames
    4. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.Fragment.performActivityCreated(Fragment.java:2089)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1133)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
      4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801)
      5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677)
      6. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:536)
      6 frames
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:158)
      4. android.app.ActivityThread.main(ActivityThread.java:7225)
      4 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames