-
Notifications
You must be signed in to change notification settings - Fork 697
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
App will be Crash with an InfoBar and Publish as Single File Option #7143
Comments
Hi @jonwis , @DrusTheAxe |
@MikeHillberg @BenJKuhn @Scottj1s is a Single File App (PublishSingleFile = true) a problem for WinAppSDK or a N/A and this is a WinUI issue? If the latter please transfer it to the WinUI repo (oddly enough I can't). If the former who's on point? |
Hi @riverar |
Can confirm @ghost1372. Appears to be a WinUI issue but I don't blame you for posting it here since that repository is more/less dead. Maybe @gabbybilka or @marb2000 can help route. Related: #6400, #7063, #6757, etc. Best guidance for you right now is to completely avoid using Single File publishing for all WinUI/WinAppSDK work. |
Thanks @riverar, and @ghost1372 I will transfer this to the WinUI3 repository so the automated system clone it in our internal Azure DevOps and we can triage and prioritize it. |
This crashes for you just running from VS (Control+F5)? I put your markup in a new app, set |
Hi @MikeHillberg , When running through VS I have no problem and Everything works well.
Please note that there is an InfoBar in MainWindow If we execute the published file through Visual Studio (Debug mode), we will get error |
Thank you @ghost1372! 00 Microsoft_WindowsAppRuntime_Bootstrap!MddBootstrap_StopActivity |
Please run the following command and share the results:
The description and callstack sounds like WindowsAppSDK issue #2592 -- if the Bootstrap API doesn't find a qualifying package it reports the issue before returning but that has a bug which causes a crash. This is fixed in main for vNext and queued up for servicing review for our next update (1.1.2). That Powershell command will list what WinAppSDK MSIX packages are registered for the user. If the runtime isn't installed1 it will cause this crash in the Bootstrap API. If that's your issue as a workaround you can run the WinAppSDK installer and see if the problem repros. 1 Or is incompletely installed e.g. if Microsoft.WindowsAppRuntime.1.1 is registered for the user but MicrosoftCorporationII.WinAppRuntime.Main.1.1 is not. |
Thank you @DrusTheAxe |
I tested with version 1.1.2, It seems that the Bootstrapp issue has been fixed but now i get another exception
and this is dump from visual studio https://drive.google.com/file/d/12bejvbCSjrjdJewbc-lAfDh9CMAL5Nrn/view?usp=sharing |
Hi @MikeHillberg @DrusTheAxe |
I'm having the same issue. As soon as a I run the app as "Single File" the app crashed when opening a Window or a Page that has an InfoBar (doesn't matter if that InfoBar is created in C# code or with XAML). |
any updates on this? a standard Logs from Event Viewer
|
PublishSingleFile is not working - documentation in MAUI and WASDK is a nightmare 🤮 adding these issues as a reference to check in the future https://github.com/microsoft/WindowsAppSDK/issues/3042 microsoft/microsoft-ui-xaml#7143 dotnet/maui#4329
Hi @Scottj1s |
@ghost1372 No updates - hopefully soon. Thanks for your patience. |
SDK 1.4 - My apps crash with InfoBar, even when not using the "Single File Option" |
Today I tested again with the latest version 1.4.2 and got interesting results:
It seems that this bug has been solved partially and the app can be run, but adding IncludeNativeLibrariesForSelfExtract property still causes it to crash. |
Windows App SDK 1.5 now supports PublishSingleFile: |
Whats about winrt/c++ ? |
Describe the bug
If we have an InfoBar in MainWindow and publish it as a Single File (PublishSingleFile = true) App will not run and will crash.
Steps to reproduce the bug
1.Create a New WinUI 3 Project
2.Change To Unpackaged Project
None
3. Add InfoBar on MainWindow
Expected behavior
App should run without any problems
Screenshots
No response
NuGet package version
1.0.0
Packaging type
Unpackaged
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: