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

App with custom titlebar crashes after a window is closed. #10074

Open
kvega005 opened this issue Oct 16, 2024 · 0 comments
Open

App with custom titlebar crashes after a window is closed. #10074

kvega005 opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@kvega005
Copy link

Describe the bug

This line of code: WindowChrome_Partial.cpp (L102) causes app which uses a custom title bar to crash. This code should not be invoked after the window is closed. I believe it is a regression, because my code has not changed but the app has started crashing.

Stack trace:

  • combase.dll!RoFailFastWithErrorContextInternal2(HRESULT hrError, unsigned long cStowedExceptions, _STOWED_EXCEPTION_INFORMATION_V2 * * aStowedExceptionPointers) Line 1469 C++
  • Microsoft.UI.Xaml.dll!FailFastWithStowedExceptions(HRESULT hrError, unsigned long cStowedExceptions, _STOWED_EXCEPTION_INFORMATION_V2 * * aStowedExceptionPointers) Line 1508 C++
  • Microsoft.UI.Xaml.dll!DirectUI::WindowChrome::SetTitleBar(ABI::Microsoft::UI::Xaml::IUIElement * titleBar) Line 102 C++
  • Microsoft.UI.Xaml.dll!DirectUI::DesktopWindowImpl::SetTitleBarImpl(ABI::Microsoft::UI::Xaml::IUIElement * pTitleBar) Line 1289 C++
  • [Inline Frame] Microsoft.UI.Xaml.dll!DirectUI::Window::SetTitleBarImpl(ABI::Microsoft::UI::Xaml::IUIElement *) Line 815 C++
  • Microsoft.UI.Xaml.dll!DirectUI::WindowGenerated::SetTitleBar(ABI::Microsoft::UI::Xaml::IUIElement * pTitleBar) Line 388 C++
  • Microsoft.UI.Xaml.dll!DirectUI::DesktopWindowImpl::CloseImpl() Line 454 C++
  • [Inline Frame] Microsoft.UI.Xaml.dll!DirectUI::Window::CloseImpl() Line 269 C++
  • Microsoft.UI.Xaml.dll!DirectUI::WindowGenerated::Close() Line 260 C++
  • [Managed to Native Transition]
  • Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IWindowMethods.Close(WinRT.IObjectReference _obj) Unknown
  • Microsoft.WinUI.dll!Microsoft.UI.Xaml.Window.Close() Unknown

Steps to reproduce the bug

  1. Ensure you are running a recent Windows Canary build.

  2. Launch Windows Sandbox.

  3. Restart the container.
    Image

  4. Observe the crash.

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

Windows Insider Build (xxxxx)

Additional context

No response

@kvega005 kvega005 added the bug Something isn't working label Oct 16, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant