Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] AddPackageByAppInstallerFileAsync causes crash when compiling for x86 on an ARM64 system #603

Open
leo-hydraulic opened this issue Oct 28, 2023 · 0 comments
Labels
Area-External The issue relates to something outside this repo Area-MSIX General MSIX issues Bug Something isn't working

Comments

@leo-hydraulic
Copy link

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue needs to be triaged by a member of the core team label Oct 28, 2023
@msftrubengu msftrubengu added Area-MSIX General MSIX issues Area-External The issue relates to something outside this repo Bug Something isn't working and removed Needs-Triage Issue needs to be triaged by a member of the core team labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-External The issue relates to something outside this repo Area-MSIX General MSIX issues Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants