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 stack can freeze if CONFIG_ESP32_WIFI_RX_BA_WIN > CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM (IDFGH-1383) #3663
Comments
See also: espressif/arduino-esp32#2899 |
Well, are you sure it's this? Because the and it does not "freeze" 😐 |
Well it solves the problem reported in espressif/arduino-esp32#2899 but maybe only happens "under certain conditions" or certain values so needs more constraints from wifi stack developers |
Yes, I certainly agree that changing the values "fixes" the reported issue 👍 But what I was pointing at is, whether the supplied conditional really is the underlying cause of the freezing stack, because it is in direct conflict with the Other than that, all is fine 🙂 |
This issue still happens in the v1.0.3 Arduino core: espressif/arduino-esp32#3287 |
For those following along, the stack now fails to receive more packets than defined by CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM. Doing some spelunking for the word |
@ssilverman hi,I use your script to send upd packets, but I didn't reproduce the issue. |
When I filed this and related issues, this was the behaviour. However, the later Arduino releases seem to fix the problem. I haven’t dived in, but if you use settings from 1.0.2 (I think? See the issues in that repo that link to this one.), then you’ll see this behaviour. I realize this repo isn’t Arduino, and I haven’t explored much in the non-Arduino space of the esp-idf repo, but I think you’ll find the behaviour by using the settings mentioned in those Arduino versions. There’s a bunch of related issues, but see this one (including the links there): espressif/arduino-esp32#2899 |
I think this can be closed with dd26caf#diff-fdc67a5904b65c3885aad20459aa1cef |
@negativekelvin was the source of this problem found? |
Yes, enforce restrictions on the value of CONFIG_ESP32_WIFI_RX_BA_WIN per the commit. The other issues are all outside the scope of esp-idf code so I think you can close this. Unless you want to request backport to another version. |
Right, but I meant: why does not meeting those conditions cause the problem? Is there a deeper problem somewhere? Should a comment in the code that uses these values make note of a fault potential? I’m just suggesting another commit that addresses that problem or at least makes a note of it somewhere. Other than that, I can certainly close this if you’re saying it’s fixed. @r1dd1ck what do you think? Edit: I re-read what you wrote and you stated that the real problem is outside esp-idf. I’ll close. But what do you think of @r1dd1ck’s comment that this disagrees with |
The actual conditions in the commit are
so iperf is not in violation |
Yes, its rules are defined in “components/esp_wifi/src/wifi_init.c” |
Suggest you change the issue to this:
Originally posted by @negativekelvin in #3646 (comment)
The text was updated successfully, but these errors were encountered: