ComposeViewTreeIntegrationTest#composition_is_restored_in_modal_after_config_change failing
See original GitHub issueConsistently 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)
Issue Analytics
- State:
- Created a year ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
SCCM failing to distribute packages to DP - Reddit
I am having some packages fail when they try to distribute to this DP. ... particular package that is repeatedly failing at 8%...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?