Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I follow .Net Native cryptic stack-trace?

Since UWP requires .Net Native (which is very welcome), I'm getting cryptic stack-traces now. This is the exception reported by people using my app:

System.InvalidCastException: InvalidCast_Com 
at SharedLibrary!<BaseAddress>+0x429e9d 
at SharedLibrary!<BaseAddress>+0x47d878 
at SharedLibrary!<BaseAddress>+0x48455a 
at SharedLibrary!<BaseAddress>+0x499043 
at SharedLibrary!<BaseAddress>+0x498fb7 
at SharedLibrary!<BaseAddress>+0x5ea468 
at SharedLibrary!<BaseAddress>+0x5ea418 
// this goes on...

I understand there's an invalid cast somewhere... but I need to know what SharedLibrary!<BaseAddress>+0x429e9d is pointing to.

Is there a way to find where these links point to?

like image 835
Laith Avatar asked Feb 04 '16 23:02

Laith


People also ask

How do I view stack trace in Visual Studio?

Visually trace the call stack In Visual Studio Enterprise (only), you can view code maps for the call stack while debugging. In the Call Stack window, open the shortcut menu. Choose Show Call Stack on Code Map (Ctrl + Shift + `).

How do you analyze stack trace?

Analyze external stack traces From the main menu, select Code | Analyze Stack Trace or Thread Dump. In the Analyze Stack Trace dialog that opens, paste the external stack trace or thread dump into the Put a stacktrace here: text area. Click OK. The stack trace is displayed in the Run tool window.

How do I turn on stack trace?

To get a stack trace when a specific message is issued by the server or storage agent, enable the message for stack trace. Issue the MSGSTACKTRACE ENABLE < messageNumber > command to enable one or more messages for stack trace. Remember: < messageNumber > might be a space-delimited list of message numbers.


1 Answers

There is a tool in GitHub that can decipher .Net Native stack traces into human readable format.

https://github.com/dotnet/corefx-tools/tree/master/src/StackParser

like image 107
Andrew Au Avatar answered Oct 15 '22 22:10

Andrew Au