microsoft / microsoft/msix-packaging
[BUG] AddPackageByAppInstallerFileAsync causes crash when compiling for x86 on an ARM64 system
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.1k
- Forks
- 193
- Avg merge
- 2h 16m
- Merged PRs (30d)
- 2
Description
Project
MSIX SDK or Win7Msix
Describe the bug
Calling PackageManager.AddPackageByAppInstallerFileAsync causes a crash like:
Exception thrown at 0x76B1DD80 (KernelBase.dll) in HelloWorld.exe: 0xC06D007E: Module not found (parameters: 0x032FED04).
To Reproduce
Steps to reproduce the behavior:
Simply start a "Hello World" project in Visual Studio, and add the following code:
hstring uri_str = winrt::to_hstring("https://github.com/hydraulic-software/eton-desktop/releases/latest/download/eton.appinstaller"); // Any URL will do, doesn't even need to exist.
Uri appInstallerUri{ uri_str };
PackageManager pm{};
const IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress>& operation =
pm.AddPackageByAppInstallerFileAsync(appInstallerUri,
AddPackageByAppInstallerOptions::ForceTargetAppShutdown, pm.GetDefaultPackageVolume());
Expected behavior
The process of installing the app from the URL starts on the background, which is the exact behavior observed when compiling for x64 or ARM64, but not when compiling for x86.
Screenshots
N/A
Platform
Windows 11
Additional context
Debugging with WinDbg seems to indicate failure loading delayed dlls like ext-ms-win-storage-sense-l1-1-0.dll.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Hello World reproduction and the PackageManager.AddPackageByAppInstallerFileAsync call, comparing x86 behavior with x64 and ARM64 on Windows 11. Use WinDbg to investigate the delayed DLL loading failure, including ext-ms-win-storage-sense-l1-1-0.dll; done means the x86 build starts the background installation without crashing on ARM64 systems.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100