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

Wifi reconnect uses a lot of Heap #2544

Closed
SecurityAddicted opened this issue Apr 25, 2018 · 6 comments
Closed

Wifi reconnect uses a lot of Heap #2544

SecurityAddicted opened this issue Apr 25, 2018 · 6 comments

Comments

@SecurityAddicted
Copy link

I have a Sonoff which is quite far from the AP and frequently drops the connection and try to reconnect (wificonfig is set to 5). What I noticed is after a lot of retries the remaining heap starts to go down, until the device becomes unreachable (probably crashed).
Any thoughts about that?

Using Tasmota v5.12 with SDK 2.4.1.

@arendst
Copy link
Owner

arendst commented Apr 25, 2018

What LwIP option did you use when compiling with 2.4.1?

The most obvious answer is not to use 2.4.1 as it is known to have memory leaks.

@SecurityAddicted
Copy link
Author

Using v2 Lower Memory. What do you suggest? Differences about them?

@arendst
Copy link
Owner

arendst commented Apr 25, 2018

See Esp/Arduino website about differences and trouble.

I suggest to stay at 2.4.0.

@SecurityAddicted
Copy link
Author

Thanks. What LwIP should be used in 2.4.0?

@arendst
Copy link
Owner

arendst commented Apr 25, 2018

You might want to try the latest development version which contains a fix for this memory leak as documented here esp8266/Arduino#4497

So re-compile with V2 lower memory and 2.4.1 and let me know the results over time.

@ascillato
Copy link
Contributor

Hi,

If your issue was solved, please, close it. Thanks 👍

curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants