-->
Page 1 of 1

Memory leak in ESP8266 Arduino Core v 2.4.1 & 2.4.0?

PostPosted: Fri Mar 30, 2018 5:09 am
by Arduolli
Hi all;
I wanted to make you aware of a potential memory leak issue in Version 2.4.1 of the ESP8266 Arduino Core.

For details of the code where the problem occured see my post here:
https://www.esp8266.com/viewtopic.php?f=32&t=17379&p=75005#p75005

Bottomline:
The code from aboves post creates a systematically decreasing heap size when using Version 2.4.1.
When I use V2.4.0rc2, this does not happen; heap size stays constant.

*Update*: Same problem seems to happen on Version 2.4.0.
Only Version 2.4.0rc2 seems to work for me.

If somebody finds the time to address this in a future release, that would be great!
(Or point me to a problem in my code, which could have triggered the issue)

All the best and happy easter!

Re: Memory leak in ESP8266 Arduino Core v 2.4.1 & 2.4.0?

PostPosted: Fri Mar 30, 2018 4:20 pm
by schufti
might pretty well be this issue
https://github.com/esp8266/Arduino/issues/4497

Re: Memory leak in ESP8266 Arduino Core v 2.4.1 & 2.4.0?

PostPosted: Fri Mar 30, 2018 4:56 pm
by Arduolli
Yes! This looks like the same issue - thanks for sharing the link to the github issue, schufti.

Glad its not only me and even happier that it's already identified as a bug and will hopefully soon be addressed - in Version 2.4.2... 42... the answer to everything ;-)

Update:
Rereading the github issue, I see that the issue is already closed...
And the fix linked to it https://github.com/esp8266/Arduino/commit/95b1348a71e6cb1a5e125e0ed479809c872d196e
works great in V2.4.1!
Thank you!!