workflow-kotlin: ComposeViewTreeIntegrationTest#composition_is_restored_in_modal_after_config_change failing

Consistently failing on both Pixel 5 emulator API 32 and real physical Pixel 6 API 32.

Tested with animation enabled and disabled on emulator.

java.lang.IllegalStateException: You can consumeRestoredStateForKey only after super.onCreate of corresponding component
at androidx.savedstate.SavedStateRegistry.consumeRestoredStateForKey(SavedStateRegistry.java:77)
at androidx.compose.ui.platform.DisposableSaveableStateRegistry_androidKt.DisposableSaveableStateRegistry(DisposableSaveableStateRegistry.android.kt:75)
at androidx.compose.ui.platform.DisposableSaveableStateRegistry_androidKt.DisposableSaveableStateRegistry(DisposableSaveableStateRegistry.android.kt:54)
at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.ProvideAndroidCompositionLocals(AndroidCompositionLocals.android.kt:105)
at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$3.invoke(Wrapper.android.kt:157)
at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$3.invoke(Wrapper.android.kt:156)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (15 by maintainers)

Commits related to this issue

Most upvoted comments

Aha! Confirmed that the broken test, ComposeViewTreeIntegrationTest#composition_is_restored_in_modal_after_config_change passes on API 29 (so I don’t have to be fired). It fails on 31 and 32, haven’t tried 30 yet.

@zach-klippenstein I wonder if we’re going to find another Compose bug in here after all.

I deleted that @Ignore in https://github.com/square/workflow-kotlin/commit/3633994eb69ed01947d8ff0d469a924c4c6ddbbe, perhaps because I noted that the Compose bug from #504 (https://issuetracker.google.com/issues/197442069) is now marked fixed?

On the other hand…how was I able to build that release?