【问题标题】:Symbolicate exception of UWP app built with .NET Native使用 .NET Native 构建的 UWP 应用的象征性异常
【发布时间】:2020-02-09 00:39:16
【问题描述】:

在旁加载的 Windows 应用商店应用程序的日志中,我发现以下异常:

Arg_ArgumentException --> System.ArgumentException: Arg_ArgumentException at SharedLibrary!<BaseAddress>+0x3a13ad at my-app!<BaseAddress>+0xf29d82h at my-app!<BaseAddress>+0xf29cdc at my-app!<BaseAddress>+0x10e0844 at my-app!<BaseAddress>+0x14fbe60 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at SharedLibrary!<BaseAddress>+0x502089 at System.Threading.ContextCallback.Invoke(Object state) at SharedLibrary!<BaseAddress>+0x3e683c

为了表示跟踪,我尝试使用 corefx-tools 的 WindowsDevCenterStacktraceSymbolicaterStackParser 以及应用程序的 PDB,这会将跟踪更改为:

Arg_ArgumentException --> System.ArgumentException: Arg_ArgumentException at SharedLibrary!COM+_Entry_Point+0x3a13ad at my-app!COM+_Entry_Point+0xf29d82 at my-app!COM+_Entry_Point+0xf29cdc at my-app!COM+_Entry_Point+0x10e0844 at my-app!COM+_Entry_Point+0x14fbe60 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at SharedLibrary!COM+_Entry_Point+0x502089 at System.Threading.ContextCallback.Invoke(Object state) at SharedLibrary!COM+_Entry_Point+0x3e683c

在这种情况下,有没有办法解决 COM+_Entry_Point 引用?怎么样?

【问题讨论】:

    标签: c# uwp symbolicatecrash .net-native sideloading


    【解决方案1】:

    不要使用放置在应用程序输出文件夹中的 PDB,而是使用放置在 ilc 子目录(更大)中的 PDB 文件。使用此 PDB,堆栈跟踪将使用上述工具之一正确符号化。

    【讨论】:

      猜你喜欢
      • 2016-07-10
      • 2019-01-30
      • 2018-02-19
      • 2016-05-07
      • 2017-09-02
      • 2018-03-22
      • 2019-01-17
      • 2016-11-05
      • 1970-01-01
      相关资源
      最近更新 更多