We are developing a UWP application and noticing intermittent crashes when launching the debug process in Visual Studio.
Exception Unhandled
Unhandled exception at 0x00007fff8f9ac10c (Windows.UI.Xaml.dll) in
[ourAppName].exe: 0xC0000005: Access violation reading location
0x0000000000000000
We have also seen a release build of the app crash on launch after sideloading the AppX package onto particular machines but not on others. When a debugger was attached to the process on that machine the error was:
(7ebc.7298): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
Windows_UI_Xaml!CFocusRectManager::GetFocusOptionsForElement+0x158:
00007ff9`43d7c10c 488b01 mov rax,qword ptr [rcx]
ds:00000000`00000000=????????????????
Our application is a fairly simple two page puzzle game application where the first page is basically a home page that is used to launch the game board.
The first page does display momentarily before the app crashes.
We have tried isolating any of our asynchronous code in the page constructor by commenting it out, but the crash still occurs.
Any thoughts on what might be causing the crashes?