UWP:优化与HockeyApp崩溃报告(UWP: optimize crash report wi

2019-10-29 04:34发布

我已经开发了一个应用程序UWP为客户:因为我们遇到了一些错误 ,我不能我的设备上重现,我们已经实现HockeyApp。 客户希望争取时间/钱,所以我只用基础崩溃报告:

HockeyClient.Current.Configure("xxxxxx",
  new TelemetryConfiguration() { EnableDiagnostics = true })
    .SetExceptionDescriptionLoader((Exception ex) =>
    {
      return "Exception HResult: " + ex.HResult.ToString();
    });

但似乎是不够的,因为不允许我修复的最新问题。

编辑- 28/11/2017:

我上传的.pdb文件通过@ XavierXie-MSFT的建议,但是这似乎并没有改变什么:

  • 我不明白的堆栈跟踪发生的异常方法名称
  • 还有另一个项目多次提到:“SharedLibrary”

为了说明这一点,我注意到了这些下列情况除外:

WebService.WebServices <CallXxxAsync> d__11.MoveNext

任务的异常(或多个)通过等待对任务或访问其Exception属性未观察到无论是。 其结果是,未观察到的异常被终结器线程重新抛出。 (地址或服务器名称无法解析)

异常堆栈:

unknown location
WebService.WebServices.<CallPullVComponentOrderAsync>d__18.MoveNext()

原始日志:

Incident Identifier: 1ede9930-eee6-4c2f-a8c1-dc6db66b67c1
CrashReporter Key:   MeqZxKtCKaEOpv4tymz9cXaQ7gsapzCoRCrTZjfpIOw=
Hardware Model:      Surface Book
Identifier:      CompXxxReport.UWP
Version:         1.3.0.0

Date/Time:       2017-10-08T18:21:51.543Z
OS Version:      Windows 10.0.15063.632
Report Version:  104

Exception Type:  System.AggregateException
Crashed Thread:  2

Application Specific Information:
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Address or server name could not be resolved)

Exception Stack:
unknown location
WebService.WebServices.<CallPullVComponentOrderAsync>d__18.MoveNext()

=>我的理解是错误的与我同步调用一个WebService的方法,但为什么我没有得到堆栈跟踪的更多信息?

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw

该服务无法在此时接受控制信息。 无法打开保险柜

异常堆栈:

CompXxxReport.UWP!<BaseAddress>+0x1c9907c
CompXxxReport.UWP!<BaseAddress>+0x1c9943c
CompXxxReport.UWP!<BaseAddress>+0x1c9933d
CompXxxReport.UWP!<BaseAddress>+0x28dea0e
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x69993e
SharedLibrary!<BaseAddress>+0x497d7c
CompXxxReport.UWP!<BaseAddress>+0x1c9907c
CompXxxReport.UWP!<BaseAddress>+0x1ce65e6
CompXxxReport.UWP!<BaseAddress>+0x1ce6514
Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, ApplicationModel.Core.UnhandledErrorDetectedEventArgs e)

原始日志:

Incident Identifier: 75cb3a76-fc12-48d9-9203-aee312aad7cc
CrashReporter Key:   bs7WcdiR7JeDpE1O7ZQc2SLDOk3VmOho4VSKm6tlSNY=
Hardware Model:      Surface Pro 4
Identifier:      CompXxxReport.UWP
Version:         1.3.0.0

Date/Time:       2017-10-30T13:11:19.472Z
OS Version:      Windows 10.0.14393.1715
Report Version:  104

Exception Type:  System.Exception
Crashed Thread:  2

Application Specific Information:
The service cannot accept control messages at this time.

Cannot open Vault

Exception Stack:
CompXxxReport.UWP!<BaseAddress>+0x1c9907c
CompXxxReport.UWP!<BaseAddress>+0x1c9943c
CompXxxReport.UWP!<BaseAddress>+0x1c9933d
CompXxxReport.UWP!<BaseAddress>+0x28dea0e
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x69993e
SharedLibrary!<BaseAddress>+0x497d7c
CompXxxReport.UWP!<BaseAddress>+0x1c9907c
CompXxxReport.UWP!<BaseAddress>+0x1ce65e6
CompXxxReport.UWP!<BaseAddress>+0x1ce6514
Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, ApplicationModel.Core.UnhandledErrorDetectedEventArgs e)

Thread 2 Crashed:
0   CompXxxReport.UWP          0x00007fff8110907c 0x00007fff7f470000 + 29986940
1   CompXxxReport.UWP          0x00007fff8110943c 0x00007fff7f470000 + 29987900
2   CompXxxReport.UWP          0x00007fff8110933d 0x00007fff7f470000 + 29987645
3   CompXxxReport.UWP          0x00007fff81d4ea0e 0x00007fff7f470000 + 42854926
4   SharedLibrary              0x00007fff7ce512b1 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs at 61:13
5   SharedLibrary              0x00007fff7d09993e System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__9_0(Object state) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\AsyncMethodBuilder.cs at 957:49
6   SharedLibrary              0x00007fff7ce97d7c System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Threading\SynchronizationContext.cs at 171:21
7   CompXxxReport.UWP          0x00007fff8110907c 0x00007fff7f470000 + 29986940
8   CompXxxReport.UWP          0x00007fff811565e6 0x00007fff7f470000 + 30303718
9   CompXxxReport.UWP          0x00007fff81156514 0x00007fff7f470000 + 30303508
10  CompXxxReport.UWP          0x00007fff81b9f4ce 0x00007fff7f470000 + 41088206


