Hello everyone, I'm encountering a crash which is ...
# compose
l
Hello everyone, I'm encountering a crash which is similar to this issue tracker: https://issuetracker.google.com/issues/313010266. This crash is bringing the crash-free rate down to 93%. I've tried implementing a temporary workaround by using try-catch around the text field, but unfortunately, Compose doesn't allow try-catch blocks directly within composable function calls. Could someone please offer some assistance with this issue? Thank you in advance. Here are the specific changes made:
z
which version are you using?
l
I am using compose bom
2024.04.01
. I tried to upgrade compose ui to alpha version (
androidx.compose.ui:ui:1.7.0-alpha07
) but it didn't work. I am considering downgrading it to
2023.10.01
@Zach Klippenstein (he/him) [MOD]
z
You don’t need to tag people who are already in the thread, they automatically get notified
1
What didn’t work when you try to upgrade?
l
It still crashes with NPE, compose bom
2024.04.01
is
androidx.compose.ui.text.input.CursorAnchorInfoController.updateCursorAnchorInfo (CursorAnchorInfoController.android.kt:148)
and compose ui 1.7.0-alpha7 is
androidx.compose.ui.text.input.CursorAnchorInfoController.updateCursorAnchorInfo (CursorAnchorInfoController.android.kt:156)
which is
textFieldValue!!
203 Views