【发布时间】:2016-10-13 05:27:36
【问题描述】:
遇到一个错误,该错误会冻结应用程序并且只发生在平板电脑上(从不在我的笔记本电脑上)。似乎与快速切换汉堡菜单有关。我得到了一个堆栈跟踪,它牵涉到第 3 方控制,但我得到的 10 次中有 9 次如下。只有几个“异步无效”我无法避免它们(覆盖事件)和其他日志记录,我相信问题出在 XAML 中(方法是记录进入/退出):
未指定的错误 : System.Runtime.InteropServices.COMException (0x80004005): 未指定的错误
未指定的错误 在 Windows.ApplicationModel.Core.UnhandledError.Propagate() 在 Oceaneering.Commons.Utilities.Logger.CoreApplication_UnhandledErrorDetected(Object sender, UnhandledErrorDetectedEventArgs e)
这样设置:
CoreApplication.UnhandledErrorDetected += CoreApplication_UnhandledErrorDetected;
而接收方式是:
try {
e.UnhandledError.Propagate();
}
catch (Exception ex){
logChannel.LogMessage(string.Format("Unhandled Exception: {0}:{1}", ex.Message, ex.ToString()));
SaveToFileAsync().Wait();
}
我还能做些什么来收集更多信息?谢谢!
【问题讨论】:
-
添加:正如我之前所说,我偶尔会得到堆栈跟踪。刚得到一个我以前没见过的,但似乎其他人有这个:未处理的异常:从对 COM 组件的调用中返回了错误 HRESULT E_FAIL。:System.Runtime.InteropServices.COMException (0x80004005):错误 HRESULT E_FAIL已从对 COM 组件的调用中返回......
-
您是否有机会捕获崩溃的转储文件并将其分享出去?
-
谢谢,但这是一年前的事了。一些 Nuget 更新解决了这个问题。
标签: win-universal-app uwp windows-10-universal windows-10-mobile