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.

Can not perform this action after onSaveInstanceState

See original GitHub issue

Sentry exception -> https://sentry.prod.mozaws.net/operations/firefox-nightly/issues/9508326/?query=is%3Aunresolved

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
    at androidx.fragment.app.FragmentManager.enqueueAction(FragmentManager.java:6)
    at androidx.fragment.app.BackStackRecord.commitInternal(BackStackRecord.java:12)
    at androidx.fragment.app.BackStackRecord.commit(BackStackRecord.java:1)
    at androidx.fragment.app.DialogFragment.dismissInternal(DialogFragment.java:17)
    at androidx.fragment.app.DialogFragment.dismiss(DialogFragment.java:1)
    at mozilla.components.feature.prompts.PromptFeature$start$2$invokeSuspend$$inlined$collect$1.emit(Collect.kt:6)
    at mozilla.components.support.ktx.kotlinx.coroutines.flow.FlowKt$ifAnyChanged$$inlined$filter$1$2.emit(Collect.kt:15)
    at kotlinx.coroutines.flow.FlowKt.emitAllImpl$FlowKt__ChannelsKt
    at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:3)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:21)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6944)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

┆Issue is synchronized with this Jira Task

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ekagercommented, Sep 18, 2020

Hmm LoginPicker isn’t a DialogFragment though and it was first seen Sept 1 🤔

0reactions
stale[bot]commented, Mar 17, 2021

See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not perform this action after onSaveInstanceState with ...
Basically I just had to : @Override protected void onSaveInstanceState(Bundle outState) { //No call for super(). Bug on API Level > 11. }...
Read more >
Handling IllegalStateException: Can not perform this action ...
When the user change the Location Setting, it will then trigger the call of onResume() again, even after onSaveInstanceState() is called. Hence this...
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 >
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 >
can not perform this action after onsaveinstancestate ...
If the activity's onSaveInstanceState() method has been called, an IllegalStateException will be thrown when you try to show the dialog. You need to...
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