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
Calling UpdateSource() second time deletes underlying ItemsSource which then causes a CRASH
To Reproduce
start app
click button Add keys (first time)
[OBSERVED] nothing
click button Add keys (second time)
[OBSERVED] CRASH
System.NullReferenceException: Object reference not set to an instance of an object.
at AvaDic.ViewModels.MainWindowViewModel.AddKey()in/home/trevorde/dev/AvaDic/ViewModels/MainWindowViewModel.cs:line 35
at CompiledAvaloniaXaml.XamlIlTrampolines.AvaDic:AvaDic.ViewModels.MainWindowViewModel+AddKey_0!CommandExecuteTrampoline(Object,Object)
at Avalonia.Data.Core.ExpressionNodes.MethodCommandNode.Command.Execute(Objectparameter)
at Avalonia.Controls.Button.OnClick()
at Avalonia.Controls.Button.OnPointerReleased(PointerReleasedEventArgse)
at Avalonia.Input.InputElement.<>c.<.cctor>b__32_9(InputElementx,PointerReleasedEventArgse)
at Avalonia.Interactivity.RoutedEvent`1.<>c__DisplayClass1_0`1.<AddClassHandler>g__Adapter|0(Objectsender,RoutedEventArgse)
at Avalonia.Interactivity.RoutedEvent.<>c__DisplayClass23_0.<AddClassHandler>b__0(ValueTuple`2args)
at Avalonia.Reactive.AnonymousObserver`1.OnNext(Tvalue)
at Avalonia.Reactive.LightweightObservableBase`1.PublishNext(Tvalue)
at Avalonia.Reactive.LightweightSubject`1.OnNext(Tvalue)
at Avalonia.Interactivity.RoutedEvent.InvokeRaised(Objectsender,RoutedEventArgse)
at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgse)
at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactivesource,RoutedEventArgse)
at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgse)
at Avalonia.Input.MouseDevice.MouseUp(IMouseDevicedevice,UInt64timestamp,IInputRootroot,Pointp,PointerPointPropertiesprops,KeyModifiersinputModifiers,IInputElementhitTest)
at Avalonia.Input.MouseDevice.ProcessRawEvent(RawPointerEventArgse)
at Avalonia.Input.MouseDevice.ProcessRawEvent(RawInputEventArgse)
at Avalonia.Input.InputManager.ProcessInput(RawInputEventArgse)
at Avalonia.Controls.TopLevel.<>c.<HandleInput>b__145_0(Objectstate)
at Avalonia.Threading.Dispatcher.Send(SendOrPostCallbackaction,Objectarg, Nullable`1priority)
at Avalonia.Controls.TopLevel.HandleInput(RawInputEventArgse)
at Avalonia.X11.X11Window.DispatchInput(RawInputEventArgsargs)
at Avalonia.RawEventGrouper.Dispatch(RawInputEventArgsev)
at Avalonia.ManualRawEventGrouperDispatchQueue.DispatchNext()
at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationTokencancellationToken)
at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImplimpl)
at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrameframe)
at Avalonia.Threading.Dispatcher.MainLoop(CancellationTokencancellationToken)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.StartCore(String[]args)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[]args)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilderbuilder,String[]args, Action`1lifetimeBuilder)
at AvaDic.Program.Main(String[]args)in/home/trevorde/dev/AvaDic/Program.cs:line 12
Describe the bug
Calling UpdateSource() second time deletes underlying ItemsSource which then causes a CRASH
To Reproduce
start app
click button
Add keys
(first time)[OBSERVED] nothing
click button
Add keys
(second time)[OBSERVED] CRASH
AvaDic.zip
Expected behavior
Avalonia version
11.2.4
OS
Linux
Additional context
/~https://github.com/TrevorDArcyEvans/AvaDic
The text was updated successfully, but these errors were encountered: