These are chat archives for SmingHub/Sming

3rd
Nov 2017
bbourdel
@bbourdel
Nov 03 2017 08:11
@slaff Ok, I will do it.
I have a memory leak on the HTTPClient. When the ESP is connected to an AP that is not connected to Internet, the request doesn't success (for sure) but if you retry over and over(every 10 secondes for instance), the heap is decreasing slowly (about 1kB every request).
Do you know any tool that I can use to track my heap usage ? (More than the simpliest system_get_free_heap_size() ) Something where I can track what is filling my heap.
Thanks
bbourdel
@bbourdel
Nov 03 2017 09:38
Here my log :
heap = 20656
heap = 20656
heap = 20656
heap = 20656
heap = 20656
heap = 20656
ping
Removing stale connection: State: 3, Active: 0
Delete
3fff3fa8 already freed
~TCP connection
Creating new httpConnection
useSsl
HttpConnection::connect: TCP state: -1, isStarted: 0, isActive: 0
HttpConnection::connecting ...
+TCP connection
connect to:  data.tXXXXX.com
DNS record _not_ found: data.tXXXXX.com
-TCP connection
heap = 20600
heap = 20600
heap = 20600
heap = 20600
heap = 20600
heap = 20600
heap = 20600
ping
Removing stale connection: State: 3, Active: 0
Delete
3fff3fa8 already freed
~TCP connection
Creating new httpConnection
useSsl
HttpConnection::connect: TCP state: -1, isStarted: 0, isActive: 0
HttpConnection::connecting ...
+TCP connection
connect to:  data.tXXXXX.com
DNS record _not_ found:  data.tXXXXX.com
-TCP connection
heap = 20536
heap = 20536
heap = 20536
heap = 20536
heap = 20536
heap = 20536
heap = 20536
ping
Removing stale connection: State: 3, Active: 0
Delete
3fff3fa8 already freed
~TCP connection
Creating new httpConnection
useSsl
HttpConnection::connect: TCP state: -1, isStarted: 0, isActive: 0
HttpConnection::connecting ...
+TCP connection
connect to: data.tXXXXX.com
DNS record _not_ found:  data.tXXXXX.com
-TCP connection
heap = 20472
heap = 20472
heap = 20472
heap = 20472
heap = 20472
heap = 20472
frankdownunder
@frankdownunder
Nov 03 2017 23:51
@bbourdel To make a PR, I found these instructions https://github.com/SmingHub/Sming/blob/develop/CONTRIBUTING.md quite helpful