You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by JosHuybrighs November 6, 2024
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.
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 accesses ApplicationDataContainer 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?
The text was updated successfully, but these errors were encountered:
Discussed in #4853
Originally posted by JosHuybrighs November 6, 2024
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?
The text was updated successfully, but these errors were encountered: