Open kriegste opened 4 months ago
Hey @kriegste is possible for you to provide console logs for the crash? Also can you please mention the steps which caused the crash
I'm afraid this is all the info from the log I have.
The crash happened right after a restart when the device (ESP32) tried to connect (for the first time after the restart). It is in a location with a very weak signal (RSSI -83 dBm or worse). So it loses connection regularly and reconnects, but never crashes. There are no other crashes either. The access point uses WPA2, not WPA3. Maybe a data packet was corrupted and got misinterpreted? WPA3 is enabled in sdkconfig, though.
I'm afraid this is all the info from the log I have.
The access point uses WPA2, not WPA3. Maybe a data packet was corrupted and got misinterpreted? WPA3 is enabled in sdkconfig, though.
Seems the authmode is WIFI_AUTH_WPA2_WPA3_PSK, so esp_wpa3_hostap_task() is executed.
ESP32 is in STA mode. The access point is a router (set to WPA2 PSK CCMP).
Hey @kriegste there might be some confusion with the configuration because the backtrace indicates there is some problem while deinitialising softAP which will never take place if esp is in STA mode
That could be a hot lead! My app waits a few seconds and opens a softAP when the initial connect to the router fails. I closes it in case the connection to the router succeeds. That could have happened, but I did not keep the rest of the log...
Hey @kriegste can you please check your app, it shouldn't start softAP.
The app starts the softAP only as a fail-safe, if the initial STA connection fails.
Now I modified it to start/stop the softAP twice every minute and see what happens.
Answers checklist.
General issue report
I recently experienced a LoadProhibited panic during WiFi connect (to an access point using WPA2, not WPA3). Signal was very weak. I tried to reproduce the error, but did not succeed... I am mentioning this here nonetheless. Time will tell if it is useful.
ESP-IDF 5.1.4
The backtrace points to this line: https://github.com/espressif/esp-idf/blob/release/v5.1/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c#L505
EXCVADDR is 0, so evt was a NULL pointer, I guess.