Crashes in Assigned Access with `windows.aboveLockScreen` extension
Problem Description
A React Native Windows app can run in Assigned Access mode. However, if the windows.aboveLockScreen extension is added to Package.appxmanifest, the app crashes when signing into the assigned access user.
We need this extension to use the LockApplicationHost API.
There is a section here on viewing logs for the application in Assigned Access.
This may be due to the fact this extension causes the app to run in a secondary view, but I'm unsure.
Looking through event viewer logs, it looks like the application is being terminated to prevent a buffer overflow (exception 0xc0000409 means STATUS_STACK_BUFFER_OVERRUN).
Faulting application name: <AppName>.exe, version: 0.0.0.0, time stamp: 0x6886e168
Faulting module name: ucrtbase.dll, version: 10.0.26100.4652, time stamp: 0xbaffbd59
Exception code: 0xc0000409
Fault offset: 0x00000000000a4ace
Faulting process id: 0x5574
Faulting application start time: 0x1DBFF70374D7BD1
Faulting application path: C:\Program Files\WindowsApps\941ca622-9242-4aba-947d-9748e09ef62f_1.0.2.0_x64__vbrzzkxpq9pg8\<AppName>.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: 75d45e2d-e4ba-4aab-a7db-3ec301ea25c8
Faulting package full name: 941ca622-9242-4aba-947d-9748e09ef62f_1.0.2.0_x64__vbrzzkxpq9pg8
Faulting package-relative application ID: App
Steps To Reproduce
- Create a blank app.
- Add the following under
<Application>insidePackage.appxmanifest:
<Extensions>
<uap:Extension Category="windows.lockScreenCall" />
<uap:Extension Category="windows.aboveLockScreen" />
</Extensions>
- Set up assigned access for the app as described here: https://learn.microsoft.com/en-us/windows/configuration/assigned-access/configure-single-app-kiosk?tabs=settings
- Sign into the new user, and watch it fail to start
Expected Results
The app should run in Assigned Access mode when built with the windows.aboveLockScreen extension, like it does when it is not.
CLI version
20.0.2
Environment
System:
OS: Windows 11 10.0.26100
CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-1235U
Memory: 36.66 GB / 47.78 GB
Binaries:
Node:
version: 22.11.0
path: C:\nvm4w\nodejs\node.EXE
Yarn: Not Found
npm:
version: 10.9.0
path: C:\nvm4w\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.19041.0
- 10.0.22621.0
- 10.0.26100.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.14.36310.24 (Visual Studio Community 2022)
Languages:
Java: Not Found
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Community Modules
No response
Target React Native Architecture
Old Architecture (UWP) Only
Target Platform Version
= 10.0.26100
Visual Studio Version
Visual Studio 2022
Build Configuration
Release
Snack, code example, screenshot, or link to a repository
No response