Fill up the events until it reaches the maximum capacity.
Try toggling Tail while events are populated.
System.InvalidOperationException
HResult=0x80131509
Message=Invalid Arrange rectangle.
Source=Avalonia.Base
StackTrace:
at Avalonia.Layout.Layoutable.Arrange(Rect rect)
at Avalonia.Controls.VirtualizingStackPanel.ArrangeOverride(Size finalSize)
at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect)
at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize)
at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect)
at Avalonia.Layout.Layoutable.Arrange(Rect rect)
at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverrideImpl(Size finalSize, Vector offset)
at Avalonia.Controls.Presenters.ScrollContentPresenter.ArrangeWithAnchoring(Size finalSize)
at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect)
at Avalonia.Layout.Layoutable.Arrange(Rect rect)
at Avalonia.Layout.LayoutManager.Arrange(Layoutable control)
at Avalonia.Layout.LayoutManager.ExecuteArrangePass()
at Avalonia.Layout.LayoutManager.ExecuteLayoutPass()
at Avalonia.Controls.VirtualizingStackPanel.ScrollIntoView(Int32 index)
at Avalonia.Controls.ItemsControl.ScrollIntoView(Int32 index)
at Needlework.Net.Desktop.Views.WebsocketView.<>c__DisplayClass3_0.<OnApplyTemplate>b__0(Object s, NotifyCollectionChangedEventArgs e) in G:\Git\Needlework.Net\Needlework.Net.Desktop\Views\WebsocketView.axaml.cs:line 34
at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Needlework.Net.Desktop.ViewModels.WebsocketViewModel.<>c__DisplayClass22_0.<OnMessage>b__0() in G:\Git\Needlework.Net\Needlework.Net.Desktop\ViewModels\WebsocketViewModel.cs:line 111
at Avalonia.Threading.DispatcherOperation.InvokeCore()
Seems to happen sometimes. Needs more debugging.
It seems to happen when the
Size
of the control has aNaN
for its width or height. https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Layout/Layoutable.cs#L405Wrapping the line in a try-catch causes the list to be corrupted near the bottom...