App on Microsoft Store runs fine on most user systems but fails to run on others with a stowed exception being reported in MS Partner Center #4853
Replies: 1 comment
-
Created Issue #4861 to support investigation on this challenge. Please view this Issue for any follow-up. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is probably not the right place to have this discussion but I don't know where else I can bring this up.
I have a desktop app on the Microsoft Store that uses the WinAppSDK and runs successfully on most of the user's computers.
For some systems however the Microsoft Partner Center's health section for the app shows a lot of 'stowed exceptions' occurring when the application is being started.
The stack trace is only:
Some have a minidump file attached which when analyzing with WinDbg shows:
I understand that the error is most likely due to an unhandled exception within a WinRT or COM API which my application is calling.
To trap those exceptions the app constructor takes care of this like so (I am using MS AppCenter to track faults):
AppUnhandledException(e.Exception) makes a large string of the stack and sends it in chunks to MS AppCenter.
I don't get anything however in MS AppCenter that relates to
DirectUI::FrameworkApplication::StartDesktop
.So, are there any suggestions how to deal with this?
I just saw myself that it is probably better to do
EnableLogging()
(it accessesApplicationDataContainer
in local settings to see if logging is enabled) after the registration for unhandled events and so I will do that in the next update of the app and see what it gives.In the mean time however what remains important: on most user's system this error doesn't come up. Why on others? The app is deployed selfcontained and so I have to expect that there shouldn't be any wrong or missing DLLs in the package.
Or is it not that simple?
I keep thinking that a WinAppSDK/WinUI desktop app needs certain dlls in Windows that are not part of the package but aren't necessarily available on a user's system. If so, shouldnt there be an error when the app is being installed?
Beta Was this translation helpful? Give feedback.
All reactions