WARDuino
WARDuino copied to clipboard
Memory leaks
When executing the benchmarks from the feat/iot-bench
branch we can clearly see that unload_module
een memory leak bevat. De free heap after each Arduino loop decreases.
Total heap:
275672
Free heap:
248680
Total PSRAM:
4192139
Free PSRAM:
4192139
LOADED
START
Free heap:
176608
sensor: iterations=50 runtime: 10734989us
END
LOADED
START
Free heap:
115428
sensor: iterations=50 runtime: 10885942us
END
LOADED
START
Free heap:
59708
sensor: iterations=50 runtime: 10887551us
END
LOADED
START
Free heap:
55340
sensor: iterations=50 runtime: 10882033us
END
LOADED
START
Free heap:
56104
sensor: iterations=50 runtime: 10885068us
END
assert failed: insert_free_block heap_tlsf.c:239 (current && "free list cannot have a null entry")
Backtrace:0x40083e89:0x3ffb25b00x4008ee05:0x3ffb25d0 0x400941cd:0x3ffb25f0 0x40093552:0x3ffb2720 0x40093bed:0x3ffb2740 0x40093e1a:0x3ffb2760 0x400842ed:0x3ffb2780 0x400941fd:0x3ffb27a0 0x400e6ff2:0x3ffb27c0 0x400d26a9:0x3ffb27e0 0x400f4959:0x3ffb2820
ELF file SHA256: 0000000000000000
Rebooting...
ets Jul 29 2019 12:21:46