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

Visual was invalidated during the render pass #481

Open
jl0pd opened this issue Jan 30, 2025 · 0 comments
Open

Visual was invalidated during the render pass #481

jl0pd opened this issue Jan 30, 2025 · 0 comments

Comments

@jl0pd
Copy link
Contributor

jl0pd commented Jan 30, 2025

Our application crushes with following stacktrace:

CoreCLR Version: 8.0.1024.46610
.NET Version: 8.0.10
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException: Visual was invalidated during the render pass
at Avalonia.Rendering.Composition.CompositingRenderer.AddDirty(Visual visual)
at Avalonia.Visual.InvalidateVisual()
at AvaloniaEdit.Editing.CaretLayer.Hide()
at AvaloniaEdit.Editing.Caret.Hide()
at AvaloniaEdit.Editing.TextArea.OnLostFocus(RoutedEventArgs e)
at Avalonia.Reactive.LightweightObservableBase`1.PublishNext(T value)
at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e)
at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e)
at Avalonia.Input.KeyboardDevice.SetFocusedElement(IInputElement element, NavigationMethod method, KeyModifiers keyModifiers)
at Avalonia.Controls.TopLevel.PlatformImpl_LostFocus()
at Avalonia.Win32.WindowImpl.AppWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.WindowImpl.WndProcMessageHandler(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)

Unfortunately I cannot reproduce this error

Avalonia version: 11.1.3
AvaloniaEdit version: 11.1

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

No branches or pull requests

1 participant