Binary Images:
0x00007fff7f470000 - 0x00007fff827b9000 +CompXxxReport.UWP unknown  <d01255703a1f44bbbbc1d6cb327fc12c-1> C:\Projets\GitTablet - VS17\car-3.0-tablet\CompXxxReport.UWP\obj\x64\Release\ilc\intermediate\Native\CompXxxReport.UWP.pdb
0x00007fff7ca00000 - 0x00007fff7d195000 +SharedLibrary unknown  <824b2b5bacbe41bbbdc3422e6090614b-1> f:\ddSetup\SD\2\setup\msis\x86ret\enu\netfx_ProjectNamd64\TestILC\ExternalFiles\SharedAssemblyPath\ret.intermediate\Native\SharedLibrary.pdb

=>我的理解是错误有关PasswordVault,我用它来存储用户的凭据,但为什么我没有拿到相关的方法?

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw

未指定的错误(0X80004005 Excep_FromHResult)

异常堆栈:

CompXxxReport.UWP!<BaseAddress>+0x1c9907c
CompXxxReport.UWP!<BaseAddress>+0x1c9943c
CompXxxReport.UWP!<BaseAddress>+0x1f29c81
CompXxxReport.UWP!<BaseAddress>+0x2c44d8d
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x4511ee
SharedLibrary!<BaseAddress>+0x451168
SharedLibrary!<BaseAddress>+0x50c81a
CompXxxReport.UWP!<BaseAddress>+0x2c511b7
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x69993e
SharedLibrary!<BaseAddress>+0x497d7c
CompXxxReport.UWP!<BaseAddress>+0x1c9907c
CompXxxReport.UWP!<BaseAddress>+0x1ce65e6
CompXxxReport.UWP!<BaseAddress>+0x1ce6514
Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, ApplicationModel.Core.UnhandledErrorDetectedEventArgs e)

原始日志:

Incident Identifier: ad9d1d59-d444-49e6-88fb-2d412a3980e3
CrashReporter Key:   qcygznd4Cv/R0+Ne9+KNn/+iP4aMuMLf2Q2kw0LgpsY=
Hardware Model:      Latitude 5175
Identifier:      CompXxxReport.UWP
Version:         1.3.0.0

Date/Time:       2017-11-12T08:54:52.741Z
OS Version:      Windows 10.0.14393.1770
Report Version:  104

Exception Type:  System.Exception
Crashed Thread:  2

Application Specific Information:
Unspecified error (Excep_FromHResult 0x80004005)

Exception Stack:
CompXxxReport.UWP!<BaseAddress>+0x1c9907c
CompXxxReport.UWP!<BaseAddress>+0x1c9943c
CompXxxReport.UWP!<BaseAddress>+0x1f29c81
CompXxxReport.UWP!<BaseAddress>+0x2c44d8d
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x4511ee
SharedLibrary!<BaseAddress>+0x451168
SharedLibrary!<BaseAddress>+0x50c81a
CompXxxReport.UWP!<BaseAddress>+0x2c511b7
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x69993e
SharedLibrary!<BaseAddress>+0x497d7c
CompXxxReport.UWP!<BaseAddress>+0x1c9907c
CompXxxReport.UWP!<BaseAddress>+0x1ce65e6
CompXxxReport.UWP!<BaseAddress>+0x1ce6514
Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, ApplicationModel.Core.UnhandledErrorDetectedEventArgs e)

