-->
Page 1 of 2

No heap available, failed to malloc 0

PostPosted: Thu May 14, 2015 3:38 pm
by GIlbert Marchal
Hi,
Got the pubsub mqtt basic example running but, even if everything seems to work fine, I get the error (from debug serial) "No heap available, failed to malloc 0".

Do I have to worry about this?

By the way I tried to monitor free heap with ESP.getFreeHeap() but this function does not seem to be implemented in the very last version (?).

Thank you in advance for your help!

Re: No heap available, failed to malloc 0

PostPosted: Sat May 16, 2015 8:42 am
by oeyhaga
Got the same problem with my webclient scatch after updating to arduino ide 1.6.4.
Anyone know why/what it is?

Re: No heap available, failed to malloc 0

PostPosted: Sat May 16, 2015 9:25 am
by Stevenelson
Ivan says the ESP object isn't in the latest compiled version of the IDE, but it is in the source. I haven't tried this yet, so I can't confirm this, but he said that if you compile the latest clone from github the ESP object is in there.

Re: No heap available, failed to malloc 0

PostPosted: Sat May 16, 2015 11:09 am
by GIlbert Marchal
Stevenelson wrote:Ivan says the ESP object isn't in the latest compiled version of the IDE, but it is in the source. I haven't tried this yet, so I can't confirm this, but he said that if you compile the latest clone from github the ESP object is in there.


Hi,
Sorry for my ignorance but i'm not sure to understand what you mean.
You mean that the adafruit package does not contain the latest version of ESP object?

thank you.