UWP和HockeyApp崩溃报告:崩溃报告根本没有意义

时间:2017-08-11 07:13:24

标签: uwp windows-10 crash-reports hockeyapp crash-log

我已将HockeyApp集成到我的UWP应用程序中,并在按钮上单击NotImplementedException仅用于测试目的。 我在曲棍球比赛中看到的是以下内容

Exception Stack:
SharedLibrary!<BaseAddress>+0x68beef
SharedLibrary!<BaseAddress>+0x8255c6
SharedLibrary!<BaseAddress>+0x8d41b8
SharedLibrary!<BaseAddress>+0x89ccef
GalaSoft.MvvmLight.Helpers.WeakAction.Execute() in D:\GalaSoft\mydotnet\MVVMLight\source\GalaSoft.MvvmLight\GalaSoft.MvvmLight (PCL)\Helpers\WeakAction.cs:line 287
GalaSoft.MvvmLight.Command.RelayCommand.Execute(Object parameter) in D:\GalaSoft\mydotnet\MVVMLight\source\GalaSoft.MvvmLight\GalaSoft.MvvmLight (PCL)\Command\RelayCommand.cs:line 221
SharedLibrary!<BaseAddress>+0x6a7f41
SharedLibrary!<BaseAddress>+0x6a7eb3
McgInterop.McgHelpers.ThrowFailed(Int32 hr, RuntimeTypeHandle typeHnd) in f:\SVN\TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\Helpers.g.cs:line 8148
McgInterop.ComCallHelpers.ComCall__HRESULT($__ComObject __this, RuntimeTypeHandle __typeHnd, Int32 __targetIndex) in f:\SVN\ TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\SharedStubs.g.cs:line 9827
McgInterop.ForwardComSharedStubs.Proc_<System.__Canon>($__ComObject __this, Int32 __targetIndex) in f:\SVN\ TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\SharedStubs.g.cs:line 622
Windows.ApplicationModel.Core.IUnhandledError__Impl.StubClass.Propagate($__ComObject __this) in f:\SVN\ TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\ImplTypes.g.cs:line 105254
Windows.ApplicationModel.Core.UnhandledError.Propagate() in f:\SVN\ TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\SafeTypes.g.cs:line 44801
Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, $UnhandledErrorDetectedEventArgs e)
TestApp.ViewModel.LoginViewModel.OnLoginButtonClick() in F:\SVN\ TestApp\TestApp\ViewModel\LoginViewModel.cs:line 71
_$ILCT$.$ILT$ReflectionDynamicInvoke$.InvokeRetV(Object thisPtr, IntPtr methodToCall, ArgSetupState argSetupState, Boolean targetIsThisCall)
SharedLibrary!<BaseAddress>+0x68c058
SharedLibrary!<BaseAddress>+0x68bcb2

没有关于NotImplementedException的内容。在这种情况下,这个崩溃日志对我来说毫无用处,因为它并没有告诉我实际问题是什么。

我应该配置别的吗? 这是当前的配置:

    HockeyClient.Current.Configure("<MY_HOCKEY_ID>",
        new TelemetryConfiguration { EnableDiagnostics = true })
        .SetExceptionDescriptionLoader((Exception ex) => "Exception HResult:" + ex.StackTrace);

1 个答案:

答案 0 :(得分:0)

  

我应该配置别的吗?

请注意,您需要将符号(* .pdb)文件上传到HockeyApp,以便象征您的UWP应用程序崩溃。

由于目前您的应用似乎尚未在商店中发布,因此您可以构建侧载符号。

您可以为每个平台(x86,x64,ARM)执行以下步骤:

  1. 在Visual Studio中选择复选框使用.NET Native工具链编译
  2. 构建应用程序
  3. 从\ bin [Platform] \ Release \ ilc \ folder
  4. 复制* .pdb文件

    然后你可以将它们上传到Hockey app。

    有关详情,请参阅 How to upload symbols for UWP application