Skip to content
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

Crash when disconnecting WifiClient after receiving data #4095

Closed
schlaegerz opened this issue Jan 5, 2018 · 1 comment
Closed

Crash when disconnecting WifiClient after receiving data #4095

schlaegerz opened this issue Jan 5, 2018 · 1 comment

Comments

@schlaegerz
Copy link

schlaegerz commented Jan 5, 2018

Please fill the info fields, it helps to get you faster support ;)

if you have a stack dump decode it:
xception 28: LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads
Decoding 19 results
0x40206552: ClientContext::wait_until_sent() at C:\Users\Zach\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 346
: (inlined by) WiFiClient::flush() at C:\Users\Zach\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 267
0x4020656c: ClientContext::wait_until_sent() at C:\Users\Zach\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 346
: (inlined by) WiFiClient::flush() at C:\Users\Zach\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 267
0x4020b939: WebSocketsClient::clientDisconnect(WSclient_t*) at C:\Users\Zach\Documents\Arduino\libraries\arduinoWebSockets-2.0.9\src/WebSocketsClient.cpp line 447
0x4020b2b1: WebSockets::clientDisconnect(WSclient_t*, unsigned short, char*, unsigned int) at C:\Users\Zach\Documents\Arduino\libraries\arduinoWebSockets-2.0.9\src/WebSockets.cpp line 69
0x40215598: esp_yield at C:\Users\Zach\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/core_esp8266_main.cpp line 87
0x40217a7c: WebSocketsClient::clientIsConnected(WSclient_t*) at C:\Users\Zach\Documents\Arduino\libraries\arduinoWebSockets-2.0.9\src/WebSocketsClient.cpp line 402
0x402155b9: esp_schedule at C:\Users\Zach\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/core_esp8266_main.cpp line 91
0x4020bcb0: WebSocketsClient::disconnect() at C:\Users\Zach\Documents\Arduino\libraries\arduinoWebSockets-2.0.9\src/WebSocketsClient.cpp line 447

for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

Hardware: NodeMCU 1.0 ESP-12E
Core Version: 2.4.0

Description

Recently updated to 2.4 and I'm getting this crash very consistently whenever I try to close the WifiClient connection right after getting some specific data.

Settings in IDE

Module: NodeMCU 1.0 ESP-12E
Flash Size: 4MB
CPU Frequency: 160Mhz
Upload Using: Serial
Reset Method: ?ck / nodemcu?

Seems to happen when I disconnect from WiFi before hand. The same code did not have any issues on 2.4.0rc1



WiFi.disconnect();
client->ssl->flush();
 client->ssl->stop();
  
@earlephilhower
Copy link
Collaborator

Closing as no MCVE and very little info.

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

2 participants