Skip to content

Crash after ESP.getFreeHeap() #2995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vlast3k opened this issue Feb 25, 2017 · 2 comments
Closed

Crash after ESP.getFreeHeap() #2995

vlast3k opened this issue Feb 25, 2017 · 2 comments

Comments

@vlast3k
Copy link

vlast3k commented Feb 25, 2017

Basic Infos

Hardware

Core Version: Current Master

Description

I am currently debugging a problem where in some case calling ESP.getFreeHeap(), results in crash and restart - perhaps some watchdog reset. It happens almost always at a certain point of my code, and right before it works and says there are 30000 free bytes. Then i do some stuff, invoke the HTTP Client, and then call again ESP.getFreeHeap() and then it is stuck and the sketch restarts.

It is part of a big program, so i cannot easily post it here.

I just wanted to hear if somebody had already seen such problems - if not - i will share more info once i discover it

@vlast3k
Copy link
Author

vlast3k commented Feb 25, 2017

i finally managed to get an exception, seems like it is dumped only occasionally
this is what the exception says

Exception (3):
epc1=0x4022e14f epc2=0x00000000 epc3=0x00000000 excvaddr=0x40014989 depc=0x00000000

ctx: cont 
sp: 3fff18b0 end: 3fff1c40 offset: 01a0

>>>stack>>>
3fff1a50:  000000c8 3fff017c 3fff1ab0 30303288  
3fff1a60:  0000414a 000000df 3ffe972d 4021a64c  
3fff1a70:  00000009 00000001 3fff0c20 3fff1b40  
3fff1a80:  00000001 3ffe8914 3fff0b50 4022e1b0  
3fff1a90:  00000001 3ffe8914 00000000 40219664  
3fff1aa0:  3ffe972c 3ffe8914 3fff32e4 4023565d  
3fff1ab0:  402010bc 000000c8 3fff0b50 402014fa  
3fff1ac0:  00000001 000000c8 3fff0b50 4021c656  
3fff1ad0:  00000001 3fff017c 00000001 4021e751  
3fff1ae0:  3fff430c 000000af 000000a0 3fff0c20  
3fff1af0:  402039fa 00000064 00000064 3fff06fc  
3fff1b00:  00000001 00000000 3fff0200 40221cb5  
3fff1b10:  00005a83 3fff1b40 40203188 3fff0c20  
3fff1b20:  402039fa 00000064 00000064 3ffe9860  
3fff1b30:  3fff0068 3fff0b50 3fff0200 40221fa9  
3fff1b40:  3ffe8948 00000005 3fff4164 3fff42fc  
3fff1b50:  3fff42fc 00000004 3fff1b01 402024b7  
3fff1b60:  3fff40b5 00000000 00000335 4010020c  
3fff1b70:  0000002d 3fff3ce4 3fff1ba0 3fff0838  
3fff1b80:  0000002d 3fff3ce4 3fff40b5 40221fde  
3fff1b90:  3fff0838 3fff40a4 3fff40b5 4021bd39  
3fff1ba0:  00000000 00000000 00000000 3fff40cc  
3fff1bb0:  0000000f 00000007 00000000 4021c267  
3fff1bc0:  3fff0838 00000000 3fff0a00 3fff0a00  
3fff1bd0:  3fff0838 3fff40a4 3fff0938 4021c045  
3fff1be0:  00000001 3fff0c0c 00000000 40201562  
3fff1bf0:  3fffdad0 3fff0c0c 3fff0838 3fff0c0c  
3fff1c00:  3fffdad0 00000000 3fff0838 4021c09c  
3fff1c10:  3fffdad0 00000000 3fff0838 4022b751  
3fff1c20:  3fffdad0 00000000 3fff0c04 402031d4  
3fff1c30:  feefeffe feefeffe 3fff0c20 402057d0  
<<<stack<<<

this is what the debugger shows
image

And this is the code:

image

@vlast3k
Copy link
Author

vlast3k commented Feb 25, 2017

seems to happen after i call
HTTPClient http;
http.begin("http://:@192.168.1.116:9001/api/variables/rssi11");

will look further into this, but once i send correct URL it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant