Folding crash
See original GitHub issueTo reproduce, simply open the xml example and put <!--
in front of one of the nodes, then collapse it.
Unhandled exception. System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at Avalonia.Media.TextFormatting.Unicode.Codepoint.ReadAt(ReadOnlySlice`1 text, Int32 index, Int32& count) in /_/src/Avalonia.Base/Media/TextFormatting/Unicode/Codepoint.cs:line 170
at Avalonia.Media.TextFormatting.Unicode.LineBreakEnumerator.NextCharClass() in /_/src/Avalonia.Base/Media/TextFormatting/Unicode/LineBreakEnumerator.cs:line 295
at Avalonia.Media.TextFormatting.Unicode.LineBreakEnumerator.MoveNext() in /_/src/Avalonia.Base/Media/TextFormatting/Unicode/LineBreakEnumerator.cs:line 57
at Avalonia.Media.TextFormatting.TextFormatterImpl.TryGetLineBreak(TextRun textRun, LineBreak& lineBreak) in /_/src/Avalonia.Base/Media/TextFormatting/TextFormatterImpl.cs:line 454
at Avalonia.Media.TextFormatting.TextFormatterImpl.FetchTextRuns(ITextSource textSource, Int32 firstTextSourceIndex, TextEndOfLine& endOfLine, Int32& textSourceLength) in /_/src/Avalonia.Base/Media/TextFormatting/TextFormatterImpl.cs:line 407
at Avalonia.Media.TextFormatting.TextFormatterImpl.FormatLine(ITextSource textSource, Int32 firstTextSourceIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak) in /_/src/Avalonia.Base/Media/TextFormatting/TextFormatterImpl.cs:line 62
at AvaloniaEdit.Rendering.TextView.BuildVisualLine(DocumentLine documentLine, TextRunProperties globalTextRunProperties, VisualLineTextParagraphProperties paragraphProperties, IReadOnlyList`1 elementGeneratorsArray, IReadOnlyList`1 lineTransformersArray, Size availableSize) in /home/hendrikm/RiderProjects/AvaloniaEdit/src/AvaloniaEdit/Rendering/TextView.cs:line 1092
at AvaloniaEdit.Rendering.TextView.CreateAndMeasureVisualLines(Size availableSize) in /home/hendrikm/RiderProjects/AvaloniaEdit/src/AvaloniaEdit/Rendering/TextView.cs:line 976
at AvaloniaEdit.Rendering.TextView.MeasureOverride(Size availableSize) in /home/hendrikm/RiderProjects/AvaloniaEdit/src/AvaloniaEdit/Rendering/TextView.cs:line 909
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Base/Layout/Layoutable.cs:line 520
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Base/Layout/Layoutable.cs:line 385
at Avalonia.Layout.LayoutManager.Measure(ILayoutable control) in /_/src/Avalonia.Base/Layout/LayoutManager.cs:line 274
at Avalonia.Layout.LayoutManager.ExecuteMeasurePass() in /_/src/Avalonia.Base/Layout/LayoutManager.cs:line 250
at Avalonia.Layout.LayoutManager.InnerLayoutPass() in /_/src/Avalonia.Base/Layout/LayoutManager.cs:line 232
at Avalonia.Layout.LayoutManager.ExecuteLayoutPass() in /_/src/Avalonia.Base/Layout/LayoutManager.cs:line 145
at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) in /_/src/Avalonia.Base/Threading/JobRunner.cs:line 38
at Avalonia.X11.X11PlatformThreading.HandleX11(CancellationToken cancellationToken) in /_/src/Avalonia.X11/X11PlatformThreading.cs:line 169
at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken cancellationToken) in /_/src/Avalonia.X11/X11PlatformThreading.cs:line 245
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in /_/src/Avalonia.Base/Threading/Dispatcher.cs:line 61
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 120
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 209
at AvaloniaEdit.Demo.Program.Main(String[] args) in /home/hendrikm/RiderProjects/AvaloniaEdit/src/AvaloniaEdit.Demo/Program.cs:line 13
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Crash Mats For Gymnastics
We Sell Mats – 8 (Also available in 4” or 12”) Inch Thick Bi-Folding Gymnastics Crash Landing Mat Pad – Safety for Tumbling,...
Read more >Folding Crash Mat
Detailed specifications of folding crash mat. Easily foldable; Anti-bacterial vinyl; Breather mesh; Reinforced seams; Color: Blue, Black, Red, Green, Yellow.
Read more >GSC Crash Pads
Plus, strategically placed handles and a foldable design make storing this mat after class a breeze. 18 oz. vinyl covering with nylon mesh...
Read more >Andway Folding Crash Mat
Andway Folding crash mat offers the same level of safety as a standard fall mat but has the unique feature of being able...
Read more >Crash Mats & Gym Mats - Firetoys
Extra thick crash mats and folding gym mats for acrobats and aerialists. Safety equipment like crash mats are essential for anyone training in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Let me verify this.
Update: I can repro it
@Numpsy @HendrikMennen could you verify if #273 fixes the issue? Thanks!