Stack Overflow?

After a few months of perfect function on a project i am now getting this error in Serial. What does the error mean?

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

>>>stack>>>

ctx: cont
sp: 3ffffdc0 end: 3fffffc0 offset: 01a0
3fffff60:  00001610 00000000 00002aeb 00000000  
3fffff70:  00000001 00000002 feefeffe feefeffe  
3fffff80:  00000007 feefeffe feefeffe 3ffefb6c  
3fffff90:  3fffdad0 00000000 3ffefb2c 40205cf1  
3fffffa0:  3fffdad0 00000000 3ffefb2c 4020fa18  
3fffffb0:  feefeffe feefeffe 3ffe8554 40100321  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1392, room 16 
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld

Only you with the code can know why by using ESP Exception decoder

Thanks I will try that

Is your project built on a breadboard by any chance?

Pete.

No. I had circuit boards made

@PeteKnight why do you ask?

Its just that quite often when people say “my project has been working fine for weeks/months and now it’s suddenly stopped” it sometimes turns out to be a hardware issue. Breadboards are okay for lashing-up a project and proving the concept, but not great as long term platforms.

Pete.

Proof of concept breadboard is something to consider. But in my experience, this is the crash due to exception, possibly caused by

  1. Dangling / stray pointers
  2. Access (write) out-of-bound address of arrays / structs, buffer-overflow
  3. Hardware issue (bad memory, flash, etc)

Normally, 1. is time-consuming and will cause a lot of headache, as sometimes it’s extremely difficult to catch or never caught. It’s not easy to duplicate the problem. In rare cases, the issue is (hopefully not) out of your control, such as in libraries, compiler, etc.

So the code has been working perfect for a long time can’t guarantee anything. Some good examples are Windows BSOD.
The Exception Decoder can help eliminate / locate the culprit by using trial-and-error debugging steps, etc.
Good luck and experience :wink: ,

PS:
Some links to help your research


http://clanguageconcepts.blogspot.com/2012/10/stray-pointer.html

2 Likes

Is there a maximum amount of devices one can have per project? I ask this as this has been the only change, I have added another device

I have tried 4 different complicated devices (with 8 tabs) in 1 project without any issue so far, all have been working reliably for a long time.
It’s possible @PeteKnight knows the max number.
I still don’t think it has anything to do with your crash (if your code is OK). The worst thing, I guess, it can do is crashing your APP / server.

Pete.

Struggling to put that tool into my arduino ide. My sketch folder is kept on my dropbox. The actual arduino programme not quite sure. Tried several locations so far but no success yet.

also, you can check this: