App crashes/hangs (depending on version of android) if a ListView ItemTemplate contains a label with formatted text is configured to use MaxLines > 1 and LineBreakMode "TailTruncation" and depending on the actual text that is to be shown!
=> there seem to be a character that is not supported?
Crash reported at .LabelRenderer.onLayout
LabelRenderer.java, line 46
Java.Lang.RuntimeException: offset(129) should be less than line limit(15)
We will try to create a repro for this!
No hang/crash.
Hangs on android 7.1
Crashes on android 9,10
Workaround is not using LineBreakMode "TailTruncation"
@gentledepp Thanks! We'll wait for the reproduction.
I managed to create a repro on Xamarin.Forms version 4.1.0.
See the following video:
PR for the repro will follow soon!
@bruzkovsky fyi! 馃榿
probably related to #5669, #8831 and #7534
I'm working on a solution and it's almost ready.
there seem to be a character that is not supported?
If you need more information on a workaround, the error happens if you use NewLine character ("\n" in android). Just do a converter that remove the character will prevent to break.
probably related to #5669, #8831 and #7534
Just to remember that this error it's related to #7534 only. #5669 is for 2 different erros in different platforms, and the second one, #8831, it's an iOS issue not related to this one.
Most helpful comment
I'm working on a solution and it's almost ready.
If you need more information on a workaround, the error happens if you use NewLine character ("\n" in android). Just do a converter that remove the character will prevent to break.
Just to remember that this error it's related to #7534 only. #5669 is for 2 different erros in different platforms, and the second one, #8831, it's an iOS issue not related to this one.