Thread 2 Crashed:
0   CompXxxReport.UWP          0x00007ffb7cb0907c 0x00007ffb7ae70000 + 29986940
1   CompXxxReport.UWP          0x00007ffb7cb0943c 0x00007ffb7ae70000 + 29987900
2   CompXxxReport.UWP          0x00007ffb7cd99c81 0x00007ffb7ae70000 + 32676993
3   CompXxxReport.UWP          0x00007ffb7dab4d8d 0x00007ffb7ae70000 + 46419341
4   SharedLibrary              0x00007ffb846312b1 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs at 61:13
5   SharedLibrary              0x00007ffb846311ee System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess($Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs at 187:25
6   SharedLibrary              0x00007ffb84631168 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification($Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs at 156:42
7   SharedLibrary              0x00007ffb846ec81a System.Runtime.CompilerServices.TaskAwaiter.GetResult() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs at 113:13
8   CompXxxReport.UWP          0x00007ffb7dac11b7 0x00007ffb7ae70000 + 46469559
9   SharedLibrary              0x00007ffb846312b1 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs at 61:13
10  SharedLibrary              0x00007ffb8487993e System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__9_0(Object state) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\AsyncMethodBuilder.cs at 957:49
11  SharedLibrary              0x00007ffb84677d7c System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Threading\SynchronizationContext.cs at 171:21
12  CompXxxReport.UWP          0x00007ffb7cb0907c 0x00007ffb7ae70000 + 29986940
13  CompXxxReport.UWP          0x00007ffb7cb565e6 0x00007ffb7ae70000 + 30303718
14  CompXxxReport.UWP          0x00007ffb7cb56514 0x00007ffb7ae70000 + 30303508
15  CompXxxReport.UWP          0x00007ffb7d59f4ce 0x00007ffb7ae70000 + 41088206


Binary Images:
0x00007ffb7ae70000 - 0x00007ffb7e1b9000 +CompXxxReport.UWP unknown  <d01255703a1f44bbbbc1d6cb327fc12c-1> C:\Projets\GitTablet - VS17\car-3.0-tablet\CompXxxReport.UWP\obj\x64\Release\ilc\intermediate\Native\CompXxxReport.UWP.pdb
0x00007ffb841e0000 - 0x00007ffb84975000 +SharedLibrary unknown  <824b2b5bacbe41bbbdc3422e6090614b-1> f:\ddSetup\SD\2\setup\msis\x86ret\enu\netfx_ProjectNamd64\TestILC\ExternalFiles\SharedAssemblyPath\ret.intermediate\Native\SharedLibrary.pdb

=>我们为什么不得到我们的项目相关方法的名字呢?

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw

TaskExceptionHolder_UnhandledException

异常堆栈:

unknown location
CompXxxReport.UWP!<BaseAddress>+0x28dd51d
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x4511ee
SharedLibrary!<BaseAddress>+0x451168
SharedLibrary!<BaseAddress>+0x699af7
CompXxxReport.UWP!<BaseAddress>+0x28ff980
CompXxxReport.UWP!<BaseAddress>+0x28ffa4a

原始日志:

Incident Identifier: 2c241fee-8cec-4d2e-95c8-8be80000fdfd
CrashReporter Key:   X0dgXzbEV5Ge89Jwey0pDrGWBFaOvpaepsgklxxjIlE=
Hardware Model:      Latitude E6320
Identifier:      CompXxxReport.UWP
Version:         1.3.0.0

Date/Time:       2017-11-05T20:27:28.604Z
OS Version:      Windows 10.0.14393.1770
Report Version:  104

Exception Type:  System.AggregateException
Crashed Thread:  3

Application Specific Information:
TaskExceptionHolder_UnhandledException

Exception Stack:
unknown location
CompXxxReport.UWP!<BaseAddress>+0x28dd51d
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x4511ee
SharedLibrary!<BaseAddress>+0x451168
SharedLibrary!<BaseAddress>+0x699af7
CompXxxReport.UWP!<BaseAddress>+0x28ff980
CompXxxReport.UWP!<BaseAddress>+0x28ffa4a

Thread 3 Crashed:
0   CompXxxReport.UWP          0x00007ff830a1d51d 0x00007ff82e140000 + 42849565
1   SharedLibrary              0x00007ff83d2712b1 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs at 61:13
2   SharedLibrary              0x00007ff83d2711ee System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess($Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs at 187:25
3   SharedLibrary              0x00007ff83d271168 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification($Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs at 156:42
4   SharedLibrary              0x00007ff83d4b9af7 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd($Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs at 128:17
5   CompXxxReport.UWP          0x00007ff830a3f980 0x00007ff82e140000 + 42989952
6   CompXxxReport.UWP          0x00007ff830a3fa4a 0x00007ff82e140000 + 42990154


Binary Images:
0x00007ff82e140000 - 0x00007ff831489000 +CompXxxReport.UWP unknown  <d01255703a1f44bbbbc1d6cb327fc12c-1> C:\Projets\GitTablet - VS17\car-3.0-tablet\CompXxxReport.UWP\obj\x64\Release\ilc\intermediate\Native\CompXxxReport.UWP.pdb
0x00007ff83ce20000 - 0x00007ff83d5b5000 +SharedLibrary unknown  <824b2b5bacbe41bbbdc3422e6090614b-1> f:\ddSetup\SD\2\setup\msis\x86ret\enu\netfx_ProjectNamd64\TestILC\ExternalFiles\SharedAssemblyPath\ret.intermediate\Native\SharedLibrary.pdb

=>我们为什么不得到我们的项目相关方法的名字呢?


我的客户是同意新增活动HokceyApp日志收集更多的信息,并修复最新的错误:但它是正确的解决方案? 是否有其他possibilites? 难道是更有趣的使用App中心,现在,现在与UWP应用程序的工作原理?


文章来源: UWP: optimize crash report with HockeyApp