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

Most upvoted comments

I’m with this same error, anyone already fixed this?