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.

ComposeViewTreeIntegrationTest#composition_is_restored_in_modal_after_config_change failing

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
rjrjrcommented, Jun 9, 2022

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.

1reaction
rjrjrcommented, Jun 8, 2022

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?

Read more comments on GitHub >

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

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