WLED randomly restarts with following logs

I have compiled and installed debug bin file in nodemcu with d1_mini env. Following is the error log

--------------- CUT HERE FOR EXCEPTION DECODER ---------------
08:03:03.463 →
08:03:03.463 → Exception (29):
08:03:03.463 → epc1=0x4000df64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
08:03:03.463 →
08:03:03.463 → >>>stack>>>
08:03:03.463 →
08:03:03.463 → ctx: sys
08:03:03.463 → sp: 3fffec70 end: 3fffffb0 offset: 0150
08:03:03.463 → 3fffedc0: 40291d5f 3ffef8b0 00000002 40291cf4
08:03:03.463 → 3fffedd0: 00000002 40291c9b 00000002 40290d84
08:03:03.495 → 3fffede0: 40290dad 3fffee90 3ffef8b0 00000016
08:03:03.495 → 3fffedf0: 4028e810 3fffee90 3ffef758 3ffef0e4
08:03:03.495 → 3fffee00: 3ffec968 3fffee90 3fffee90 00000000
08:03:03.495 → 3fffee10: 6e657a76 0000325f 40240000 ffffff1a
08:03:03.495 → 3fffee20: 4029d827 00000017 00000018 42d60000
08:03:03.495 → 3fffee30: 4028ab69 4029a27e 00000001 3ffeff90
08:03:03.495 → 3fffee40: ffffffd2 3ffef26c 3ffec978 3ffef8b0
08:03:03.527 → 3fffee50: 3ffee7b0 00000032 00000000 4028f50b
08:03:03.527 → 3fffee60: 00000000 3fff4514 ffffffd2 00000000
08:03:03.527 → 3fffee70: 00000000 3ffef8b0 3ffeff90 abd6ab57
08:03:03.527 → 3fffee80: 4029b35a 00000000 00000022 00000000
08:03:03.527 → 3fffee90: 00000000 18110101 00640104 0000005e
08:03:03.527 → 3fffeea0: 3ffec98c 000000d4 3ffec9ba 3ffec980
08:03:03.527 → 3fffeeb0: 3ffec9a7 3ffec98c 3ffec994 3ffec9a1
08:03:03.558 → 3fffeec0: 00000000 00000000 3ffec9c0 3ffeca17
08:03:03.558 → 3fffeed0: 3ffec9d9 3ffec9f5 00000000 00000000
08:03:03.558 → 3fffeee0: 00000000 00000000 00000032 00000000
08:03:03.558 → 3fffeef0: 3fff47bc 4028ef7a 3ffee7b0 3fff4514
08:03:03.558 → 3fffef00: 00000000 3ffef8b0 3ffee7b0 3ffec968
08:03:03.558 → 3fffef10: 3ffec968 000000fc 00000000 00000032
08:03:03.558 → 3fffef20: 00000000 3ffec972 402a26b7 3ffee7b0
08:03:03.591 → 3fffef30: 3ffec95c 3fffdcc0 3ffeae18 3ffeae18
08:03:03.591 → 3fffef40: 00000080 3ffee7b0 00000000 3fffdab0
08:03:03.591 → 3fffef50: 402a1f7b 3fffdab0 00000000 40266c2a
08:03:03.591 → 3fffef60: 3ffeae18 40000f49 ffffff01 40000f49
08:03:03.591 → 3fffef70: 40000e19 000d6d03 bff00000 0000bfff
08:03:03.591 → 3fffef80: 00000005 aa55aa55 000000ed 40106b39
08:03:03.591 → 3fffef90: 40106b3f bff00000 0000bfff c4c7c03b
08:03:03.623 → 3fffefa0: 4010000d bff00000 000d6d03 401000ab
08:03:03.623 → 3fffefb0: 40296eec 3fffef4c 40296e9d 3ffffe18
08:03:03.623 → 3fffefc0: 3fffffd0 00000000 00000000 feefeffe
08:03:03.623 → 3fffefd0: feefeffe feefeffe feefeffe feefeffe
08:03:03.623 → 3fffefe0: feefeffe feefeffe feefeffe feefeffe
08:03:04.265 → 3ffff8d0: 40262e5c 00000000 3fff509c 40262ee9
08:03:04.298 → 3ffff8e0: 40262e5c 00000000 3fff509c 40262ee9
08:03:04.298 → 3ffff8f0: 40107e8c 00000000 3fff509c 40262ee9
08:03:04.298 → 3ffff900: 40262e5c 00000000 00000040 00356680
08:03:04.298 → 3ffff910: 00000000 400042db 3fff509c 40262ee9
08:03:04.298 → 3ffff920: 40004b31 3fff509c 00000040 00356840
08:03:04.298 → 3ffff930: 00000000 400042db 00000000 00040000
08:03:04.298 → 3ffff940: 00000001 3fff4814 00000000 00000008
08:03:04.330 → 3ffff950: 00000000 00000000 0000001f 401011a0
08:03:04.330 → 3ffff960: 3ffffb00 00000008 3fffc228 401072d1
08:03:04.330 → 3ffff970: 4000050c 00000080 00000020 40101f44
08:03:04.330 → 3ffff980: 4026075b 00000030 00000010 ffffffff
08:03:04.330 → 3ffff990: 4026075b 00000001 00000000 00000100
08:03:04.330 → 3ffff9a0: 3ffffa80 3ffffb80 00000010 00000003
08:03:04.330 → 3ffff9b0: 4025ede0 3ffffcd0 00000002 3fff3748
08:03:04.362 → 3ffff9c0: 00000000 3fffa1c4 3ffffee0 00000030
08:03:04.362 → 3ffff9d0: 00000002 00000000 00000020 401011a0
08:03:04.362 → 3ffff9e0: 40103bd5 4025f758 00000002 401037a4
08:03:04.362 → 3ffff9f0: 3ffeadc2 40106a23 3ffee490 40266ad3
08:03:04.362 → 3ffffa00: 00000001 40105bfe 3ffeef88 3ffffea0
08:03:04.362 → 3ffffa10: 3ffffa52 00000012 00000001 00000001
08:03:04.362 → 3ffffa20: 3fffa1c4 4025f758 00000020 40101f44
08:03:04.394 → 3ffffa30: 3ffffa92 00000002 0000000c 40266ad3
08:03:04.394 → 3ffffa40: 3fffa1c4 00000034 3ffffee0 3ffffee0
08:03:04.394 → 3ffffa50: 00000000 00000012 00000001 40260329
08:03:04.394 → 3ffffa60: 3fffa1c4 3ffffee0 3ffffa80 4026062e
08:03:04.394 → 3ffffa70: 3fffa1c4 00000000 3fff3748 402607e8
08:03:04.394 → 3ffffa80: 74685f05 5f047074 05706374 61636f6c
08:03:04.394 → 3ffffa90: 0000006c 00000000 00000000 00000000
08:03:04.426 → 3ffffaa0: 00000000 00000000 00000000 00000000
08:03:04.426 → 3ffffab0: 00000000 00000000 00000000 00000000
08:03:04.426 → 3ffffac0: 00000000 00000000 00000000 00000000
08:03:04.426 → 3ffffad0: 00000000 00000000 00000000 00000000
08:03:04.426 → 3ffffae0: 00000000 00000000 00000000 00000000
08:03:04.426 → 3ffffaf0: 00000000 00000000 00000000 00000000
08:03:04.426 → 3ffffb00: 3ffffb41 00000000 00000000 00000000
08:03:04.457 → 3ffffb10: 3ffffb51 00000000 00000000 3ffffee0
08:03:04.457 → 3ffffb20: 00000000 00000001 00000001 3ffffef0
08:03:04.457 → 3ffffb30: 00000000 00000001 00000001 40260329
08:03:04.457 → 3ffffb40: 3fffabd4 00000000 3ffffef0 40260356
08:03:04.623 → 3ffffd50: 3fffdab0 00000000 3fffd9d0 3fff3a78
08:03:04.623 → 3ffffd60: 40266c7c 00000000 00000001 3ffe8998
08:03:04.623 → 3ffffd70: ffffffff 00000000 000000a2 00000030
08:03:04.623 → 3ffffd80: 00000000 00000002 00000001 00000001
08:03:04.623 → 3ffffd90: 00000000 00000002 00000001 40260329
08:03:04.623 → 3ffffda0: 3ffffde4 3fff3748 3fff3748 40260380
08:03:04.623 → 3ffffdb0: 78000400 00000010 3ffffef0 00000001
08:03:04.623 → 3ffffdc0: 00000000 00000004 00000001 40260329
08:03:04.660 → 3ffffdd0: 3ffffe2c 3fff3748 3ffffef0 000000a2
08:03:04.660 → 3ffffde0: 00000000 000000a2 00000020 40101f44
08:03:04.660 → 3ffffdf0: 3fff3748 3ffffe28 0000005a 4027ce8d
08:03:04.660 → 3ffffe00: 00000000 00000000 00000000 4027d54e
08:03:04.660 → 3ffffe10: 00000000 00000000 3ffe8998 ffffffff
08:03:04.660 → 3ffffe20: 00000000 000000a2 40266c98 3fffefb0
08:03:04.660 → 3ffffe30: 00000000 ffffffff 3fffb064 4025fb57
08:03:04.660 → 3ffffe40: 003d0900 3ffffe8c 00000032 ff3d6ce2
08:03:04.687 → 3ffffe50: 000014e9 3ffffe80 3fff3024 401072d1
08:03:04.687 → 3ffffe60: de01a8c0 00ffffff fe01a8c0 3ffffef0
08:03:04.687 → 3ffffe70: 00000001 3fff3748 3fff3f34 402610f2
08:03:04.687 → 3ffffe80: 4026ed8c de01a8c0 4026ed8c fb0000e0
08:03:04.687 → 3ffffe90: 4026ed8c de01a8c0 00000000 40245a81
08:03:04.687 → 3ffffea0: 000000b0 3fff356c 3fff3a4c 3fffabd4
08:03:04.687 → 3ffffeb0: 3fffabd4 3fff3748 3fff3748 40261159
08:03:04.719 → 3ffffec0: 3ffea77a 4025cdc7 00000020 4025ef54
08:03:04.719 → 3ffffed0: 00000001 3fffabd4 3fffbb30 4025fca1
08:03:04.719 → 3ffffee0: 3fffabd4 3fff3748 00000001 4025ce02
08:03:04.719 → 3ffffef0: 3ffe0000 3fffbb2c 00000000 3f000000
08:03:04.719 → 3fffff00: 3fff00a2 3fffb9f4 3fffac08 4025dbe4
08:03:04.719 → 3fffff10: 3fff3748 00000001 00000001 4025e080
08:03:04.751 → 3fffff20: 3fffdad0 00000001 0173ab9a 40266e21
08:03:04.751 → 3fffff30: 3fffac08 00000000 fdb22d0e 32dd22ed
08:03:04.751 → 3fffff40: 00000000 00000000 3ffe8998 3fff3a78
08:03:04.751 → 3fffff50: 3fffdad0 3fff3748 00000001 4025e1c8
08:03:04.751 → 3fffff60: 3fffdad0 00000000 00000001 40248c26
08:03:04.751 → 3fffff70: 4026ed8c de01a8c0 00000001 40264b24
08:03:04.751 → 3fffff80: 00000000 3fff816c 0173ab99 3fff0500
08:03:04.751 → 3fffff90: 00000001 3ffea198 3fff3868 3fff3a78
08:03:04.783 → 3fffffa0: 3fffdad0 00000000 3fff3a4c 3fff3a78
08:03:04.783 → <<<stack<<<
08:03:04.783 →
08:03:04.783 → --------------- CUT HERE FOR EXCEPTION DECODER ---------------

