-
Notifications
You must be signed in to change notification settings - Fork 331
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
Unpackaged C++ sample app MddBootstrapInitialize call reports unhandled exception in KernelBase.dll #2138
Comments
@vrodaxAptos I ran into this as well, and it took me a lot longer to figure out what was happening than it should have. In my case, I was missing the installation of the Dynamic Dependencies Lifetime Manager package (DDLM). You can get it from the prerequisites page: https://docs.microsoft.com/windows/apps/windows-app-sdk/deploy-unpackaged-apps#prerequisites We should probably update the docs for MddBootstrapInitialize to point to this too, and provide a better error message (or at least debug output). |
Can you elaborate? If you run WindowsAppRuntimeInstall.exe this shouldn't be a problem. That installs all applicable packages1. If you ran the installer did it encounter a problem? 1 What's applicable depends on the system's cpu:
If you install packages yourself (don't use the installer) then you need to do the equivalent to the installer. If you hit F5 in VS for a packaged app that only registers 1 framework package (matching your project's target); if you're a packaged app you can call If you hit F5 in VS for an unpackaged app it doesn't register any package. Unpackaged apps built with WinAppSDK have a prereq to install the packages. This isn't integrated into VS' build system today. It's on our radar as something we'd like to support in the future (https://task.ms/33356079). If you're an unpackaged app you need to install the packages on your dev machine. The installer is a convenient way to do that. Detailed deployment guides at... |
It's in my queue :-) |
@DrusTheAxe unfortunately your expectations that I/other people would read all the docs (or fully understand winappsdk packaging...) before trying to code, is misplaced :) Yes, there is a deployment guide. It has a link to prerequisites, etc. However that is not the starting point for me, I start with the code. The API docs for MddBootstrapInitialize don't mention any of this, but they should. While debugging this I also discovered some bugs in the winappsdk docs, I'll send mail internally about it. Bottom line is we should not assume people read our non-code documentation (esp longer docs) and we should make our APIs work more naturally. |
Snicker. I never said that. I merely noted they exist. Devs are notoriously happy to JustDoIt and maybe read docs later if ever (and I'm no exception :P)
Good feedback. Will follow up. @angelazhangmsft @cwruss @AdamBraden @sachintaMSFT for visibility
Best way to get something on the radar is to file bugs here or in ADO (if you have access). Thanks! |
@DrusTheAxe I checked under Apps and features and found that the DDLM was installed. I have included a screenshot: I see errors in the Microsoft-Windows-AppxDeploymentServer/Operational event log at 2/27/2022 6:08:01 PM EST. I am attaching a copy of these log files: The errors in the file appear to indicate that there are files that are missing. |
@asklar |
Docs have been updated There's also more diagnostic info coming in 1.1 (#2316) |
thanks Howard! |
Describe the bug
I ran WindowsAppRuntimeInstall.exe from Microsoft.WindowsAppRuntime.Redist.1.0.0.
I followed the tutorial for creating the DynamicDependenciesTest unpackaged C++ app.
When I run the app I receive an unhandled exception at 0x0000uFFFC4F9B382 (KernelBase.dll) when the MddBootstrapInitialize function is called.
If I do this same thing on a different computer it runs without problems.
I had previously been developing a WindowsAppSDK 1.0 packaged app and that was working just fine. I tried uninstalling the runtime, uninstalling all packaged apps, then reinstalling the runtime and that doesn't help.
The computer where it is failing is running Windows 10 Enterprise 20H2 OS build 19042.1526.
I have attached screenshots of the source code and error and call stack when single-stepping in the debugger.
Steps to reproduce the bug
Expected behavior
No response
Screenshots
Screenshot showing source code with the unhandled exception message:
Screenshot showing the call stack when the exception was reported:
NuGet package version
1.0.0
Packaging type
Unpackaged
Windows version
Windows 10 version 20H2 (19042, October 2020 Update)
IDE
Visual Studio 2019
Additional context
No response
The text was updated successfully, but these errors were encountered: