I've started to see this crash occur in my Compose...
# compose
r
I've started to see this crash occur in my Compose Multiplatform Project. It occurs randomly, when having AnnotatedStrings with LinkAnnotation applied. https://github.com/zirman/hacker-news/tree/kmpafication Thanks!
I think it may be related to
pushLink(LinkAnnotation.Url(...))
. When I remove `LinkAnnotation`s I am no longer seeing this crash.
h
cc @Anastasia [G]
a
We had a very similar crash when you add a LinkAnnotation with the range of length 0. Could it be your case too?
r
I don't know. I'm parsing html
<a href>
tags into an
AnnotatedString
so it may occur. I'll do some println debugging to see if that's the case.
👍 1
It's doesn't seem to be deterministic. I opened the same content and it didn't crash a second time.
None of the LinkAnnotations appear to have length zero.
Here are two strings that were converted to
AnnotatedString
before I saw the error. These
AnnotatedString
are in a
LazyColumn
that is updating with rows as they scroll. I wonder if that also is a contributing factor.
Untitled
a
okay, hard to say from just looking at these annotations. Could you file a bug please with a repro?
r
Yes I can file a report. Although the annotations sometimes don't crash so I'll see if I can reduce the code.
Which component do you want me to file it under?
This one good?
👌 1
Here it is. Please let me know if you need anything else. https://issuetracker.google.com/issues/372390054
gratitude thank you 2