08:03:04.815 → load 0x3fff20b8, len 40, room 8
08:03:04.815 → tail 0
08:03:04.815 → chksum 0x2b
08:03:04.815 → csum 0x2b
08:03:04.815 → v000d6d10
08:03:04.815 → ~ld
08:03:04.879 → �a�n�r��n|� l � lb brl�nb�n l�rl�l� �
08:03:04.879 → —WLED 0.14.1 2401141 INIT—
08:03:04.879 → esp8266 3.1.2
08:03:04.879 → heap 28512
08:03:04.879 → PIN ALLOC: Pin 1 successfully allocated by 0x89 (137)
08:03:04.911 → Registering usermods …
08:03:04.911 → heap 28512
08:03:04.911 → Reading config
08:03:04.911 → Reading settings from /wsec.json…
08:03:04.944 → JSON buffer locked. (3)
08:03:04.944 → JSON buffer released. (3)
08:03:04.944 → JSON buffer locked. (1)
08:03:04.944 → Reading settings from /cfg.json…
08:03:04.976 → Removing all.
08:03:04.976 → PIN ALLOC: Pin 2 successfully allocated by 0x82 (130)
08:03:04.976 → Successfully inited strip 0 (len 89) with type 22 and pins 2,0 (itype 2)
08:03:04.976 → PIN ALLOC: Pin 14 successfully allocated by 0x82 (130)
08:03:04.976 → Successfully inited strip 1 (len 174) with type 22 and pins 14,105 (itype 4)
08:03:05.008 → PIN ALLOC: Pin 0 successfully allocated by 0x85 (133)

I have tried using online ESP decoder …it is giving me following details:

  • 0x4027ce8d: mem_malloc at /local/users/gauchard/arduino/arduino_esp8266/origin/tools/sdk/lwip2/builder/lwip2-src/src/core/mem.c:210
  • 0x4027d54e: pbuf_alloc_LWIP2 at /local/users/gauchard/arduino/arduino_esp8266/origin/tools/sdk/lwip2/builder/lwip2-src/src/core/pbuf.c:284

Any help would be great :slight_smile:

most likely out of memory condition
check available heap prior to crash

Yeah, the issue repeated again , Seems like heap size issue

21:33:53.404 → Usermods took 0ms.
21:33:53.404 → Strip took 18ms.
21:33:53.467 → Loop took 72ms.
21:33:53.467 → Usermods took 0ms.
21:33:53.467 → Strip took 18ms.
21:33:54.888 → Loop took 1056ms.
21:33:54.888 → Usermods took 0ms.
21:33:55.730 → Heap too low! 2632
21:33:55.730 → Forcing reconnect.
21:33:55.922 → Access point disabled (init).
21:33:55.922 → Connecting to xxxx
21:33:56.116 → Loop took 381ms.
21:33:56.116 → Usermods took 0ms.
21:33:56.116 → Strip took 18ms.
21:33:56.179 → Loop took 52ms.
21:33:56.179 → Usermods took 0ms.
21:33:56.179 → Strip took 1ms.
21:33:56.437 → Loop took 53ms.

Your only remedy is HW upgrade. ESP32