java.lang.IllegalStateException Can not perform this action after onSaveInstanceState
See original GitHub issueAnother issue that gets reported a lot in my app. I have not yet found a way to reproduce.
java.lang.IllegalStateException Can not perform this action after onSaveInstanceState
FragmentManagerImpl.java:1536 androidx.fragment.app.FragmentManagerImpl.checkStateLoss
FragmentManagerImpl.java:1558 androidx.fragment.app.FragmentManagerImpl.enqueueAction
BackStackRecord.java:317 androidx.fragment.app.BackStackRecord.commitInternal
BackStackRecord.java:282 androidx.fragment.app.BackStackRecord.commit
FragmentNavigator.java:64 com.navigation.reactnative.FragmentNavigator.navigate
NavigationStackView.java:62 com.navigation.reactnative.NavigationStackView.onAfterUpdateTransaction
NavigationStackView.java:74 com.navigation.reactnative.NavigationStackView.onAttachedToWindow
View.java:18451 android.view.View.dispatchAttachedToWindow
ViewGroup.java:3462 android.view.ViewGroup.dispatchAttachedToWindow
ViewGroup.java:5148 android.view.ViewGroup.addViewInner
ViewGroup.java:4930 android.view.ViewGroup.addView
ReactViewGroup.java:453 com.facebook.react.views.view.ReactViewGroup.addView
ViewGroup.java:4870 android.view.ViewGroup.addView
ViewGroupManager.java:35 com.facebook.react.uimanager.ViewGroupManager.addView
NativeViewHierarchyManager.java:512 com.facebook.react.uimanager.NativeViewHierarchyManager.manageChildren
UIViewOperationQueue.java:205 com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute
UIViewOperationQueue.java:779 com.facebook.react.uimanager.UIViewOperationQueue$1.run
UIViewOperationQueue.java:888 com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches
UIViewOperationQueue.java:42 com.facebook.react.uimanager.UIViewOperationQueue.access$2200
UIViewOperationQueue.java:846 com.facebook.react.uimanager.UIViewOperationQueue$2.runGuarded
GuardedRunnable.java:29 com.facebook.react.bridge.GuardedRunnable.run
Handler.java:873 android.os.Handler.handleCallback
Handler.java:99 android.os.Handler.dispatchMessage
Looper.java:193 android.os.Looper.loop
ActivityThread.java:6715 android.app.ActivityThread.main
Method.java:-2 java.lang.reflect.Method.invoke
RuntimeInit.java:493 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run
ZygoteInit.java:911 com.android.internal.os.ZygoteInit.main
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Can not perform this action after onSaveInstanceState with ...
I'm getting user reports from my app in the market, delivering the following exception: java.
Read more >Handling IllegalStateException: Can not perform this action ...
The main cost of the problem is the fragment transaction is commit() after onSaveInstanceState() is called. This is something undesirable, as that means...
Read more >IllegalStateException: Can not perform this action after ...
after call of onSaveInstanceState fragment manager cannot apply any transactions. Possible solution: call cleanUp method from onPause, but do ...
Read more >IllegalStateException : Cannot perform this action after ...
The main root cause of this exception is that fragment transactions are not allowed after the OnSaveInstanceState of the activity is called.
Read more >Bug: "IllegalStateException: Can not perform this action after ...
Fatal Exception : java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.support.v4.app.FragmentManagerImpl.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you need paid support or help to tackle these issues, I will gladly pay or help. You can always drop me a message by email to talk privately: me@gabrielbull.com
Don’t worry, I tested lots of different scenarios and it works well