Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Chris2016
#39805 Dear all,

even with the latest GIT version my ESPi crashes into a WDT freeze (it says "WDT reboot" but doesn't do anything anymore) when the Webserver is active. I have a browser query a URL from the ESP at approximately 1Hz. It freezes after random times, sometimes 1h, sometimes already 10 minutes; non-deterministically.

At the same time, using the android browser instantly kills the device, both in STA and AP mode. I have not found out as to why that is and suspect heap corruption or fragmentation. Is there a way to debug this?

Thanks.
User avatar
By WereCatf
#39807 Whenever there is heap-fragmentation it is most often the result of you not freeing allocated memory, ie. you have a memory-leak. The rest of your description sounds like you are either using unitialized variables or accessing memory beyond the variables' bounds.
User avatar
By Chris2016
#39809 hm, unlikely. happens with the example helloWorld server too. And no, under c++ the garbage collector takes care of heap, so fragmentation may occur at any time, more often the longer the thing runs... but thanks for the suggestion.
User avatar
By WereCatf
#39811
Chris2016 wrote:hm, unlikely. happens with the example helloWorld server too.


You are using latest git, yes? What platform and IDE-version? You might wish to raise an issue on their github because if it happens even with the included examples it sounds like there is a bug with the libraries and then it should obviously be fixed. If you don't have a github-account I can do it for you.

I'll have to test this, does it crash instantly with the helloWorld example when using an Android-browser? Which Android-version and which of the browsers? I'd like more details.