Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UiaRaiseAutomationPropertyChangedEvent causing exception code 0xc0000005 (AccessViolation) #17827

Open
adirh3 opened this issue Dec 24, 2024 · 0 comments

Comments

@adirh3
Copy link
Contributor

adirh3 commented Dec 24, 2024

Describe the bug

Sorry I don't have too much information other than stack trace unfortunately.
Some of my Windows 11 users experience the following crash -
Exception code: 0xc0000005

Application: FluentSearch.exe
CoreCLR Version: 9.0.24.52809
.NET Version: 9.0.0
Description: The process was terminated due to an unhandled exception.
Stack:
   at Avalonia.Win32.Automation.Interop.UiaCoreProviderApi.<UiaRaiseAutomationPropertyChangedEvent>g____PInvoke|5_0(Void*, Int32, Avalonia.Win32.Automation.Marshalling.ComVariant, Avalonia.Win32.Automation.Marshalling.ComVariant)
   at Avalonia.Win32.Automation.Interop.UiaCoreProviderApi.<UiaRaiseAutomationPropertyChangedEvent>g____PInvoke|5_0(Void*, Int32, Avalonia.Win32.Automation.Marshalling.ComVariant, Avalonia.Win32.Automation.Marshalling.ComVariant)
   at Avalonia.Win32.Automation.Interop.UiaCoreProviderApi.UiaRaiseAutomationPropertyChangedEvent(Avalonia.Win32.Automation.Interop.IRawElementProviderSimple, Int32, System.Object, System.Object)
   at Avalonia.Win32.Automation.AutomationNode.OnPeerPropertyChanged(System.Object, Avalonia.Automation.AutomationPropertyChangedEventArgs)
   at Avalonia.Automation.Peers.AutomationPeer.RaisePropertyChangedEvent(Avalonia.Automation.AutomationProperty, System.Object, System.Object)
   at Avalonia.Automation.Peers.ControlAutomationPeer.OwnerPropertyChanged(System.Object, Avalonia.AvaloniaPropertyChangedEventArgs)
   at Avalonia.Layout.Layoutable.ArrangeCore(Avalonia.Rect)
   at Avalonia.Layout.Layoutable.Arrange(Avalonia.Rect)
   at Avalonia.Controls.Grid.ArrangeOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.ArrangeCore(Avalonia.Rect)
   at Avalonia.Layout.Layoutable.Arrange(Avalonia.Rect)
   at Avalonia.Layout.LayoutManager.Arrange(Avalonia.Layout.Layoutable)
   at Avalonia.Layout.LayoutManager.Arrange(Avalonia.Layout.Layoutable)
   at Avalonia.Layout.LayoutManager.ExecuteArrangePass()
   at Avalonia.Layout.LayoutManager.ExecuteLayoutPass()
   at Avalonia.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at Avalonia.Media.MediaContext.RenderCore()
   at Avalonia.Media.MediaContext.Render()
   at Avalonia.Threading.DispatcherOperation.InvokeCore()
   at Avalonia.Threading.DispatcherOperation.Execute()
   at Avalonia.Threading.Dispatcher.ExecuteJob(Avalonia.Threading.DispatcherOperation)
   at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean)
   at Avalonia.Threading.Dispatcher.Signaled()
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr, UInt32, IntPtr, IntPtr)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG ByRef)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG ByRef)
   at Avalonia.Win32.Win32DispatcherImpl.RunLoop(System.Threading.CancellationToken)
   at Avalonia.Threading.DispatcherFrame.Run(Avalonia.Threading.IControlledDispatcherImpl)
   at Avalonia.Threading.Dispatcher.PushFrame(Avalonia.Threading.DispatcherFrame)
   at Avalonia.Threading.Dispatcher.MainLoop(System.Threading.CancellationToken)
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.StartCore(System.String[])
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(System.String[])
   at Blast.Program.Main(System.String[])

To Reproduce

It seems to happen when using DataGrid, I can't personally reproduce it.

Expected behavior

Not crash

Avalonia version

master

OS

Windows

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants