-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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 hangs (IDFGH-9724) (IDFGH-9725) #11060
Comments
here is a typical "good" boot log: https://gist.github.com/rojer/85c3abd0157a5b7935ca7249ff04ea1c
|
this seems to suggest that this has been fixed already. can i get a confirmation on whether that is the case? |
No, that "duplicate" label is just a bug of our issue tracking system. Somehow two internal issues got created for this GitHub issue; the second one was marked as "duplicate", and the resolution got synced back to this issue. I'll clear the label. |
The question is this issue is duplicated with which issue? I don't find the link. |
@AxelLin it's not duplicated with anything, labeling was a mistake. it's still waiting for investigation. |
I can confirm the same issue but on 4.2.4 Exactly same symptoms related to frequent network connection and disconnection event. Happens more frequently when WiFi signal is weak compared to sites with better network coverage.
esp_restart() does not help - only power cycle. |
v4.2 is already EOL, maybe you can try with newer esp-idf version? |
v4.4 has been tried as well. Same issue. |
This issue has been reported for several months, but there is no response from other espressif developers? |
hi @rojer , I have seen your log and I would like to confirm that if you have used the BLE and Wi-Fi coex? and could you share the minimum reproduce code to us |
hi @lszelejewski could you describe your application scenario in details |
On behalf of @lszelejewski I will describe our problem. Majority of our devices uses v4.2.4.
before the reboot. But the problem is that WiFi can't connect anymore after startup. Software watchdog resets the device with esp_restart but issue persists until power cycle. So it looks like this:
The log:
It looks like inconsistent state is kept during reset with esp_restart. Is there a change that triggering hardware watchdog would reset WiFi better than esp_restart()? |
hi @tomasznowik from your log, there might be somerhing wrong with phy or the Phy uses the wrong calibration data , could you tell me |
|
@Xiehanxin We still observe the issue. After fixing our own bug the device doesn't reset so often so it looked like the issue is solved but it's not. After writing a configuration to flash we call esp_system_abort to reboot. And rarely the devices can't connect to wifi anymore because of the error I described previously.
You wrote "there might be somerhing wrong with phy or the Phy uses the wrong calibration data". Is there anything we could try to fix this?
|
@Xiehanxin Any further feedback about #11060 (comment) and #11060 (comment) ? |
Hi @rojer , we find the cause of Wi-Fi connect issue after reset when coexisting with BLE scan. #13598 (comment) |
@Espressif-liuuuu great news, thanks! we've been carrying a really hacky workarond for this for a while. i'll try to repro it with our current code (w/o workaround) and then try the fix. |
@rojer Does the fix work for you? |
Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates. |
yeah, i'm sorry - i have actually tried to reproduce it, but wasn't able to. something has changed somewhere, but the bottom line is we don't see these crashes anymore, and that's good. |
Answers checklist.
IDF version.
4.4 release, tried latest 4.4 latest as well
Operating System used.
Linux
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-PICO-KIT
Power Supply used.
USB
What is the expected behavior?
Wifi connects every time
What is the actual behavior?
Sometimes (approximately 1 in hundreds to a thousand) the wifi stack gets into an inconsistent state and is unable to connect or scan properly.
The tell-tale sign is appearance of
W (67573) wifi:m f probe req l=0
messages on the console,and additionally, wifi can no longer be properly stopped, after 5 seconds of blocking it prints the following:
restarting does not solve the issue, and deinit causes a core dump due to what looks like a double-free on some internal buffer:
Steps to reproduce.
I have firmware that reboots 5 seconds after wifi connects and it will get into this state within an hour or two.
Debug Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: