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

darkmoon_uk

02/11/2021, 7:31 AM
Getting this error in Compose `alpha12`:
Copy code
java.lang.IllegalArgumentException: offset(4) is out of bounds [0, 3]
        at androidx.compose.ui.text.MultiParagraph.requireIndexInRangeInclusiveEnd(MultiParagraph.kt:588)
        at androidx.compose.ui.text.MultiParagraph.getCursorRect(MultiParagraph.kt:437)
...full trace in thread. This occurs after typing a few chars into the text-box. Bit hard to provide our code, but can say we are using a visual transformation which I suppose may affect cursor position / character indexing.
The crash goes away if we remove the visual transformation.
a

Anastasia [G]

02/14/2021, 6:54 PM
Would you mind filing a ticket with the code snippet?
a

Antoine Lamy

05/20/2021, 1:52 AM
Still experiencing this issue in
1.0.0-beta05
. Filled a bug report: https://issuetracker.google.com/issues/188681404
2 Views