[Android] [DialogModule] IllegalStateException
See original GitHub issueHey,
Again, not sure how to reproduce - ~20 crashes so it’s still a super small percentage of overall app install.
IllegalStateException: Can not perform this action after onSaveInstanceState
Module "android.app.FragmentManagerImpl", line 1343, in checkStateLoss
Module "android.app.FragmentManagerImpl", line 1361, in enqueueAction
Module "android.app.BackStackRecord", line 729, in commitInternal
Module "android.app.BackStackRecord", line 705, in commit
Module "android.app.DialogFragment", line 292, in dismissInternal
Module "android.app.DialogFragment", line 258, in dismiss
Module "com.facebook.react.modules.dialog.DialogModule$FragmentManagerHelper", line 115, in dismissExisting
Module "com.facebook.react.modules.dialog.DialogModule$FragmentManagerHelper", line 121, in showNewAlert
Module "com.facebook.react.modules.dialog.DialogModule", line 234, in showAlert
Module "java.lang.reflect.Method", in invoke
Module "java.lang.reflect.Method", line 372, in invoke
Module "com.facebook.react.bridge.BaseJavaModule$JavaMethod", line 249, in invoke
Module "com.facebook.react.bridge.NativeModuleRegistry$ModuleDefinition", line 158, in call
Module "com.facebook.react.bridge.NativeModuleRegistry", line 58, in call
Module "com.facebook.react.bridge.CatalystInstanceImpl$NativeModulesReactCallback", line 428, in call
Module "com.facebook.react.bridge.queue.NativeRunnableDeprecated", in run
Module "android.os.Handler", line 739, in handleCallback
Module "android.os.Handler", line 95, in dispatchMessage
Module "com.facebook.react.bridge.queue.MessageQueueThreadHandler", line 31, in dispatchMessage
Module "android.os.Looper", line 145, in loop
Module "com.facebook.react.bridge.queue.MessageQueueThreadImpl$3", line 184, in run
Module "java.lang.Thread", line 818, in run
Issue Analytics
- State:
- Created 8 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
App crashing giving 'java.lang.IllegalStateException' when ...
One simple solution would be to keep a global instance of AlertDialog and re-using it: //global private AlertDialog dialog;.
Read more >IllegalStateException - Android Developers
public IllegalStateException (). Constructs an IllegalStateException with no detail message. A detail message is a String that describes this particular ...
Read more >Dialog (JavaFX 8) - Oracle Help Center
A Dialog in JavaFX wraps a DialogPane and provides the necessary API to ... using either the Alert class (for pre-defined, notification-style alerts), ......
Read more >Handling IllegalStateException: Can not perform this action ...
Get the latest update whenever Elye publishes. Make learning Android, iOS, and software development more fun and easier.
Read more >Part 1: how exceptions work for JVM and Android apps
Error handling on Android ... Android app displaying a crash dialog ... throw IllegalStateException("This should never happen!")
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
I’m with this same error, anyone already fixed this?
Upgraded to 0.55.4 but still got the error.