khoih-prog / ESPAsync_WiFiManager

This is an ESP32 (including ESP32-S2 and ESP32-C3) / ESP8266 WiFi Connection Manager, using ESPAsyncWebServer, with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- . Using AsyncDNSServer instead of DNSServer now.
MIT License
290 stars 73 forks source link

webServer.addHandler(&events) crashes #99

Closed LiveRock closed 2 years ago

LiveRock commented 2 years ago

I have a different issue now. When I call

webServer.addHandler(&events);

I get the following errors and the board reboot.

assertion "heap != NULL && "free() target pointer is outside heap areas"" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c", line 267, function: heap_caps_free
abort() was called at PC 0x401660eb on core 1

ELF file SHA256: 0000000000000000

Backtrace: 0x4008f408:0x3ffb37d0 0x4008f681:0x3ffb37f0 0x401660eb:0x3ffb3810 0x40082a4f:0x3ffb3840 0x40089f1d:0x3ffb3860 0x4000bec7:0x3ffb3880 0x401c6ffd:0x3ffb38a0 0x4012fdb9:0x3ffb38c0 0x401efdf7:0x3ffb38e0 0x4013571f:0x3ffb3900 0x40135a3a:0x3ffb3920 0x40135ad6:0x3ffb3960 0x400dd325:0x3ffb3980 0x400ddf1d:0x3ffb3c60 0x400de7b9:0x3ffb3cd0 0x4014ab86:0x3ffb3fb0 0x40090686:0x3ffb3fd0

Rebooting...

This is after WIFI is connected and I try to create a webserver to serve JSON data

_Originally posted by @LiveRock in https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/97#issuecomment-1200979855_