question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextBlock exception

See original GitHub issue

Using 0.9.999-cibuild0009164-beta I’m getting this exception, it happens after a few minutes of many textBlocks being updated. I’m afraid I don’t know the text that causes it.

Index was outside the bounds of the array. Avalonia.Visuals T get_Item(Int32) at Avalonia.Utilities.ReadOnlySlice1.get_Item(Int32 index) at Avalonia.Media.TextFormatting.Unicode.Codepoint.ReadAt(ReadOnlySlice1 text, Int32 index, Int32& count) at Avalonia.Skia.TextShaperImpl.FillBuffer(Buffer buffer, ReadOnlySlice1 text) at Avalonia.Skia.TextShaperImpl.ShapeText(ReadOnlySlice1 text, Typeface typeface, Double fontRenderingEmSize, CultureInfo culture) at Avalonia.Media.TextFormatting.TextFormatterImpl.FetchTextRuns(ITextSource textSource, Int32 firstTextSourceIndex, TextLineBreak previousLineBreak, TextLineBreak& nextLineBreak) at Avalonia.Media.TextFormatting.TextFormatterImpl.FormatLine(ITextSource textSource, Int32 firstTextSourceIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak) at Avalonia.Media.TextFormatting.TextLayout.UpdateLayout() at Avalonia.Media.TextFormatting.TextLayout…ctor(String text, Typeface typeface, Double fontSize, IBrush foreground, TextAlignment textAlignment, TextWrapping textWrapping, TextTrimming textTrimming, TextDecorationCollection textDecorations, Double maxWidth, Double maxHeight, Double lineHeight, Int32 maxLines, IReadOnlyList1 textStyleOverrides) at Avalonia.Controls.TextBlock.CreateTextLayout(Size constraint, 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.LayoutManager.Measure(ILayoutable control) at Avalonia.Layout.LayoutManager.ExecuteMeasurePass() at Avalonia.Layout.LayoutManager.InnerLayoutPass() at Avalonia.Layout.LayoutManager.ExecuteLayoutPass() at Avalonia.Threading.JobRunner.RunJobs(Nullable1 priority) at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg) at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken) at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
Gillibaldcommented, Jul 13, 2020

0.9.999-cibuild0009225-beta can be tested now. It reverts the default to NoWrap so you don’t need to specify it explictitly

0reactions
ahoppercommented, Jul 21, 2020

My issue is fixed so I’ll close, hopefully it works for @ShadowDancer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting WPF's Textblock.Text property throws ...
NullReferenceException happens at runtime, not compile time. In your cs file, where are you setting the .Text property?
Read more >
Binding.ValidatesOnExceptions Property (System.Windows ...
When the user enters an invalid value, a red border appears in the TextBox and the ToolTip reports the error message. XAML Copy....
Read more >
Re: A low level exception occured in AE.ADBE Text - ...
Hello,. I keep getting this error message in my video. I know it has something to do with the text as deleting the...
Read more >
Exception Texts
The exception text describes an error situation from a mostly technical view. If an exception is described to a user, it should be...
Read more >
Understanding SC 1.4.9:Images of Text (No Exception) ...
9:Images of Text (No Exception) (Level AAA). Success Criterion (SC). Images of text are only used for pure decoration or where a particular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found