Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash - IllegalStateException: Can not perform this action after onSaveInstanceState #6861

Closed
ouchadam opened this issue Aug 17, 2022 · 0 comments · Fixed by #6862
Closed
Assignees
Labels
A-Onboarding O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems Z-Crash Z-FTUE Issue is relevant to the first time use project or experience

Comments

@ouchadam
Copy link
Contributor

Exception 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:14)
  at androidx.fragment.app.BackStackRecord.commit (BackStackRecord.java:1)
  at im.vector.app.core.extensions.ActivityKt.addFragmentToBackstack$default (Activity.kt:7)
  at im.vector.app.features.onboarding.ftueauth.FtueAuthVariant.addRegistrationStageFragmentToBackstack (FtueAuthVariant.kt:4)
  at im.vector.app.features.onboarding.ftueauth.FtueAuthVariant.addRegistrationStageFragmentToBackstack$default (FtueAuthVariant.kt:1)
  at im.vector.app.features.onboarding.ftueauth.FtueAuthVariant.onStartCombinedLogin (FtueAuthVariant.kt:1)
  at im.vector.app.features.onboarding.ftueauth.FtueAuthVariant.handleOnboardingViewEvents (FtueAuthVariant.kt:67)
  at im.vector.app.features.onboarding.ftueauth.FtueAuthVariant.access$handleOnboardingViewEvents (FtueAuthVariant.kt:1)
  at im.vector.app.features.onboarding.ftueauth.FtueAuthVariant$initUiAndData$1$2.invoke (FtueAuthVariant.kt:2)
  at im.vector.app.features.onboarding.ftueauth.FtueAuthVariant$initUiAndData$1$2.invoke (FtueAuthVariant.kt:1)
  at im.vector.app.core.platform.VectorBaseActivity$observeViewEvents$1.invokeSuspend (VectorBaseActivity.kt:3)
  at im.vector.app.core.platform.VectorBaseActivity$observeViewEvents$1.invoke
  at im.vector.app.core.platform.VectorBaseActivity$observeViewEvents$1.invoke
  at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2.emit (Emitters.kt:6)
  at kotlinx.coroutines.flow.SharedFlowImpl.collect$suspendImpl (SharedFlow.kt:13)
  at kotlinx.coroutines.flow.SharedFlowImpl$collect$1.invokeSuspend
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:3)
  at kotlinx.coroutines.DispatchedTaskKt.resume (DispatchedTask.kt:10)
  at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume (CancellableContinuationImpl.kt:15)
  at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl (CancellableContinuationImpl.kt:6)
  at kotlinx.coroutines.CancellableContinuationImpl.resumeWith (CancellableContinuationImpl.kt:4)
  at kotlinx.coroutines.flow.SharedFlowImpl.tryEmit (SharedFlow.kt:6)
  at im.vector.app.features.onboarding.OnboardingViewModel.onHomeServerSelected (OnboardingViewModel.kt:11)
  at im.vector.app.features.onboarding.OnboardingViewModel.access$onHomeServerSelected (OnboardingViewModel.kt:1)
  at im.vector.app.features.onboarding.OnboardingViewModel$onHomeServerSelected$1.invokeSuspend
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:3)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:18)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:236)
  at android.app.ActivityThread.main (ActivityThread.java:8107)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:656)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:967)

Affects both onStartCombinedLogin and openStartCombinedRegister due to the fragment transactions occurring asynchronously.

https://play.google.com/console/u/0/developers/{redacted}/app/{redacted}/vitals/crashes/3ff2f92ea7f32ac71458ed0e4bacfe02/details?installedFrom=PLAY_STORE&days=30&clustering=NEW&versionCode=40104322%2C40104321

https://play.google.com/console/u/0/developers/{redacted}/app/{redacted}/vitals/crashes/b46cbf61a299c3fe3ea1f997653d75cb/details?installedFrom=PLAY_STORE&days=30&clustering=NEW&versionCode=40104322%2C40104321

@ouchadam ouchadam added Z-Crash Z-FTUE Issue is relevant to the first time use project or experience S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Uncommon Most users are unlikely to come across this or unexpected workflow A-Onboarding labels Aug 17, 2022
@ouchadam ouchadam self-assigned this Aug 17, 2022
@ouchadam ouchadam added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Aug 17, 2022
@ouchadam ouchadam mentioned this issue Aug 17, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Onboarding O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems Z-Crash Z-FTUE Issue is relevant to the first time use project or experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant