microsoft / microsoft/WindowsAppSDK
All winui3/wasdk packaged app crash upon launching in admin mode on Windows 10
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
### 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
### 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_
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository files, tests, or entry points are named. Start by reproducing the crash with a minimal packaged WinUI 3 or Windows App SDK app on the listed Windows 10 versions, comparing Run as administrator with elevated debugging and unpackaged mode; done means the packaged app launches successfully in administrator mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, csharp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100