【发布时间】:2019-07-09 03:43:17
【问题描述】:
我们正在开发 UWP 应用程序,并注意到在 Visual Studio 中启动调试过程时出现间歇性崩溃。
Exception Unhandled
Unhandled exception at 0x00007fff8f9ac10c (Windows.UI.Xaml.dll) in
[ourAppName].exe: 0xC0000005: Access violation reading location
0x0000000000000000
我们还看到,在将 AppX 包旁加载到特定机器上而不是在其他机器上后,应用程序的发布版本在启动时崩溃。当调试器附加到该机器上的进程时,错误是:
(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=????????????????
我们的应用程序是一个相当简单的两页益智游戏应用程序,其中第一页基本上是用于启动游戏板的主页。
在应用程序崩溃之前会显示第一页。
我们尝试通过注释掉页面构造函数中的任何异步代码来隔离它,但崩溃仍然发生。
对导致崩溃的原因有什么想法吗?
【问题讨论】:
标签: c# visual-studio uwp-xaml