esp32 webserver reset..

k0rkunc
Posts: 7
Joined: Sun Mar 21, 2021 9:36 am

esp32 webserver reset..

Postby k0rkunc » Sat Apr 24, 2021 7:38 am

Hello, I'm doing a web server, but when I refresh the page on the web server I created, esp32 resets how do I fix it

#0 0x4000c3f0:0x3ffd2af0 in ?? ??:0
#1 0x400da49e:0x3ffd2b10 in String::move(String&) at C:\Users\OnurNP\.platformio\packages\framework-arduinoespressif32\cores\esp32/WString.cpp:857
#2 0x400da5ba:0x3ffd2b30 in String::operator=(String&&) at C:\Users\OnurNP\.platformio\packages\framework-arduinoespressif32\cores\esp32/WString.cpp:857
#3 0x400d68cd:0x3ffd2b50 in AsyncBasicResponse::_respond(AsyncWebServerRequest*) at lib\ESPAsyncWebServer\src/WebResponses.cpp:699
#4 0x400d4f66:0x3ffd2bc0 in AsyncWebServerRequest::send(AsyncWebServerResponse*) at lib\ESPAsyncWebServer\src/WebRequest.cpp:797
#5 0x400d4ec9:0x3ffd2c00 in AsyncWebServerRequest::send(int, String const&, String const&) at lib\ESPAsyncWebServer\src/WebRequest.cpp:797
#6 0x400d13b9:0x3ffd2c20 in handleRoot(AsyncWebServerRequest*) at src/main.cpp:98 (discriminator 2) #7 0x40157657:0x3ffd2c60 in std::_Function_handler<void (AsyncWebServerRequest*), void (*)(AsyncWebServerRequest*)>::_M_invoke(std::_Any_data const&,
AsyncWebServerRequest*&&) at c:\users\onurnp\.platformio\packages\toolchain-xtensa32@2.50200.97\xtensa-esp32-elf\include\c++\5.2.0/functional:1871
#8 0x400d8121:0x3ffd2c80 in std::function<void (AsyncWebServerRequest*)>::operator()(AsyncWebServerRequest*) const at lib\ESPAsyncWebServer\src/StringArray.h:73
(inlined by) AsyncCallbackWebHandler::handleRequest(AsyncWebServerRequest*) at lib\ESPAsyncWebServer\src/WebHandlerImpl.h:132
#9 0x400d5bed:0x3ffd2cd0 in AsyncWebServerRequest::_parseLine() at lib\ESPAsyncWebServer\src/WebRequest.cpp:797
#10 0x400d5cb1:0x3ffd2d10 in AsyncWebServerRequest::_onData(void*, unsigned int) at lib\ESPAsyncWebServer\src/WebRequest.cpp:797
#11 0x400d5f01:0x3ffd2d60 in std::_Function_handler<void (void*, AsyncClient*, void*, unsigned int), AsyncWebServerRequest::AsyncWebServerRequest(AsyncWebServer*, AsyncClient*)::{lambda(void*, AsyncClient*, void*, unsigned int)#8}>::_M_invoke(std::_Any_data const&, void*&&, AsyncClient*&&, std::_Any_data const&, unsigned int&&) at lib\ESPAsyncWebServer\src/WebRequest.cpp:797
(inlined by) _M_invoke at c:\users\onurnp\.platformio\packages\toolchain-xtensa32@2.50200.97\xtensa-esp32-elf\include\c++\5.2.0/functional:1871
#12 0x40150b6d:0x3ffd2d80 in std::function<void (void*, AsyncClient*, void*, unsigned int)>::operator()(void*, AsyncClient*, void*, unsigned int) const at lib\AsyncTCP-master\src/AsyncTCP.cpp:1039
(inlined by) AsyncClient::_recv(tcp_pcb*, pbuf*, signed char) at lib\AsyncTCP-master\src/AsyncTCP.cpp:934
#13 0x40150be9:0x3ffd2dc0 in AsyncClient::_s_recv(void*, tcp_pcb*, pbuf*, signed char) at lib\AsyncTCP-master\src/AsyncTCP.cpp:1039
#14 0x4015129e:0x3ffd2de0 in _async_service_task(void*) at lib\AsyncTCP-master\src/AsyncTCP.cpp:1039 (inlined by) _async_service_task at lib\AsyncTCP-master\src/AsyncTCP.cpp:197
#15 0x4008a286:0x3ffd2e10 in vPortTaskWrapper at
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

shumifan16
Posts: 3
Joined: Sat Apr 24, 2021 12:29 pm

Re: esp32 webserver reset..

Postby shumifan16 » Sat Apr 24, 2021 9:58 pm

I can't identify your pro em, but I have had problems with 2 things: web page being too big causing transmission problems, especially on esp32s2 and the other is uninitialised strings causing random initialisation errors. Typically, in my case, it has been a program bug. I would suggest that your refresh request is not processed as input.

Who is online

Users browsing this forum: No registered users and 283 guests