question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] [DialogModule] IllegalStateException

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
agrasscommented, Jan 2, 2018

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

0reactions
iamduruicommented, Jul 9, 2018

Upgraded to 0.55.4 but still got the error.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found