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

Anastasia Rozovskaya

12/22/2021, 11:49 AM
Hi, all. I’m getting this exception
java.lang.IllegalStateException: LayoutNode should be attached to an owner at androidx.compose.ui.node.LayoutNodeKt.requireOwner(LayoutNode.kt:1372)
while clicking on a particular list item (2nd item actually). The set up is as follows: Fragment with recyclerview, where each item is a compose card. Compose version is 1.0.5. Any help would be appreciated.
Before posting this question I searched the channel and found a rather old post from 2020 where Andrey Kulikov answered that this exception has been fixed in new release, but as you can see I faced the same (or very similar) exception today.
a

Andrey Kulikov

12/22/2021, 2:41 PM
Hey! First please try to repro it on the latest 1.1 rc and if it still reproduces please file a bug
a

Anastasia Rozovskaya

12/22/2021, 3:28 PM
Ok. Thanks for the suggestion. UPD the crash is still present with 1.1.0-rc01. Probably I should have mentioned it before, but the crash happens after dgis gives the following error
MapBuilderPrivate.cpp:167$ Cannot set camera position: position is invalid
so I’ll try to investigate this one too more thoroughly before filing the bug.
false alarm, sorry for bothering
a

Andrey Kulikov

12/23/2021, 2:10 PM
do you mean it works fine on 1.1.0-rc01?
a

Andy Himberger

12/27/2021, 5:47 AM
I was seeing this exception recently on 1.1, I think it was happening where I had a lazylist item with nothing inside it. But I had made some other changes and fixed that before I really confirmed where it was coming from
40 Views