meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.64k stars 912 forks source link

[Bug]: HEAP memory leak in recent beta #5307

Closed LowVoltagePirate closed 2 weeks ago

LowVoltagePirate commented 2 weeks ago

Category

WiFi

Hardware

T-Beam

Firmware Version

2.5.11

Description

I'm observing a memory leak with my t-beam with mqtt and wifi enabled. After approx 6-12 hours there's no heap memory left, WiFi disconnects and never reconnects, after a power cycle all is good again for those hours. It was fine with 2.4.5

Relevant log output

No response

karamo commented 2 weeks ago

FW 2.5.12 new compiled with options-DDEBUG_HEAP and -DDEBUG_HEAP_MQTT multiple Heap-Leaks ... shown time interval ≈3h with MQTT-Explorer: top 2 are T-Beam, bottom left T-Deck, bottom right TLora T3_V1.6.1 grafik

GUVWAF commented 2 weeks ago

I found one place where a memory leak would occur when using MQTT. That one should at least be fixed with #5311.

karamo commented 2 weeks ago

I found one place where a memory leak would occur when using MQTT. That one should at least be fixed with #5311.

I will test it ...

karamo commented 2 weeks ago

the first one is gone, but there are more Heap-Leaks: see #5316 and #5317

derekpurdy commented 5 days ago

what version will this be released in?

fifieldt commented 5 days ago

what version will this be released in?

Probably 2.5.14

GUVWAF commented 5 days ago

It is already in 2.5.13.