Skip to content

All winui3/wasdk packaged app crash upon launching in admin mode on Windows 10 #6268

@HO-COOH

Description

@HO-COOH

Describe the bug

I found out all winui3 / wasdk packaged app (no matter C# or C++) crash upon launching in admin mode on Windows 10 (I tested Windows 10 17763 and 19041 LTSC, exactly the same result).

Curiously, the crash does NOT happen when running with debugger inside an elevated Visual Studio. And it also does NOT happen when using unpackaged mode.

The crash dump doesn't reveal much information and it does not happen in a debugger, making it's quite hard to figure out the reason.

Steps to reproduce the bug

  1. Create an empty winui3 packaged app
  2. Builld and deploy.
  3. In start menu, right click the app >> Run as administrator

Expected behavior

No response

Screenshots

Image

NuGet package version

Windows App SDK 1.8.5: 1.8.260209005

Packaging type

Packaged (MSIX)

Windows version

Windows 10 version 21H2 (19044, November 2021 Update), Windows 10 version 1809 (17763, October 2018 Update)

IDE

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions