First, my app has structure like this:
SpashActivity -> MainActivity -> switching between many fragments
My app use SlideMenu to switch
Possible problem with reading fragment stat between detach and attach.
Try to use something like this:
FragmentTransaction ft = fragmentManager.beginTransaction();
//ft.detach(fragment).attach(fragment).commitAllowingStateLoss(); // crashing
ft.replace(getView().getId(), fragment).commitAllowingStateLoss(); // not crashing