Verified
Status Update
Comments
so...@google.com <so...@google.com> #2
Looks like a regression in 1.8.0-x. Levi, can you help with the triage of this one? Thanks!
le...@google.com <le...@google.com> #3
Hi, could you provide a repro sample where we can see the issue? Thanks!
ko...@scout24.com <ko...@scout24.com> #4
Sorry for the late reply, here is a project to re-create the crash.
- build and open the app
- press on any of the links in one of the web view
- navigate back on the browser that opened
- start scrolling down
= crash occurs
I used a Pixel 8A emulator with API level 35
- build and open the app
- press on any of the links in one of the web view
- navigate back on the browser that opened
- start scrolling down
= crash occurs
I used a Pixel 8A emulator with API level 35
le...@google.com <le...@google.com> #5
Thanks for reporting this, it does look like this is happening in 1.8, but the issue seemed to be fixed in ToT. I'll look for the fix CL next so we can cp it.
le...@google.com <le...@google.com> #6
Hi, we're working on a fix for this atm, please use the following flag to disable the behavior that causes the issue:
- isViewFocusFixEnabled
You can set it to false at the start of your app hierarchy (Activity onCreate for instance).
le...@google.com <le...@google.com> #7
This fix is being CP into 1.8. Closing since it's been fixed in ToT.
em...@well.co <em...@well.co> #8
Can you link to the commit that fixes this issue, or in which version has this been released?
Description
1.8.0-alpha08 (prior Version does not have the issue)
1.8.0-beta01
1.8.0-beta02
Jetpack Compose component(s) used:
BOM - 2025.01.01
Android Studio Build:
2024.2.2
Kotlin version:
2.0.21
Steps to Reproduce or Code Sample to Reproduce:
(Couldn't reproduce in isolated project yet)
1. Use a LazyColum with paginated items
2. Items change height eventually
3. Navigate to a (advertisement) chrome tab via clicking an item
4. Navigate back
5. scroll a bit further
= crash
Stack trace (if applicable):
```
androidx.compose.runtime.ComposeRuntimeError: Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (pending composition has not been applied). Please report to Google or use
at androidx.compose.runtime.ComposerKt.composeRuntimeError(Composer.kt:4668)
at androidx.compose.runtime.CompositionImpl.drainPendingModificationsForCompositionLocked(Composition.kt:723)
at androidx.compose.runtime.CompositionImpl.composeContent(Composition.kt:782)
at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:1132)
at androidx.compose.runtime.ComposerImpl$CompositionContextImpl.composeInitial$runtime_release(Composer.kt:4034)
at androidx.compose.runtime.ComposerImpl$CompositionContextImpl.composeInitial$runtime_release(Composer.kt:4034)
at androidx.compose.runtime.ComposerImpl$CompositionContextImpl.composeInitial$runtime_release(Composer.kt:4034)
at androidx.compose.runtime.CompositionImpl.composeInitial(Composition.kt:677)
at androidx.compose.runtime.CompositionImpl.setContentWithReuse(Composition.kt:625)
at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcomposeInto(SubcomposeLayout.kt:546)
at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose(SubcomposeLayout.kt:514)
at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose(SubcomposeLayout.kt:504)
at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose(SubcomposeLayout.kt:490)
at androidx.compose.ui.layout.LayoutNodeSubcompositionsState$Scope.subcompose(SubcomposeLayout.kt:926)
at androidx.compose.foundation.lazy.layout.LazyLayoutMeasureScopeImpl.measure-0kLqBqw(LazyLayoutMeasureScope.kt:124)
at androidx.compose.foundation.lazy.LazyListMeasuredItemProvider.getAndMeasure-0kLqBqw(LazyListMeasuredItemProvider.kt:55)
at androidx.compose.foundation.lazy.LazyListMeasuredItemProvider.getAndMeasure-0kLqBqw$default(LazyListMeasuredItemProvider.kt:49)
at androidx.compose.foundation.lazy.LazyListMeasureKt.createItemsAfterList(LazyListMeasure.kt:551)
at androidx.compose.foundation.lazy.LazyListMeasureKt.measureLazyList-LCrQqZ4(LazyListMeasure.kt:325)
at androidx.compose.foundation.lazy.LazyListKt$rememberLazyListMeasurePolicy$1$1.invoke-0kLqBqw(LazyList.kt:352)
at androidx.compose.foundation.lazy.LazyListKt$rememberLazyListMeasurePolicy$1$1.invoke(LazyList.kt:200)
at androidx.compose.foundation.lazy.layout.LazyLayoutKt$LazyLayout$1$2$1.invoke-0kLqBqw(LazyLayout.kt:78)
at androidx.compose.foundation.lazy.layout.LazyLayoutKt$LazyLayout$1$2$1.invoke(LazyLayout.kt:76)
at androidx.compose.ui.layout.LayoutNodeSubcompositionsState$createMeasurePolicy$1.measure-3p2s80s(SubcomposeLayout.kt:754)
at androidx.compose.ui.node.InnerNodeCoordinator.measure-BRTryo0(InnerNodeCoordinator.kt:128)
at androidx.compose.foundation.ScrollingContainerNode.measure-3p2s80s(ScrollingContainer.kt:234)
at androidx.compose.ui.node.LayoutModifierNodeCoordinator.measure-BRTryo0(LayoutModifierNodeCoordinator.kt:190)
at androidx.compose.foundation.lazy.layout.LazyLayoutBeyondBoundsModifierNode.measure-3p2s80s(LazyLayoutBeyondBoundsModifierLocal.kt:118)
at androidx.compose.ui.node.LayoutModifierNodeCoordinator.measure-BRTryo0(LayoutModifierNodeCoordinator.kt:190)
at androidx.compose.foundation.layout.FillNode.measure-3p2s80s(Size.kt:721)
at androidx.compose.ui.node.LayoutModifierNodeCoordinator.measure-BRTryo0(LayoutModifierNodeCoordinator.kt:190)
at androidx.compose.ui.node.MeasurePassDelegate$performMeasureBlock$1.invoke(MeasurePassDelegate.kt:169)
at androidx.compose.ui.node.MeasurePassDelegate$performMeasureBlock$1.invoke(MeasurePassDelegate.kt:168)
at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:2496)
```