Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

CORRUPT HEAP during ota-shadow

edited January 29 in Mongoose OS

Hello,

I am trying to test OTA through device shadow, with unmodified demo-js sample on ESP32.

With connected device, I added the following desired property:
"state": {
"desired": {
"on": true,
"ota": {
"url": "https://github.com/mongoose-os-apps/demo-js/releases/download/2.11.0/demo-js-esp32.zip"
}
}

OTA starts, but I am getting a CORRUPT HEAP error...
Any idea what's happening or I'm doing wrong ?

[Jan 28 14:28:46.808] state_cb             Starting OTA with URL [https://github.com/mongoose-os-apps/demo-js/releases/download/2.11.0/demo-js-esp32.zip]
[Jan 28 14:28:46.808] mgos_ota_http_start_ Update URL: https://github.com/mongoose-os-apps/demo-js/releases/download/2.11.0/demo-js-esp32.zip
[Jan 28 14:28:46.808] CORRUPT HEAP: multi_heap.c:474 detected at 0x3ffbab34
[Jan 28 14:28:46.808] abort() was called at PC 0x40093217 on core 0
[Jan 28 14:28:46.808] 
[Jan 28 14:28:46.808] Backtrace: 0x40093a77 0x40093bf9 0x40093217 0x40093639 0x40081839 0x40081e31 0x4000bec7 0x401da3a2 0x400e2795 0x401da45f 0x400f9816 0x400f9985 0x400facc6 0x400fafe4 0x401d3842 0x401d3d46 0x401d401f 0x401d3842 0x401d4b2a 0x401d7905 0x401d7937 0x401e9b8d 0x401cf9c9 0x400830a2 0x40082fa6
[Jan 28 14:28:46.808] 
[Jan 28 14:28:46.808] --- BEGIN CORE DUMP ---
[Jan 28 14:28:46.808] mos: catching core dump
[Jan 28 14:28:49.563] .............
[Jan 28 14:29:26.077] ---- END CORE DUMP ----
[Jan 28 14:29:26.083] mos: wrote to /Users/laurentmeunier/Downloads/example-shadow-js/core-example-shadow-js-esp32-20190128-142926.707805535 (454374 bytes)

Thank you for your help !
Best,
Laurent.

Sign In or Register to comment.