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

'Command bar' crashes on resizing the window after opening the overflow menu #565

Open
moomiji opened this issue May 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@moomiji
Copy link

moomiji commented May 8, 2024

Describe the bug

  • First, open a CommandBar overflow menu
  • Second, resize the window to the smallest
  • Then, app crash

Desktop/Platform (please complete the following information):

  • OS: Windows 11
  • FluentAvalonia Version: master / 2.0.5
  • Avalonia Version: 11.1.0-beta1 / 11.0.10

Additional context

System.ArgumentException
  HResult=0x80070057
  Message=Attempt to call InvalidateArrange on wrong LayoutManager.
  Source=Avalonia.Base
  StackTrace:
   at Avalonia.Layout.LayoutManager.InvalidateArrange(Layoutable control)
   at Avalonia.Layout.LayoutManager.ExecuteArrangePass()
   at Avalonia.Layout.LayoutManager.InnerLayoutPass()
   at Avalonia.Layout.LayoutManager.ExecuteLayoutPass()
   at Avalonia.Controls.WindowBase.HandleResized(Size clientSize, WindowResizeReason reason)
   at Avalonia.Controls.Window.HandleResized(Size clientSize, WindowResizeReason reason)
   at Avalonia.Win32.WindowImpl.AppWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.WindowImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.WindowImpl.WndProcMessageHandler(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at FluentAvalonia.Interop.Win32Interop.CallWindowProcW(IntPtr lpPrevWndProc, HWND hWnd, UInt32 msg, WPARAM wParam, LPARAM lParam)
   at FluentAvalonia.UI.Windowing.Win32WindowManager.WndProc(HWND hWnd, UInt32 msg, WPARAM wParam, LPARAM lParam) in .\src\FluentAvalonia\UI\Windowing\Win32\Win32WindowManager.cs:line 106
   at FluentAvalonia.UI.Windowing.Win32WindowManager.WndProcStatic(IntPtr hwnd, UInt32 msg, IntPtr wParam, IntPtr lParam) in .\src\FluentAvalonia\UI\Windowing\Win32\Win32WindowManager.cs:line 410
   at Avalonia.Win32.Interop.UnmanagedMethods.DefWindowProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.WindowImpl.AppWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.WindowImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.WindowImpl.WndProcMessageHandler(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at FluentAvalonia.Interop.Win32Interop.CallWindowProcW(IntPtr lpPrevWndProc, HWND hWnd, UInt32 msg, WPARAM wParam, LPARAM lParam)
   at FluentAvalonia.UI.Windowing.Win32WindowManager.WndProc(HWND hWnd, UInt32 msg, WPARAM wParam, LPARAM lParam) in .\src\FluentAvalonia\UI\Windowing\Win32\Win32WindowManager.cs:line 151
   at FluentAvalonia.UI.Windowing.Win32WindowManager.WndProcStatic(IntPtr hwnd, UInt32 msg, IntPtr wParam, IntPtr lParam) in .\src\FluentAvalonia\UI\Windowing\Win32\Win32WindowManager.cs:line 410
@moomiji moomiji added the bug Something isn't working label May 8, 2024
@dcooperch
Copy link

I have experienced this crash several times as well.

@ossandust
Copy link

Any update on this? The bug can easily be reproduced with the FAControlsGallery sample in the FluentAvalonia solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants