'UWP App is crashing on startup but only after installing the app
I am having a problem with a UWP app that is crashing on startup. It crashes only once after the app is installed, either via Debug button on VS2019/2022 or via the Release bundle install package.
If I launch it a second time after the installation, the app won't crash anymore.
We don't know why that is going on and we would like to fix this crash so that the app doesn't crash after installing it.
The crash exception is the following:
Unhandled exception at 0x7726BF4B (MrmCoreR.dll) in AppName_UWP.exe: 0xC0000005: Access violation reading location 0x02000087.
I have uploaded an app memory dump as well as a screenshot showing everything that I have tried to fix this error until now - you can download it here
In a nutshell, we have tried:
- Debugging in "Native Only"
- Debugging in "Mixed"
- Removing references to other libraries that could have caused the exception
- Commenting references to Win UI
- Change how XAML resources are added in App.xaml
Does anyone have an idea of what this could be and how to fix it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
