ESP32F crashes with Wifi Library + Websocket
Posted: Mon Apr 13, 2020 8:25 pm
Dear community,
I am fighting crashes on my IoT devices without being able to solve the problem.
The devices are connecting to Wifi and send and receive Websockets request that are Json-Encoded.
I use the following libraries:
-ArduinoWebsockets
-ArduinoJSON
Coding in Arduino IDE with ESP8266 tools installed (Version 2.6.3)
The debug logs (decoded with the Arduino plugin) give the below output:
I am not sure how to locate the error and how to read these stack results. Is it the last executed commands in backwards order?
Thank you very much for your help!
I am fighting crashes on my IoT devices without being able to solve the problem.
The devices are connecting to Wifi and send and receive Websockets request that are Json-Encoded.
I use the following libraries:
-ArduinoWebsockets
-ArduinoJSON
Coding in Arduino IDE with ESP8266 tools installed (Version 2.6.3)
The debug logs (decoded with the Arduino plugin) give the below output:
I am not sure how to locate the error and how to read these stack results. Is it the last executed commands in backwards order?
Thank you very much for your help!
- Exception 29: StoreProhibited: A store referenced a page mapped with an attribute that does not permit stores
- PC: 0x4000e1b2
- EXCVADDR: 0x00000000
- Decoding stack results
- 0x40222678: mem_malloc at core/mem.c line 210
- 0x40218a85: do_memp_malloc_pool at core/memp.c line 255
- 0x40218ac4: memp_malloc at core/memp.c line 356
- 0x4021a2d9: sys_timeout_abs at core/timeouts.c line 189
- 0x4021a4dc: sys_check_timeouts at core/timeouts.c line 390
- 0x4020cda7: loop_task(ETSEvent*) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 188
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x4020b744: Print::print(__FlashStringHelper const*) at esp8266\hardware\esp8266\2.6.3\cores\esp8266/Print.h line 63
- 0x4021838d: glue2esp_linkoutput at glue-esp/lwip-esp.c line 301
- 0x402110d0: WebSocketsClient::runCbEvent(WStype_t, unsigned char*, unsigned int) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\WebSockets\src/WebSocketsClient.h line 139
- 0x40209eb0: WebSocketsClient::messageReceived(WSclient_t*, WSopcode_t, unsigned char*, unsigned int, bool) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\WebSockets\src\WebSocketsClient.cpp line 374
- 0x40218616: new_linkoutput at glue-lwip/lwip-git.c line 260
- 0x40218a30: ethernet_output at netif/ethernet.c line 312
- 0x40202d07: ArduinoJson6141_0000010::JsonDeserializer , ArduinoJson6141_0000010::StringMover>::parseVariant(ArduinoJson6141_0000010::VariantData&) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\arduino_602693\src/ArduinoJson/Json/JsonDeserializer.hpp line 185
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x40202fb3: ArduinoJson6141_0000010::JsonDeserializer , ArduinoJson6141_0000010::StringMover>::parseObject(ArduinoJson6141_0000010::CollectionData&) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\arduino_602693\src/ArduinoJson/Json/JsonDeserializer.hpp line 162
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x4020de25: uart_write(uart_t*, char const*, size_t) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\uart.cpp line 509
- 0x401003bc: ets_intr_unlock() at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 146
- 0x4020b460: HardwareSerial::write(unsigned char const*, unsigned int) at esp8266\hardware\esp8266\2.6.3\cores\esp8266/HardwareSerial.h line 165
- 0x4020b751: Print::print(__FlashStringHelper const*) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\Print.cpp line 114
- 0x4020de25: uart_write(uart_t*, char const*, size_t) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\uart.cpp line 509
- 0x401004d8: millis() at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_wiring.cpp line 188
- 0x4020b454: HardwareSerial::write(unsigned char const*, unsigned int) at esp8266\hardware\esp8266\2.6.3\cores\esp8266/HardwareSerial.h line 164
- 0x4020b460: HardwareSerial::write(unsigned char const*, unsigned int) at esp8266\hardware\esp8266\2.6.3\cores\esp8266/HardwareSerial.h line 165
- 0x4020b454: HardwareSerial::write(unsigned char const*, unsigned int) at esp8266\hardware\esp8266\2.6.3\cores\esp8266/HardwareSerial.h line 164
- 0x4020af45: Print::write(char const*) at esp8266\hardware\esp8266\2.6.3\cores\esp8266/Print.h line 60
- 0x4020b7e0: Print::println() at esp8266\hardware\esp8266\2.6.3\cores\esp8266\Print.cpp line 186
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x401003bc: ets_intr_unlock() at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 146
- 0x40100334: ClocklessController14, 20, 50, 30, (EOrder)66, 0, false, 5>::showRGBInternal(PixelController(EOrder)66, 1, 4294967295u>) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\LS_FastLED-3.1.8/platforms/esp/8266/clockless_esp8266.h line 13
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x40201311: animate() at temp_compile_Arduino\sketch\TET_Animations.cpp line 30
- 0x402012cb: animate() at temp_compile_Arduino\sketch\TET_Animations.cpp line 13
- 0x402066a8: ClocklessController14, 20, 50, 30, (EOrder)66, 0, false, 5>::showPixels(PixelController(EOrder)66, 1, 4294967295u>&) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\LS_FastLED-3.1.8/platforms/esp/8266/clockless_esp8266.h line 41
- 0x402067c0: CPixelLEDController(EOrder)66, 1, 4294967295u>::show(CRGB const*, int, CRGB) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\LS_FastLED-3.1.8/controller.h line 398
- 0x4020b0aa: CFastLED::countFPS(int) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\LS_FastLED-3.1.8\FastLED.cpp line 215
- 0x4020b138: CFastLED::show(unsigned char) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\LS_FastLED-3.1.8\FastLED.cpp line 64
- 0x4020675c: CPixelLEDController(EOrder)66, 1, 4294967295u>::show(CRGB const*, int, CRGB) at X:\Nextcloud\Uncrypted\Programmation\Arduino\libraries\LS_FastLED-3.1.8/controller.h line 395
- 0x401004d8: millis() at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_wiring.cpp line 188
- 0x401004d8: millis() at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_wiring.cpp line 188
- 0x4020132e: animate() at temp_compile_Arduino\sketch\TET_Animations.cpp line 37
- 0x401003e0: ets_post(uint8, ETSSignal, ETSParam) at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 160
- 0x40100401: esp_schedule() at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 113
- 0x4020cf19: loop_wrapper() at esp8266\hardware\esp8266\2.6.3\cores\esp8266\core_esp8266_main.cpp line 182