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

Tolriq

04/20/2022, 6:13 PM
New compose generate crash
java.lang.IllegalArgumentException: Inconsistency between the count of nodes tracked by the state (0) and the children count on the SubcomposeLayout (3). Are you trying to use the state of the disposed SubcomposeLayout?
with LazyList. Anyone can explain more the error so I can build a repro before opening an issue ?
a

Andrey Kulikov

04/20/2022, 10:55 PM
it is indeed an unexpected state so I don’t yet know what causes it. so the repro will be really beneficial. please also make sure you test on the latest alpha
t

Tolriq

04/21/2022, 5:33 AM
It is with the last alpha, the question was more about what are those nodes and state so that I know what to try to repro since it does not occurs with all the Lazy. But it seems someone else opened the issue already.
f

FunkyMuse

04/21/2022, 6:49 AM
Can confirm the issue here as well, anything that’s Lazy has that crash, it happens right after you start scrolling
t

Tolriq

04/21/2022, 7:05 AM
Not anything actually, if you have a small repro please post it at https://issuetracker.google.com/issues/229752147 as it may help.
r

rsktash

04/21/2022, 8:39 AM
this is a bug of new alpha release. I’ve rolled back
t

Tolriq

04/21/2022, 8:41 AM
Rolling back never fixes issues, it just prevent you of future updates until someone else take the time to report and have the issue fixed 😉
r

rsktash

04/21/2022, 8:42 AM
I’ve encountered in prod. I don’t have time to extract minimum repro
t

Tolriq

04/21/2022, 8:43 AM
Then you should probably don't use alpha things in prod 😉
r

rsktash

04/21/2022, 8:44 AM
I know what I can use in prod 😉
3 Views