I’m seeing in production some crashes for `invalidatePositionInWindow`:
Does anybody know what the root cause for that is?
Phone: iPhone SE
i
Ivan Matkov
05/05/2025, 12:07 PM
Please file YT issue with reproduction.
cc @Andrei Salavei
Ivan Matkov
05/05/2025, 12:11 PM
Copy code
check(!isClosed) { "invalidatePositionInWindow called after ComposeScene is closed" }
Use after close.
Similar one in the tracker: CMP-7686 kotlin.IllegalStateException: density set after ComposeScene is closed
But I'm not sure what version is used here
a
Andrei Salavei
05/05/2025, 1:16 PM
Also, cold you please provide more details about the crash, like full crash log, kotlin and compose multiplatform versions.
Andrei Salavei
05/06/2025, 9:21 AM
Thank you for providing logs. As @Ivan Matkov told, the issue most likely solved in the latest Compose Version.