【发布时间】:2015-11-16 23:38:33
【问题描述】:
我在商店中有一个应用程序让我有些头疼。我的客户报告并证实,应用程序在以下情况下崩溃/关闭:
- 启动应用程序
- 关闭应用
- 至少等待 15 分钟
- 打开应用程序
应用程序将在启动画面结束并启动扩展启动画面时立即关闭。目前还不清楚是什么导致了这个问题。该应用程序将继续关闭/崩溃。该应用程序必须完全卸载并重新安装,然后才能再次开始工作。我只能使用应用程序的商店版本重现此问题。我在事件查看器程序中没有找到任何崩溃报告。
我已经从开发门户下载了一些崩溃报告,但我认为我没有看到基于崩溃的时间戳和频率显示的崩溃。
额外信息:我没有运行任何后台任务或磁贴更新。
我有三个子问题:
- 在系统中寻找哪些好地方可以详细了解应用关闭的原因?
- 是否可以在我的系统上运行商店构建,这样我就可以运行一些测试,而不必每次都将应用程序提交到商店?
- 基于以下事实:1) 应用程序第一次运行 2) 在约 15 分钟内启动或上一次启动时在任何后续时间运行 3) 在上一次启动时间 > 15 分钟前运行时将自行关闭 4 ) 它只发生在商店构建中,有没有人知道可能是什么原因造成的?
更新:
我尝试使用 Visual Studio 调试应用程序的商店版本,我只能看到以下内容:
Exception thrown at 0x00007FFF54D7A1C8 (KernelBase.dll) in App.exe: 0x40080201: WinRT originate error (parameters: 0x000000008000000E, 0x000000000000002C, 0x0000006E46EAE9B0).
Exception thrown at 0x00007FFF54D7A1C8 (KernelBase.dll) in App.exe: 0x40080201: WinRT originate error (parameters: 0x000000008000000E, 0x0000000000000046, 0x0000006E46EAE630).
The thread 0x1be8 has exited with code 1 (0x1).
The thread 0xfa8 has exited with code 1 (0x1).
The thread 0x115c has exited with code 1 (0x1).
The thread 0x730 has exited with code 1 (0x1).
The thread 0xed4 has exited with code 1 (0x1).
The thread 0x1894 has exited with code 1 (0x1).
The thread 0x18a0 has exited with code 1 (0x1).
The thread 0x194c has exited with code 1 (0x1).
The thread 0x1a3c has exited with code 1 (0x1).
The thread 0x1988 has exited with code 1 (0x1).
The thread 0x16ec has exited with code 1 (0x1).
The thread 0x1584 has exited with code 1 (0x1).
The thread 0xfd0 has exited with code 1 (0x1).
The thread 0xd8c has exited with code 1 (0x1).
The thread 0xcec has exited with code 1 (0x1).
The thread 0x16b4 has exited with code 1 (0x1).
The thread 0x12f8 has exited with code 1 (0x1).
The thread 0x146c has exited with code 1 (0x1).
The thread 0x36c has exited with code 1 (0x1).
The thread 0x1854 has exited with code 1 (0x1).
The thread 0x1ae4 has exited with code 1 (0x1).
The thread 0xa38 has exited with code 1 (0x1).
The thread 0x230 has exited with code 1 (0x1).
The program '[3840] App.exe' has exited with code 1 (0x1).
我猜程序通常会以代码 0 退出,所以一定有问题。很难看出抛出的异常是什么。
我试图打破异常并走过去看看是什么导致了它,但我得到的只是另一个异常:
Exception thrown at 0x00007FFF54D7A1C8 in App.exe: Microsoft C++ exception: _com_error at memory location 0x000000EE2788E9D0.
我向商店上传了一个带有内置复活节彩蛋的应用版本,允许我禁用扩展启动画面中的所有代码。即使禁用了所有代码,它仍然会崩溃/关闭。
更新 2: 应用程序在启动时开始关闭的时间范围似乎与系统进入休眠/睡眠的时间有关。
【问题讨论】:
-
如果您还没有这样做,我会尝试使用 Visual Studio 调试商店构建。在VS的菜单中,选择Debug -> Other Debug Targets -> Debug Installed Package
-
很好的建议。我不知道这是可能的。我会尽快尝试并让您知道它是否有效。如果是这样,您应该将其作为答案,我会将其标记为正确!
-
查看更新的问题
标签: c# windows crash uwp windows-10