-
Notifications
You must be signed in to change notification settings - Fork 9
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
assert failed: tcp_update_rcv_ann_wnd (needs help to test fix) #14
Comments
Hello, |
theoretically I have it in platformio,
|
Seems related to the queue size ? It's hard to help you with so little information. How the application is built, uses ressources and how many request / concurrent request you have can all affect that. If you can pinpoint a bit more the issue, let me know. |
Well, hard to tell the exact crash location in lib. Having several modules built in top of asynctcp including webserver.All of those are using asyncTCP, |
This comment was marked as off-topic.
This comment was marked as off-topic.
FYI I was able to reproduce today. The issue happens when I am doing some operation in the post request handler which executes on core 1, and is updating some states in ESPAsyncWebserver (websocket in my case). Typically, I was in a code path, calling websocket to push some data (WebSerial), within some code called from the POST handler of ESPAsyncWebserver. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
FWIW - I'm also getting the same error I was able to replicate almost 100% of the time with a
Basically, I wanted to turn on the LED during a page request and the |
@mikeg0 :
In async mode, never ever bock or execute long-running code in a callback coming from another task. Keep the states, run the code from main loop or another loop (except if you know that the code will execute really fast). |
I am reopening because I saw it today. This is really random - got it twice in several months. Ref also: espressif/arduino-esp32#7895
|
@mikeg0 : if you can try this fix ? branch: |
I was able to reproduce in a reliable way and then tested the fix and it works, I will merge and issue a new release. |
FYI @DaeMonSxy @mikeg0 @notixor : #24 If you happen to see the issue again with the new upcoming releases, please let me know. |
hello, |
Hello, The issue was fixed (see this long discussion with 2 people testing )tbnobody/OpenDTU#2326) So please double check your environment, lib versions, if you have duplicates, etc. |
Sorry about that. |
Ok. Please try to work on a reproductible use case in an .ino file. |
It would be good to have an internal crash prevention for asynctcp library as well.
I would appreciate any hints to solve such crashes-and have stable tcp lib also.
The text was updated successfully, but these errors were encountered: