https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
p

PHondogo

04/18/2022, 2:49 PM
Hello! What does
Copy code
java.lang.IllegalStateException: LayoutCoordinates androidx.compose.ui.node.ModifierLocalConsumerNode@1d3e8489 is not attached!
means?
z

Zach Klippenstein (he/him) [MOD]

04/18/2022, 4:11 PM
Something is probably trying to read from a
LayoutCoordinates
without checking that
isAttached
is true. A
LayoutCoordinates
will be detached when its node is not placed, for example, or after it is removed from the composition.
Any time you’re reading a
LayoutCoordinates
from outside the
onPlaced
or
onGloballyPositioned
you got it from, you should be checking if it’s attached first.
p

PHondogo

04/18/2022, 4:17 PM
Thanks! I suppose it is internally reading, cause in my code there are no such readings. I'll try switch to last stable version and check.
z

Zach Klippenstein (he/him) [MOD]

04/18/2022, 4:36 PM
If you have the full stack trace you should be able to get a hint about what component is doing it. If it’s one of ours, please file a bug!
2 Views