Skip to content

Enable in-app Toolbar in XAML Hot Reload crashes in App SDK 1.5 #9853

Open

Description

Describe the bug

This is a kind-of successor to #8806 I managed to get a situation where the application crashes when the XAML Hot Reload in-app toolbar is enabled, but now in WinAppSDK 1.5.240627000

Steps to reproduce the bug

I haven't pin-pointed it precisely, but it seems to happen when a new window (in our case containing a webview 2 element) is quickly opened and closed. (We use it for OAuth0 logout)

Expected behavior

Of course we expect the application not to crash. We have no issues when we disable the in-app toolbar

Screenshots

Exception:
image

Call stack:
image

NuGet package version

WinUI 3 - Windows App SDK 1.5.5: 1.5.240627000

Windows version

Windows 11 (22H2): Build 22621

Additional context

Visual Studio Professional 17.10.5

I would be glad to help debug this, but I don't know where to begin. The screenshot shows a null-reference exception

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions