Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
How to analyze a crash dump from a log file (Read 402 times)
Martinus Maxiumus
Newbies
*
Offline



Posts: 6
How to analyze a crash dump from a log file
Jul 28th, 2022 at 4:24pm
 
Hello all,

Working with VisualMicro for some time, whereas i'm using a remote serial controller to monitor the com-port traffic. Now when i capture a crash as text output, how do i let VisualMicro decode de stack trace?

Probably googling the wrong keywords or it is just nu possible...

Code:
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (28):
epc1=0x4021cfe8 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3fff2820 end: 3fff2ba0 offset: 0190
3fff29b0:  3fff46b4 00000001 3fff2a30 00000010
3fff29c0:  00000000 00000000 3ffe882c 40100c53
3fff29d0:  00000000 00000001 3fff2a30 0000000f
3fff29e0:  00000002 3fff2a41 3fff4744 4021d111
3fff29f0:  3fff08e0 3fff2a4c 3fff2a30 4021ce90
3fff2a00:  00f40002 800f655b 3fff6b00 40100e32
3fff2a10:  00f42400 800f6a9f 3fff2c00 4021cefc
3fff2a20:  3fff0180 3fff16d0 3fff1434 4021cbc8
3fff2a30:  3fff4744 00000000 00000000 01020002
3fff2a40:  3fff0801 3fff16d0 00000000 40226034
3fff2a50:  00000000 00000001 00000001 4021cc98
3fff2a60:  3fff08e0 3fff16d0 00000001 402173ec
3fff2a70:  00000000 00000000 3fff2a90 4022c031
3fff2a80:  3fff08e0 00000000 00000000 40208ae4
3fff2a90:  00000000 0010001f 00000000 00000000
3fff2aa0:  00000001 3fff16d0 3fff08e0 40216c81
3fff2ab0:  00000000 3fff16d0 3fff08e0 40217142
3fff2ac0:  3fff08e0 00000000 00000000 40208ae4
3fff2ad0:  00000001 00000000 3fff2aac 3fff2a70
3fff2ae0:  0010001f 00000000 4bc6a7f0 00000000
3fff2af0:  00000001 3fff08e0 00000001 4020a6f2
3fff2b00:  3ffe8664 00000023 00001388 4021c3fe
3fff2b10:  40275516 3fff0864 3ffe8660 00000000
3fff2b20:  3fff08e0 3ffe8664 00000001 4020c6e9
3fff2b30:  3fff16d0 3ffe8664 3fff062c 40206c94
3fff2b40:  402367c8 00000000 00001388 3fff2be4
3fff2b50:  00000000 00000000 00000000 00000000
3fff2b60:  3fff16d0 3ffe8664 3fff0860 40206e8d
3fff2b70:  3fffdad0 00000000 3fff2bd0 3fff2be4
3fff2b80:  3fffdad0 00000000 3fff2bd0 40226154
3fff2b90:  feefeffe feefeffe 3ffe8828 401010ed
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

 

Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1457
Re: How to analyze a crash dump from a log file
Reply #1 - Jul 28th, 2022 at 4:46pm
 
Thanks for the report.

When you hit an exception, if you expand the serial monitor window, there should be an [!] button at the bottom, which when clicked will decode the stack trace:
https://www.visualmicro.com/page/ESP32ESP8266-Serial-Exception-Decoder.aspx
Back to top
 
 
IP Logged
 
Martinus Maxiumus
Newbies
*
Offline



Posts: 6
Re: How to analyze a crash dump from a log file
Reply #2 - Jul 28th, 2022 at 4:49pm
 
Hello Simon,

Thank you for your response. The crashdump is captured by a user through our app, connected to the USB. It shows then in a log file.

When working in the serial debugger all works fine, but i want to paste the crash details manually and then process it.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1457
Re: How to analyze a crash dump from a log file
Reply #3 - Jul 28th, 2022 at 4:53pm
 
Thanks for clarifying.

Did you build the project in Visual Micro and Upload it to the board initially, before capturing to a log file?
Back to top
 
 
IP Logged
 
Martinus Maxiumus
Newbies
*
Offline



Posts: 6
Re: How to analyze a crash dump from a log file
Reply #4 - Jul 28th, 2022 at 4:54pm
 
Yes, all users have the same code base and when we release a new binary the application is flashing the ESP8266 using OTA.

Hence the stack trace is always at the latest build (except one we found the issue and started fixing, then i understand that the stack trace is no longer valid)
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1457
Re: How to analyze a crash dump from a log file
Reply #5 - Jul 28th, 2022 at 4:59pm
 
Thanks for clarifying.

If you open the project in Visual Micro (and compile the same version with the correct board, configuration etc), then you should be able to:
1) Open the Serial Monitor for any port
2) Ensure Clear On Open is not enabled
3) Paste in the stack trace into the Serial Monitor Window
4) Click connect to disconnect the port
5) Click connect to reconnect the port - the [!] button should now appear, and will have access to the compiled files for address lookups etc..

Back to top
 
 
IP Logged
 
Martinus Maxiumus
Newbies
*
Offline



Posts: 6
Re: How to analyze a crash dump from a log file
Reply #6 - Jul 28th, 2022 at 5:00pm
 
Okay, that easy. Smiley Let me try...
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print