WiFiManager icon indicating copy to clipboard operation
WiFiManager copied to clipboard

13 custom fields renders 4/10 times on ESP8266

Open F1p opened this issue 1 year ago • 4 comments

I have a reasonable sized project, running 13 custom fields and have an issue on the ESP8266 where 4/10 times the custom fields render blank on refresh (as per screenshots) but issue doesn't seem to impact the ESP32. Any idea's why this might happen?

Screenshot 2024-12-19 133629 Screenshot 2024-12-19 134342

Running the latest master branch,

ESP8266 running Core version 3.1.2 Boot version 31 CPU frequency 160MHz Memory - Free heap 12912 bytes available Memory - Sketch size Used / Total bytes 489296 / 3143504

F1p avatar Dec 24 '24 22:12 F1p

Might be an issue improved by adjusting MMU to 16KB Cache + 48K IRAM instead of balanced (32/32K)

F1p avatar Dec 29 '24 09:12 F1p

Its probably memory, the html is output as a string on the stack, If you are using alot of params this can be optimized by using chunked outputting and allocated buffers, I think there is an issue here to start looking into it..

#1319 #518

tablatronix avatar Dec 30 '24 16:12 tablatronix

Its probably memory, the html is output as a string on the stack, If you are using alot of params this can be optimized by using chunked outputting and allocated buffers, I think there is an issue here to start looking into it..

#1319 #518

Thanks, will try chunked response for now

F1p avatar Dec 30 '24 17:12 F1p

Its probably memory, the html is output as a string on the stack, If you are using alot of params this can be optimized by using chunked outputting and allocated buffers, I think there is an issue here to start looking into it.. #1319 #518

Thanks, will try chunked response for now

Hi F1p, not sure how you went with the previous suggestion to try chunked responses. If helps, I developed a chunking enhancement for WiFiManager, which you can get from branch Chunking in the repo https://github.com/timr49/WiFiManager It is described in https://github.com/timr49/WiFiManager/blob/Chunking/PAGE.md

timr49 avatar Jun 29 '25 12:06 timr49