java.lang.IllegalStateException: Fragment already active

GitHub | austinhodak | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. java.lang.IllegalStateException

    Fragment already active

    at android.support.v4.app.Fragment.setInitialSavedState()
  2. Android Support v4
    FragmentStatePagerAdapter.instantiateItem
    1. android.support.v4.app.Fragment.setInitialSavedState(Fragment.java:581)
    2. android.support.v4.app.FragmentStatePagerAdapter.instantiateItem(FragmentStatePagerAdapter.java:114)
    2 frames
  3. com.heinrichreimersoftware.materialintro
    FadeableViewPager$PagerAdapterWrapper.instantiateItem
    1. com.heinrichreimersoftware.materialintro.slide.SlideAdapter.instantiateItem(SlideAdapter.java:93)
    2. com.heinrichreimersoftware.materialintro.view.FadeableViewPager$PagerAdapterWrapper.instantiateItem(FadeableViewPager.java:124)
    2 frames
  4. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1003)
    2. android.support.v4.view.ViewPager.populate(ViewPager.java:1151)
    3. android.support.v4.view.ViewPager.populate(ViewPager.java:1085)
    4. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1611)
    4 frames
  5. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:18797)
    2. android.widget.LinearLayout.measureVertical(LinearLayout.java:898)
    3. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    4. android.view.View.measure(View.java:18797)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    6 frames
  6. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  7. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:18797)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1458)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:746)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    6. android.view.View.measure(View.java:18797)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    9. android.view.View.measure(View.java:18797)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1458)
    12. android.widget.LinearLayout.measureVertical(LinearLayout.java:746)
    13. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    14. android.view.View.measure(View.java:18797)
    15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    16. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    16 frames
  8. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2658)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:18797)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2108)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1224)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1460)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1115)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6023)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    9. android.view.Choreographer.doFrame(Choreographer.java:606)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:148)
    14. android.app.ActivityThread.main(ActivityThread.java:5481)
    14 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    2 frames