简体   繁体   English

使用 .NET Native 构建的 UWP 应用程序的符号异常

[英]Symbolicate exception of UWP app built with .NET Native

In the logs of a sideloaded Windows Store App, I find the following exception:在侧载 Windows Store App 的日志中,我发现以下异常:

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

To symbolicate the trace, I tried to utilize the WindowsDevCenterStacktraceSymbolicater and the StackParser of the corefx-tools along with the PDB of the app, which will change the trace to:为了对跟踪进行符号化,我尝试使用 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

Is there a way to resolve the COM+_Entry_Point references in this scenario?有没有办法解决这种情况下的COM+_Entry_Point引用? How?如何?

Instead of the PDB placed in the output folder of your app, use the PDB file placed in the ilc subdirectory (which is way larger).不要将 PDB 放在应用程序的 output 文件夹中,而是使用放在ilc子目录(更大)中的 PDB 文件。 With this PDB, the stack trace will properly be symbolicated using one of the tools mentioned above.使用此 PDB,堆栈跟踪将使用上述工具之一正确符号化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 uwp app(.net native)和未处理的异常 - uwp app (.net native) and unhandled exception UWP .NET本机问题 - UWP .NET Native Issue 跨度 <T> 和朋友不在.NET Native UWP应用程序中工作 - Span<T> and friends not working in .NET Native UWP app 使用 .net 本机工具链编译后 Uwp 应用程序立即崩溃 - Uwp app crash immediately after compiled with .net native toolchain 如何在发布模式+“.Net Native工具链”中调试UWP应用程序 - How to debug an UWP app in Release mode + “.Net Native tool chain” Xamarin.Forms UWP项目使用.Net Native编译时会引发异常 - Xamarin.Forms UWP project throws exception when compiled with .Net Native UWP / .NET Native和iOS上的Protobuf-net - Protobuf-net on UWP/.NET Native and iOS 仅当在VSTS托管代理上构建时,具有发行版配置和.net本机的UWP App才会崩溃 - UWP App with release configuration and .net native crashes only when build on VSTS hosted agent 如何解决UWP App的.net本机编译错误ILT0042? - How do I solve .net native compilation error ILT0042 for UWP App? 由于自定义样式,使用 .NET 本机工具链编译的 UWP App 在启动时崩溃 - UWP App compiled with .NET native tool chain crashes on startup due to custom style
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM