Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Heap Leak of 324 bytes every 60s when DeviceTelemetryModule is doing a local update #2358

Closed
mverch67 opened this issue Mar 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mverch67
Copy link
Collaborator

mverch67 commented Mar 14, 2023

Category

Memory leak

Hardware

T-Beam

Firmware Version

2.1.2

Description

Compile 2.1.2 with -DDEBUG_HEAP in platform.ini.
Flash firmware to device and connect via bluetooth with (Android)APP.

With firmware 2.1.2 the free heap is constantly decreasing every 60 seconds by 324 bytes.

Relevant log output

DEBUG | ??:??:?? 22 [Power] Heap status: 120452/205824 bytes free (-21280), running 11/24 threads
DEBUG | ??:??:?? 42 [Power] Heap status: 120388/205792 bytes free (-64), running 11/24 threads
DEBUG | ??:??:?? 62 [Power] Heap status: 120348/205776 bytes free (-40), running 11/24 threads
DEBUG | ??:??:?? 82 [Power] Heap status: 120028/205696 bytes free (-320), running 11/24 threads
DEBUG | ??:??:?? 122 [Power] Heap status: 119664/205664 bytes free (-364), running 11/24 threads
DEBUG | ??:??:?? 182 [Power] Heap status: 119340/205648 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 242 [Power] Heap status: 119016/205632 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 302 [Power] Heap status: 118692/205616 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 362 [Power] Heap status: 118368/205600 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 422 [Power] Heap status: 118044/205584 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 482 [Power] Heap status: 117720/205568 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 542 [Power] Heap status: 117396/205552 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 602 [Power] Heap status: 117072/205536 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 662 [Power] Heap status: 116748/205520 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 722 [Power] Heap status: 116424/205504 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 782 [Power] Heap status: 116100/205488 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 842 [Power] Heap status: 115776/205472 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 902 [Power] Heap status: 115452/205456 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 962 [Power] Heap status: 115416/205440 bytes free (-36), running 11/24 threads
DEBUG | ??:??:?? 1022 [Power] Heap status: 115092/205424 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 1082 [Power] Heap status: 114768/205408 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 1142 [Power] Heap status: 114444/205392 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 1202 [Power] Heap status: 114120/205376 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 1262 [Power] Heap status: 113796/205360 bytes free (-324), running 11/24 threads
DEBUG | ??:??:?? 1322 [Power] Heap status: 113472/205344 bytes free (-324), running 11/24 threads
@mverch67 mverch67 added the bug Something isn't working label Mar 14, 2023
mverch67 added a commit to mverch67/meshtastic-firmware that referenced this issue Mar 14, 2023
@mverch67
Copy link
Collaborator Author

A potential fix is provided in #2359.

thebentern pushed a commit that referenced this issue Mar 14, 2023
* Fix heap leak mentioned in #2358

* Additional fix for #2359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants