react-native: [Android] [DialogModule] IllegalStateException
Hey,
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
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (5 by maintainers)
Commits related to this issue
- Bug fix for https://github.com/facebook/react-native/issues/6228. Test Plan: Check work with the dialogs. The original issue occurs in case of calling the showDialog after activity state has been save... — committed to dryganets/react-native by dryganets 7 years ago
- Android dialog module has a race condition as result it crashes see this issue: https://github.com/facebook/react-native/issues/6228. The mIsInForeground flag is set on UI thread but was used from th... — committed to dryganets/react-native by dryganets 7 years ago
- Fix #6228: Crash in Android dialog module. Summary: Android dialog module has a race condition as a result of which it crashes. See this issue: https://github.com/facebook/react-native/issues/6228. ... — committed to facebook/react-native by dryganets 6 years ago
I’m with this same error, anyone already fixed this?