Closed zekageri closed 2 years ago
looks like a problem inside the ESP32 core WiFiClient::connected()
connect function.
WiFiClient::connected() at C:\Users\Dr.Random\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src/WiFiClient.cpp:564
what is you exact version of the framework-arduinoespressif32 ?
the current upstream repo has a empty line at line 564 https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiClient.cpp#L564
one think to check is that the tasks
have only a limited stack size (not related to free heap)
may the code hits this limit, simply try to change the 2k to 4k for a test?
Note: the setup / loop of the Arduino runs with a 8k stack.
Tried to increase the task's stack space. Unfortunatelly that did not work. I'm trying with async version since i don't need client socket.
does the problem only happen with the websocket code running in its own task? or will it happen too with it the main loop.
can you reproduce this with example code or the lib?
I will try it as soon as possible. Thank you for your help
I'm using Ethernet with esp32
Here is the dump and the backtrace:
I'm using it within a task like this:
When a client is disconnecting for some reason it is detecting the disconect and tries to connect again after 3sec. When two or more clients are trying to connect ( sometimes even with one ) the esp spits this error and reboots.
I usually have 140kb free heap when that happens.
Sometimes i get an error like this: