-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266 Restart Sometimes #7855
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
Comments
You need to paste in the entire crash dump to be useful. Everything between the "----"s including the "...EPC1 xxxxx..." line is needed. Without that, you just have a list of prior calls and not exactly where it crashed. Also, without an MCVE, there's really not much that can be done even with the full PC decode. |
I just put what you requested. Thank you and I'm sorry I did it wrong. |
Actually, we can't use the raw bytes you just added. CAn you paste that into the exception decoder and update the output? It will have a "PC: xxxx " line which will be the exact spot where a problem happened and a text description of the exception. One more try, please! |
|
|
Try this:
|
can I use the Wi-Fi Client that is instantiated for use in mqtt instead of instantiating a new one in the method? |
No. A WiFiClient matches with a connection. One would close the other. |
@d-a-v |
@d-a-v |
Functionally speaking, that's hard to say. |
Hello guys, just to inform you that the requested change worked. Thank you very much!!!! |
Basic Infos
Platform
Settings in IDE
Problem Description
My project has been running for a long time, it has MQTT, WEBServer and Wifi Client. I've been investigating the reason for restarting at random for a long time. Works without restarting for weeks and restarts. I believe it is something related to a momentary internet or wifi failure. I made all possible code dealings but I did not identify the problem.
The code hasn't changed, I just update the CORE, unfortunately because it's something I can't reproduce, I can't specify exactly which CORE the problem occurs in.
In the investigation I saw that it generates the problem in the line below:
#ifdef GXX_EXPERIMENTAL_CXX0X
void String :: move (String & rhs) {
if (buffer ()) {
if (capacity ()> = rhs.len ()) {
memmove_P (wbuffer (), rhs.buffer (), rhs.length () + 1);
setLen (rhs.len ());
rhs.invalidate ();
return;
} else {
if (! isSSO ()) {
free (wbuffer ());
setBuffer (nullptr);
}
}
}
if (rhs.isSSO ()) {
setSSO (true);
memmove_P (sso.buff, rhs.sso.buff, sizeof (sso.buff));
} else {
setSSO (false);
setBuffer (rhs.wbuffer ());
}
setCapacity (rhs.capacity ());
setLen (rhs.len ());
rhs.setSSO (false);
rhs.setCapacity (0);
rhs.setLen (0);
rhs.setBuffer (nullptr);
}
#endif
Debug Messages
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (9):
epc1=0x4023a974 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000526 depc=0x00000000
ctx: cont
sp: 3ffffcd0 end: 3fffffc0 offset: 0190
3ffffe60: 3fff3704 3fff3704 3fffff50 40236644
3ffffe70: 3fff0696 00000000 3ffffea0 4022c388
3ffffe80: 3fff3704 00000000 3ffffea0 4022d264
3ffffe90: 3fff0696 00000000 000001f4 40211ad8
3ffffea0: 00000000 00000000 3fff36a4 3fff36cc
3ffffeb0: 0017001f 00000001 3f010050 40001388
3ffffec0: 6765722f 65747369 8a002f72 70747468
3ffffed0: 00000000 84000000 3fff3bcc 0000016f
3ffffee0: 00000004 3fff2464 0011001f 00000004
3ffffef0: 00000000 4bc6a7f0 8074bc6a 00000000
3fffff00: 00000000 000001f4 00000000 00000000
3fffff10: 00000000 f0f4000a 40100500 000cc5b7
3fffff20: 80000000 00000000 3fff36f4 3fff3600
3fffff30: 0024002f 80000044 31313600 38333338
3fffff40: 80003230 00000000 0112ea94 402377da
3fffff50: 00000000 00000000 8012ea94 40206bd3
3fffff60: 00000000 3fff07a8 00000000 40211bdc
3fffff70: 00000000 3fff07a8 3fff07a8 40211cd5
3fffff80: 3fffdad0 00000000 3fff0588 3fff0bd8
3fffff90: 3fffdad0 00000000 3fff0b98 402281a5
3fffffa0: feefeffe feefeffe feefeffe 402378bc
3fffffb0: feefeffe feefeffe 3ffe96c8 4010118d
<<<stack<<<
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
The text was updated successfully, but these errors were encountered: