B4R Question how to undertand stack errors

peacemaker

Expert
Licensed User
Longtime User
Hi, All

My ESP8266 app was working OK. And after some small change and reflashing - it started to get such errors:
Sending load commands
trying to connect to: domain.ru port: 80 ssl: 0
connected: domain.ru
*******************************
JobName: API_LOAD_command, success = 1
RAM = 26832
command: sendScannerConfig = 1
Sending config

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

Exception (3):
epc1=0x40100b54 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4002a2c1 depc=0x00000000
>>>stack>>>
ctx: sys
sp: 3ffffcf0 end: 3fffffb0 offset: 0190
3ffffe80: 4000050c 3fffc200 00000022 4021ef10
3ffffe90: 40000f68 00000030 4024e997 00000001
3ffffea0: ffffffff 00000000 3ffe9691 40262204
3ffffeb0: 40262204 4021f89c 00000020 40100d3c
3ffffec0: 00000000 00000000 4bc6a7f0 00000000
3ffffed0: 00000098 00000013 00001361 402287f4
3ffffee0: 00000000 00000000 4bc6a7f0 4021e795
3ffffef0: 0016135e 00001317 00000020 4021e7d4
3fffff00: 00000000 3ffe9354 00000036 4021f841
3fffff10: 4021f89c 00001317 3fff22bc 4021f8cf
3fffff20: 40262204 00174686 00000001 4021e7f9

How to understand such trace exception text ?

I tried to increase #StackBufferSize and JobDone's buffer max size, and HttpJob's requestCache and responseCache... but this error is got even more frequent
 

peacemaker

Expert
Licensed User
Longtime User
I think such errors are due to the complexity of all the project, lots of modules and subs - no use to publish whole the project.
Question is how to use these exception logs to understand what\where the reason is
 
Upvote 0

thetahsk

Active Member
Licensed User
Longtime User
I think such errors are due to the complexity of all the project, lots of modules and subs - no use to publish whole the project.
Question is how to use these exception logs to understand what\where the reason is
If you want to decode a esp32 stack trace you need the whole project.
For decoding you can use a plug in for the Arduino IDE, e.g
 
Upvote 0
Top