You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When certain characters are passed to TextBlock.Text, and TextTrimming is CharacterEllipsis, the app crashes with the following exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Avalonia.Media.GlyphRun.CreateGlyphRunMetrics()
at Avalonia.Media.GlyphRun.get_Metrics()
at Avalonia.Media.GlyphRun.get_BaselineOrigin()
at Avalonia.Media.GlyphRun.CreateGlyphRunImpl()
at Avalonia.Media.GlyphRun.get_PlatformImpl()
at Avalonia.Media.GlyphRun.get_InkBounds()
at Avalonia.Media.TextFormatting.TextLineImpl.CreateLineMetrics()
at Avalonia.Media.TextFormatting.TextLineImpl.FinalizeLine()
at Avalonia.Media.TextFormatting.TextLineImpl.Collapse(TextCollapsingProperties[] collapsingPropertiesList)
at Avalonia.Media.TextFormatting.TextLayout.CreateTextLines()
at Avalonia.Media.TextFormatting.TextLayout..ctor(ITextSource textSource, TextParagraphProperties paragraphProperties, TextTrimming textTrimming, Double maxWidth, Double maxHeight, Int32 maxLines)
at Avalonia.Controls.TextBlock.CreateTextLayout(String text)
at Avalonia.Controls.TextBlock.get_TextLayout()
at Avalonia.Controls.TextBlock.MeasureOverride(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.LayoutHelper.MeasureChild(Layoutable control, Size availableSize, Thickness padding, Thickness borderThickness)
at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.LayoutHelper.MeasureChild(Layoutable control, Size availableSize, Thickness padding)
at Avalonia.Controls.Decorator.MeasureOverride(Size availableSize)
at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
at Avalonia.Controls.Window.MeasureOverride(Size availableSize)
at Avalonia.Controls.WindowBase.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.LayoutManager.Measure(Layoutable control)
at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass()
at Avalonia.Controls.Window.ShowCore(Window owner)
at Avalonia.Controls.Window.Show()
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.ShowMainWindow()
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
at TestAvalonia.Program.Main(String[] args)in/Users/astromobilesolutions/Projects/TestAvalonia/TestAvalonia/Program.cs:line 14
Describe the bug
When certain characters are passed to
TextBlock.Text
, andTextTrimming
isCharacterEllipsis
, the app crashes with the following exception:To Reproduce
Expected behavior
App should not crash
Avalonia version
11.0.6-11.0.10
OS
macOS
Additional context
This is probably introduced in
11.0.6
since issue doesn't occur on version11.0.5
The text was updated successfully, but these errors were encountered: