Problem with Heap degradation restarts

I have the same issue… meaning to post but had not have the time to do so

I get a restart at different time… It happens with the uploader on and off:

image

1/12/22 18:12:39 HTTP server started
1/12/22 18:12:39 influxDB_v2: Starting, interval:5, url:http://XXXXXXXXXX:8086
1/12/22 18:12:39 timeSync: service started.
1/12/22 18:12:39 statService: started.
1/12/22 18:12:39 dataLog: service started.
1/12/22 18:12:39 dataLog: Last log entry 01/12/22 18:12:35
1/12/22 18:12:44 historyLog: service started.
1/12/22 18:12:44 historyLog: Last log entry 01/12/22 18:12:00
1/12/22 18:12:44 battery: Started
1/12/22 18:12:44 battery: Last log entry 01/12/22 18:12:35
1/12/22 18:12:44 grid: Started
1/12/22 18:12:44 grid: Last log entry 01/12/22 18:12:35
1/12/22 18:12:47 WiFi connected. SSID=XXXXXXXXXX, IP=XXXXXXXXXX, channel=11, RSSI -75db
1/12/22 18:12:47 MDNS responder started for hostname XXXXXXXXXX
1/12/22 18:12:47 LLMNR responder started for hostname XXXXXXXXXX
1/12/22 18:12:47 Updater: service started. Auto-update class is ALPHA
1/12/22 18:12:47 influxDB_v2: Resume posting 01/12/22 18:09:40
1/12/22 18:12:50 Updater: Auto-update is current for class ALPHA.
1/12/22 18:14:45 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
1/13/22 00:14:46z Real Time Clock is running. Unix time 1642032886 
1/13/22 00:14:46z Reset reason: Software/System restart
1/13/22 00:14:46z Trace:  1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4], 1:6[6], 1:1[12], 1:2[14], 9:0[14], 9:0, 8:4, 8:6, 8:8, 8:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
1/13/22 00:14:46z ESP8266 ID: 16295192, RTC PCF8523 (68)
1/13/22 00:14:46z IoTaWatt 5.0, Firmware version 02_07_05
1/13/22 00:14:46z SPIFFS mounted.
1/12/22 18:14:46 Local time zone: -6:00, using DST/BST when in effect.
1/12/22 18:14:46 device name: XXXXXXXXXX
1/12/22 18:14:46 HTTP server started
1/12/22 18:14:46 influxDB_v2: Starting, interval:5, url:http://XXXXXXXXXX:8086
1/12/22 18:14:46 timeSync: service started.
1/12/22 18:14:46 statService: started.
1/12/22 18:14:46 dataLog: service started.
1/12/22 18:14:47 dataLog: Last log entry 01/12/22 18:14:45
1/12/22 18:14:51 historyLog: service started.
1/12/22 18:14:51 historyLog: Last log entry 01/12/22 18:14:00
1/12/22 18:14:51 battery: Started
1/12/22 18:14:51 battery: Last log entry 01/12/22 18:14:45
1/12/22 18:14:51 grid: Started
1/12/22 18:14:51 grid: Last log entry 01/12/22 18:14:45
1/12/22 18:15:05 WiFi connected. SSID=XXXXXXXXXX, IP=XXXXXXXXXX, channel=11, RSSI -75db
1/12/22 18:15:05 MDNS responder started for hostname XXXXXXXXXX
1/12/22 18:15:05 LLMNR responder started for hostname XXXXXXXXXX
1/12/22 18:15:05 Updater: service started. Auto-update class is ALPHA
1/12/22 18:15:08 influxDB_v2: Resume posting 01/12/22 18:13:50
1/12/22 18:15:14 Updater: Auto-update is current for class ALPHA.
1/12/22 18:15:33 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
1/13/22 00:15:34z Real Time Clock is running. Unix time 1642032934 
1/13/22 00:15:34z Reset reason: Software/System restart
1/13/22 00:15:34z Trace:  1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[12], 1:2[14], 9:0[14], 9:0, 8:4, 8:6, 8:8, 8:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
1/13/22 00:15:34z ESP8266 ID: 16295192, RTC PCF8523 (68)
1/13/22 00:15:34z IoTaWatt 5.0, Firmware version 02_07_05
1/13/22 00:15:34z SPIFFS mounted.
1/12/22 18:15:34 Local time zone: -6:00, using DST/BST when in effect.
1/12/22 18:15:34 device name: XXXXXXXXXX
1/12/22 18:15:34 HTTP server started
1/12/22 18:15:34 influxDB_v2: Starting, interval:5, url:http://XXXXXXXXXX:8086
1/12/22 18:15:34 timeSync: service started.
1/12/22 18:15:34 statService: started.
1/12/22 18:15:34 dataLog: service started.
1/12/22 18:15:35 dataLog: Last log entry 01/12/22 18:15:30
1/12/22 18:15:39 historyLog: service started.
1/12/22 18:15:39 historyLog: Last log entry 01/12/22 18:15:00
1/12/22 18:15:39 WiFi connected. SSID=XXXXXXXXXX, IP=XXXXXXXXXX, channel=11, RSSI -75db
1/12/22 18:15:39 MDNS responder started for hostname XXXXXXXXXX
1/12/22 18:15:39 LLMNR responder started for hostname XXXXXXXXXX
1/12/22 18:15:39 Updater: service started. Auto-update class is ALPHA
1/12/22 18:15:39 battery: Started
1/12/22 18:15:39 battery: Last log entry 01/12/22 18:15:30
1/12/22 18:15:40 grid: Started
1/12/22 18:15:40 grid: Last log entry 01/12/22 18:15:30
1/12/22 18:15:46 Updater: Auto-update is current for class ALPHA.
1/12/22 18:17:49 influxDB_v2: Resume posting 01/12/22 18:13:50
1/12/22 18:17:56 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
1/13/22 00:17:57z Real Time Clock is running. Unix time 1642033077 
1/13/22 00:17:57z Reset reason: Software/System restart
1/13/22 00:17:57z Trace:  8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 31:93, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
1/13/22 00:17:57z ESP8266 ID: 16295192, RTC PCF8523 (68)
1/13/22 00:17:57z IoTaWatt 5.0, Firmware version 02_07_05
1/13/22 00:17:57z SPIFFS mounted.
1/12/22 18:17:57 Local time zone: -6:00, using DST/BST when in effect.
1/12/22 18:17:57 device name: XXXXXXXXXX
1/12/22 18:17:57 HTTP server started
1/12/22 18:17:57 influxDB_v2: Starting, interval:5, url:http://XXXXXXXXXX:8086
1/12/22 18:17:57 timeSync: service started.
1/12/22 18:17:57 statService: started.
1/12/22 18:17:57 dataLog: service started.
1/12/22 18:17:57 dataLog: Last log entry 01/12/22 18:17:55
1/12/22 18:18:02 historyLog: service started.
1/12/22 18:18:02 historyLog: Last log entry 01/12/22 18:17:00
1/12/22 18:18:02 WiFi connected. SSID=XXXXXXXXXX, IP=XXXXXXXXXX, channel=11, RSSI -74db
1/12/22 18:18:02 MDNS responder started for hostname XXXXXXXXXX
1/12/22 18:18:02 LLMNR responder started for hostname XXXXXXXXXX
1/12/22 18:18:02 Updater: service started. Auto-update class is ALPHA
1/12/22 18:18:02 battery: Started
1/12/22 18:18:02 battery: Last log entry 01/12/22 18:17:55
1/12/22 18:18:03 grid: Started
1/12/22 18:18:03 grid: Last log entry 01/12/22 18:17:55
1/12/22 18:18:06 influxDB_v2: Resume posting 01/12/22 18:13:50
1/12/22 18:18:12 Updater: Auto-update is current for class ALPHA.
1/12/22 18:18:31 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
1/13/22 00:18:32z Real Time Clock is running. Unix time 1642033112 
1/13/22 00:18:32z Reset reason: Software/System restart
1/13/22 00:18:32z Trace:  1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[10], 1:2[11], 9:0[11], 9:0, 9:1, 8:4, 8:6, 8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
1/13/22 00:18:32z ESP8266 ID: 16295192, RTC PCF8523 (68)
1/13/22 00:18:32z IoTaWatt 5.0, Firmware version 02_07_05
1/13/22 00:18:32z SPIFFS mounted.
1/12/22 18:18:32 Local time zone: -6:00, using DST/BST when in effect.
1/12/22 18:18:32 device name: XXXXXXXXXX
1/12/22 18:18:32 HTTP server started
1/12/22 18:18:32 influxDB_v2: Starting, interval:5, url:http://XXXXXXXXXX:8086
1/12/22 18:18:32 timeSync: service started.
1/12/22 18:18:32 statService: started.
1/12/22 18:18:32 dataLog: service started.
1/12/22 18:18:32 dataLog: Last log entry 01/12/22 18:18:30
1/12/22 18:18:37 historyLog: service started.
1/12/22 18:18:37 historyLog: Last log entry 01/12/22 18:18:00
1/12/22 18:18:37 Updater: service started. Auto-update class is ALPHA
1/12/22 18:18:37 battery: Started
1/12/22 18:18:37 battery: Last log entry 01/12/22 18:18:30
1/12/22 18:18:37 grid: Started
1/12/22 18:18:37 grid: Last log entry 01/12/22 18:18:30
1/12/22 18:18:37 influxDB_v2: Resume posting 01/12/22 18:13:50
1/12/22 18:18:38 WiFi connected. SSID=XXXXXXXXXX, IP=XXXXXXXXXX, channel=11, RSSI -72db
1/12/22 18:18:38 MDNS responder started for hostname XXXXXXXXXX
1/12/22 18:18:38 LLMNR responder started for hostname XXXXXXXXXX
1/12/22 18:18:39 Updater: Auto-update is current for class ALPHA.
1/15/22 03:05:35 WiFi disconnected.
1/15/22 03:06:14 WiFi connected. SSID=XXXXXXXXXX, IP=XXXXXXXXXX, channel=6, RSSI -85db
1/17/22 22:03:19 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
1/18/22 04:03:21z Real Time Clock is running. Unix time 1642478601 
1/18/22 04:03:21z Reset reason: Software/System restart
1/18/22 04:03:21z Trace:  8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 31:93, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
1/18/22 04:03:21z ESP8266 ID: 16295192, RTC PCF8523 (68)
1/18/22 04:03:21z IoTaWatt 5.0, Firmware version 02_07_05
1/18/22 04:03:21z SPIFFS mounted.
1/17/22 22:03:21 Local time zone: -6:00, using DST/BST when in effect.
1/17/22 22:03:21 device name: XXXXXXXXXX
1/17/22 22:03:21 HTTP server started
1/17/22 22:03:21 influxDB_v2: Starting, interval:5, url:http://XXXXXXXXXX:8086
1/17/22 22:03:21 timeSync: service started.
1/17/22 22:03:21 statService: started.
1/17/22 22:03:21 dataLog: service started.
1/17/22 22:03:22 dataLog: Last log entry 01/17/22 22:03:15
1/17/22 22:03:26 historyLog: service started.
1/17/22 22:03:26 historyLog: Last log entry 01/17/22 22:03:00
1/17/22 22:03:26 battery: Started
1/17/22 22:03:26 battery: Last log entry 01/17/22 22:03:15
1/17/22 22:03:26 grid: Started
1/17/22 22:03:26 grid: Last log entry 01/17/22 22:03:15
1/17/22 22:03:27 Updater: service started. Auto-update class is ALPHA
1/17/22 22:03:28 WiFi connected. SSID=XXXXXXXXXX, IP=XXXXXXXXXX, channel=11, RSSI -72db
1/17/22 22:03:28 MDNS responder started for hostname XXXXXXXXXX
1/17/22 22:03:28 LLMNR responder started for hostname XXXXXXXXXX
1/17/22 22:03:28 influxDB_v2: Resume posting 01/17/22 22:02:30
1/17/22 22:03:30 Updater: Auto-update is current for class ALPHA.
1/18/22 20:05:44 Updater: Invalid response from server. HTTPcode: -14

Interesting… I also have Home Assistant, I have 3 Iotawatt units and only one does this…

Heap degradation is usually caused by poor WiFi. Yours is typically borderline (mid -70s) and sometimes poor (-84). That may not be your problem, but Caveat Emptor. Do your other units have better RSSI?

Is your failing unit also the one being queried by HASS?

Yes, all are polled by HA.

I suspected that… I think had made that correlation some time ago.
Not really. They are at 77dBm. But they are attached to a different channel (channel 6). The access point in channel 6 is inside the house. The AP on channel 11 is in the garage. The failing unit is really close to the garage AP (one wall off difference). The other two devices are in the garage and now I wonder why they chose the inside AP.
Channel 11 is generally a bit more congested in the neighborhood… so that could be it. Low power plus high retries…
I am going to try increasing the power of the channel 11 AP to see if I get any improvement.