Inkplate WiFi example causes CORRUPT HEAP bootloop

Customer:

The serial monitor shows no readable output. I’ve attached a screenshot showing a bootloop of around 6 seconds. I’m using the Inkplate_WiFi_HTTP_Request code example from your GitHub repository.

Attachment omitted in migration: Screenshot_2022-05-28_21-55-07.png

Originally submitted via the contact form on soldered.com on 20 May 2022. Migrated to the forum for community visibility.

Soldered Support:

Change the baud rate for the serial monitor to 115200 bauds to get readable outputs.

Customer:

After changing to 115200 baud, here’s the output:

22:10:01.831 -> ets Jul 29 2019 12:21:46
22:10:01.831 ->
22:10:01.831 -> rst:0x1 (POWERON_RESET),boot:0x12 ( [esp32-hal-psram.c:47] psramInit(): PSRAM enabled
22:10:08.264 -> CORRUPT HEAP: multi_heap.c:432 detected at 0x3ffd1b40
22:10:08.264 -> abort() was called at PC 0x4008f5eb on core 1
22:10:08.298 ->
22:10:08.298 -> ELF file SHA256:
22:10:08.298 ->
22:10:08.298 -> Backtrace: 0x4008b290:0x3ffcd7d0 0x4008b50d:0x3ffcd7f0 0x4008f5eb:0x3ffcd810 0x4008fbb0:0x3ffcd830 :0x3ffcd850 0x400875a6:0x3ffcd870 :0x3ffcd890 0x4000beaf:0x3ffcd8b0 0x4008c56a:0x3ffcd8d0 0x400dc9d8:0x3ffcd8f0 0x400d4247:0x3ffcd920 0x400d47b0:0x3ffcd950 0x400d1e92:0x3ffcda50 0x400d6ebe:0x3ffcda70 0x4008bdd6:0x3ffcda90
22:10:08.373 ->
22:10:08.373 -> Rebooting...
22:10:08.373 -> ets Jul 29 2019 12:21:46
22:10:08.373 ->
22:10:08.373 -> rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
22:10:08.373 -> configsip: 0, SPIWP:0xee
22:10:08.373 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
22:10:08.373 -> mode:DIO, clock div:2
22:10:08.373 -> load:0x3fff0018,len:4
22:10:08.373 -> load:0x3fff001c,len:1100
22:10:08.373 -> load: ,len:10900
22:10:08.373 -> load: ,len:6360
22:10:08.373 -> entry 0x400806b4
22:10:09.491 -> [esp32-hal-psram.c:47] psramInit(): PSRAM enabled
22:10:15.029 -> CORRUPT HEAP: multi_heap.c:432 detected at 0x3ffd1b40
22:10:15.029 -> abort() was called at PC 0x4008f5eb on core 1
22:10:15.029 ->
22:10:15.029 -> ELF file SHA256:
22:10:15.029 ->
22:10:15.029 -> Backtrace: 0x4008b290:0x3ffcd7d0 0x4008b50d:0x3ffcd7f0 0x4008f5eb:0x3ffcd810 0x4008fbb0:0x3ffcd830 :0x3ffcd850 0x400875a6:0x3ffcd870 :0x3ffcd890 0x4000beaf:0x3ffcd8b0 0x4008c56a:0x3ffcd8d0 0x400dc9d8:0x3ffcd8f0 0x400d4247:0x3ffcd920 0x400d47b0:0x3ffcd950 0x400d1e92:0x3ffcda50 0x400d6ebe:0x3ffcda70 0x4008bdd6:0x3ffcda90
22:10:15.062 ->
22:10:15.062 -> Rebooting...
22:10:15.062 -> ets Jul 29 2019 12:21:46
22:10:15.062 ->
22:10:15.062 -> rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
22:10:15.062 -> configsip: 0, SPIWP:0xee
22:10:15.062 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
22:10:15.062 -> mode:DIO, clock div:2
22:10:15.062 -> load:0x3fff0018,len:4
22:10:15.062 -> load:0x3fff001c,len:1100
22:10:15.095 -> load: ,len:10900
22:10:15.095 -> load: ,len:6360
22:10:15.095 -> entry 0x400806b4
22:10:16.222 -> [esp32-hal-psram.c:47] psramInit(): PSRAM enabled
22:10:21.757 -> CORRUPT HEAP: multi_heap.c:432 detected at 0x3ffd1b40
22:10:21.757 -> abort() was called at PC 0x4008f5eb on core 1
22:10:21.757 ->
22:10:21.757 -> ELF file SHA256:
22:10:21.757 ->
22:10:21.757 -> Backtrace: 0x4008b290:0x3ffcd7d0 0x4008b50d:0x3ffcd7f0 0x4008f5eb:0x3ffcd810 0x4008fbb0:0x3ffcd830 :0x3ffcd850 0x400875a6:0x3ffcd870 :0x3ffcd890 0x4000beaf:0x3ffcd8b0 0x4008c56a:0x3ffcd8d0 0x400dc9d8:0x3ffcd8f0 0x400d4247:0x3ffcd920 0x400d47b0:0x3ffcd950 0x400d1e92:0x3ffcda50 0x400d6ebe:0x3ffcda70 0x4008bdd6:0x3ffcda90
22:10:21.790 ->
22:10:21.790 -> Rebooting...
22:10:21.790 -> ets Jul 29 2019 12:21:46
22:10:21.790 ->
22:10:21.790 -> rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
22:10:21.790 -> configsip: 0, SPIWP:0xee
22:10:21.899 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
22:10:21.899 -> mode:DIO, clock div:2
22:10:21.899 -> load:0x3fff0018,len:4
22:10:21.899 -> load:0x3fff001c,len:1100
22:10:21.899 -> load: ,len:10900
22:10:21.899 -> load: ,len:6360
22:10:21.899 -> entry 0x400806b4
22:10:22.951 -> [esp32-hal-psram.c:47] psramInit(): PSRAM enabled
22:10:28.488 -> CORRUPT HEAP: multi_heap.c:432 detected at 0x3ffd1b40
22:10:28.488 -> abort() was called at PC 0x4008f5eb on core 1
22:10:28.488 ->
22:10:28.488 -> ELF file SHA256:
22:10:28.523 ->
22:10:28.523 -> Backtrace: 0x4008b290:0x3ffcd7d0 0x4008b50d:0x3ffcd7f0 0x4008f5eb:0x3ffcd810 0x4008fbb0:0x3ffcd830 :0x3ffcd850 0x400875a6:0x3ffcd870 :0x3ffcd890 0x4000beaf:0x3ffcd8b0 0x4008c56a:0x3ffcd8d0 0x400dc9d8:0x3ffcd8f0 0x400d4247:0x3ffcd920 0x400d47b0:0x3ffcd950 0x400d1e92:0x3ffcda50 0x400d6ebe:0x3ffcda70 0x4008bdd6:0x3ffcda90
22:10:28.523 ->
22:10:28.523 -> Rebooting...
22:10:28.523 -> ets Jul 29 2019 12:21:46

The “CORRUPT HEAP: multi_heap.c:432 detected at 0x3ffd1b40” line appears to be causing the issue.

Soldered Support:

This issue is documented at Version 5.7.0 has breaking changes from 5.5.1 · Issue #145 · SolderedElectronics/Inkplate-Arduino-library · GitHub. Download the latest version of the Inkplate library and try the WiFi examples.