-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Enable UMM_POISON in debug mode only #1800
Comments
hi @luc-github , why don't you use the @Links2004 websocket with single connection, or even the ajax, I presume you did that before you declare, you using the TCP/IP only |
Because I need a web server to display web pages, this is not same usage as websocket |
I should add it is not related to #1661 |
I have tried git version today and same result : very slow - seems 2.1.0 send data but very slowly on my project (https://github.com/luc-github/ESP8266) with my nodemcu 1.0 - when it is fine on 2.0.0 Any idea what changes between 2.0.0 vs 2.1.0 could cause this ? I have willing to troubleshoot more but no crash, so I do not know what part of code to check |
I wonder why every new release miss some feature or previous, I hope @igrr and @Links2004 could finally release the last stable version before the new chip like ESP32 come to market |
If you want a static version of the library why not just use the old 2.0.0 that has what you want and worked for your needs? |
@mkeyno this is normal to have some misses and errors - this is a big project and it managed by people on they free time - so full testing is not always possible - regression test can take ages if you do not have enough people to do it - @igrr and others great contributors do a tremendous job, they have to handle issues and new requests permanently - try and you will see. A way to contribute before asking new feature is to help to check if current ones are ok, giving as much information as possible to reproduce issue, always try to narrow down issue in code to save time to developers - if I can fix by myself, I do and do a PR (unfortunately I did not do a lot....) |
@luc-github could you please share the piece of code which constructs and sends the page? |
@igrr Thanks for looking into |
Could that be SPIFFS related slowdown? We have updated to a new version of SPIFFS. Is there a way to rule out that possibility? |
OK I will check by building fake 10K page without using SPIFFS , should be easy to do |
Hum seems the issue - if I do not use SPIFF... display is immediate |
I will try to reverse to previous version of SPIFF to double confirm |
SPIFFS may not be the only root cause - as reverting to version previous to new SPIFFS show some performance issue - I will see from 2.0.0 which commit start to show the problem and feedback |
We also have a new memory allocator which runs extra checks on every malloc/free. This might also have some impact. |
Ok noted - thanks a lot I will check the commit which do this - I was busy latests month and did not followed all changes 😞 |
this commit bring a big performance issue : https://github.com/esp8266/Arduino/tree/339140c756cea6acc9c0c023477f054c6f9990bb before it is same as 2.0.0 |
Could you please try with this config line commented out?
|
@igrr thanks for coaching So I updated to complete 2.1.0 and no more failure and speed is even faster than 2.0.0 (and no warning) to give idea of performances to display a page in STA mode I can count to : Another effect of commenting : my memory move from 25648 bytes to 29072 bytes I read UMM_POISON is to detect heap corruption, may be it should be enabled only in DEBUG mode if it is consuming so much resources ? I will do test on AP mode and report later Thanks again for this great project |
Yes, I think it would make sense to enable poisoning only in debug mode. |
Another option would be introduce an additional menu item, but we have enough of them already I think. |
dear @igrr should we do the same in our library ? I mean always comment out the mentioned line for every example |
This line is not part of examples, it is part of the core. As a temporary solution you may comment that line out. |
Seems no improvement for AP mode still get |
Finally I won't open new issue, unless someone think it is necessary ,here the results of my test why AP is no responding. So to sum up all can be back if I modify my - so it may not be an issue but a limitation |
Hi I have a project that work very well on 2.0.0 core - web server is responsive in AP and STA.
When I moved to 2.1.0 display become very slow on STA and so slow in AP that nothing is displaying. my home page ('/') do around 10Ko, I build by part of 1.2K and send part , then build next part and send it to avoid to consume memory and go out of memory - this working very well on 2.0.0.
I saw webserver has been rewritten for 2.1.0- is there any new parameter or setting to fine tune to get same speed as 2.0.0 that I have missed ?
Thanks
The text was updated successfully, but these errors were encountered: