dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Span with tail truncation and paragraph breaks with Java.Lang.IndexOutOfBoundsException #25836

Closed anandhan-rajagopal closed 3 days ago

anandhan-rajagopal commented 1 week ago

Description

On Android, when using spans with tail truncation and paragraph breaks in a text component, a Java.Lang.IndexOutOfBoundsException is thrown. Getting this sample from XamarinUITests Issue7534.

Image

Steps to Reproduce

  1. Run the attached sample
  2. App will get crash while deploy on Android platform.
  3. MainPage.zip

Link to public reproduction project repository

No response

Version with bug

9.0.0 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11

Did you find any workaround?

No response

Relevant log output