https://kotlinlang.org logo
#compose
Title
# compose
d

dagomni

05/28/2020, 11:57 AM
Hi, after updating to dev12, WithConstraints that's inside of AdapterList keeps getting called which freezes the list during scroll, and then the app crashes Structure:
Copy code
AdapterList with Modifier.fillMaxSize()
-Box with Modifier.wrapContentHeight() + Modifier.fillMaxWidth()
--ConstraintLayout with Modifier.wrapContentHeight() + Modifier.fillMaxWidth() (I can also see non-stop constraints measure happening, it also gets logged)
---Box with Modifier.fillMaxWidth() + Modifier.aspectRatio(16 / 9f)
----WithConstraints
-----Image (but it also happens with empty WithConstraints block)
Crash:
Copy code
java.lang.IllegalStateException: Asking for measurement result of unmeasured layout modifier
        at androidx.ui.core.LayoutNodeWrapper.getMeasureResult(LayoutNodeWrapper.kt:63)
        at androidx.ui.core.LayoutNodeWrapper.getMeasuredSize(LayoutNodeWrapper.kt:53)
        at androidx.ui.core.Placeable.getWidth(Placeable.kt:40)
        at androidx.ui.core.LayoutNode.getWidth(LayoutNode.kt:373)
        at androidx.ui.foundation.ListState.composeAndMeasureNextItem-BTEqjtU(AdapterList.kt:237)
m

manueldidonna

05/28/2020, 12:51 PM
I had the same problem with dev11. Maybe it's related to https://issuetracker.google.com/issues/154653504
👍 1
a

Andrey Kulikov

05/28/2020, 1:28 PM
this could be something separate as well, could you please file a bug? thanks!
👍 1
12 Views