I have an ESP32 application that initializes WiFi in AP mode. Once a station (e.g. my laptop computer) connects to the AP, I get the following warning/error messages (via make monitor):
W (40074) event: unexpected system event 63!
E (40075) event: mismatch or invalid event, id=63
E (40075) event: default event handler failed!
SYSTEM_EVENT_AP_STACONNECTED
station:10:0b:a9:f0:33:94 join, AID=1
SYSTEM_EVENT_AP_STAIPASSIGNED
Note: The messages without the log prefix are from my application and show the expected system events before and after the error messages.
This happens since I updated my esp-idf from the master branch at January 4, 2019. Before that I was running with the version from master pulled at December 26, 2018. It did not happen back then. Only since I updated it on January 4, 2019 it happens. Looks like some changes pushed since December 28, 2018 causes this messages.
Other than these messages it does not cause any harm, at least I did not notice anything.
No warning/error messages in the log
W (40074) event: unexpected system event 63!
E (40075) event: mismatch or invalid event, id=63
E (40075) event: default event handler failed!
SYSTEM_EVENT_AP_STACONNECTED
station:10:0b:a9:f0:33:94 join, AID=1
SYSTEM_EVENT_AP_STAIPASSIGNED
Start WiFi in AP mode, then connect with another WiFi station to that network. As soon as the station got accepted, the messages appear.
W (40074) event: unexpected system event 63!
E (40075) event: mismatch or invalid event, id=63
E (40075) event: default event handler failed!
SYSTEM_EVENT_AP_STACONNECTED
station:10:0b:a9:f0:33:94 join, AID=1
SYSTEM_EVENT_AP_STAIPASSIGNED
For info: The same messages are shown in the log for issue https://github.com/espressif/esp-idf/issues/2915
Git bisect says the culprit is e3833999ea6bc622347f576afba13d62dc469208
@detly a new event has been added for ESP WiFi mesh only, but it also reported for IDF. We will disable this event if the ESP mesh is not enabled. The code will be merged into IDF soon...
Currently just ignore it, it doesn't impact the system.
@liuzfesp That's what it seemed like, thanks for confirming.
I have a esp32_devkitc_v4 board, I use wifi manager example "OnDemandConfigPortal.ino",when board start display info:
Starting
*WM:
*WM: Configuring access point...
*WM: OnDemandAP
*WM: AP IP address:
*WM: 192.168.4.1
*WM: HTTP server started
E (26277) event: mismatch or invalid event, id=63
E (26278) event: default event handler failed!
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Handle root
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x4011195c: 0008e0fe 00000000 ffffaa00
Core 0 register dump:
PC : 0x40111960 PS : 0x00060830 A0 : 0x80112796 A1 : 0x3ffb5570
A2 : 0x3ffc3a70 A3 : 0x3ffc8250 A4 : 0x3ffc82d8 A5 : 0x400df924
A6 : 0x3ffc3ca4 A7 : 0x3ffc82d8 A8 : 0x80111960 A9 : 0x3ffb5550
A10 : 0x00000000 A11 : 0x3ffc3a38 A12 : 0x00000006 A13 : 0x3ffc8280
A14 : 0x0000002f A15 : 0x3ffc8250 SAR : 0x00000010 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace: 0x40111960:0x3ffb5570 0x40112793:0x3ffb5660 0x401320a5:0x3ffb5680 0x400887ce:0x3ffb56d0 0x4008e749:0x3ffb5710
Rebooting...
ets Jun 8 2016 00:22:57
But same program in old board (esp32_devkitc_v1) is work fine.
@fanhuafeng please update your IDF to latest one.
@i-franzki @fanhuafeng Hi, would you help share if any updates for the issue? Has your issue been resolved? Thanks.
Updating the IDF solved the problem for me. The messages are no longer appearing.
@i-franzki Thanks for the feedback.
that's kind of a big bug for a wifi device (if you can't use it as an access point without crashing it). Any idea of a timeline on when the fix will make it to release version? (I use platformio and/or arduino and neither will post an update of idf until it hits release)
@treii28 It shouldn't cause a crash, just a spurious error message in the serial log. Is it possible your application is doing something else as a result of an unrecognised error?
How would I find out? Is there a call back available for when a device connects? My device reboots as soon as I try to connect. No additional messages. It happens after that error. I can add more debugging feedback, but I'm not sure where I could.
Hi @treii28 I also suspect the crash is related to your application code. Could you help to provide the crash log and the *elf file for analysis?
Most helpful comment
@detly a new event has been added for ESP WiFi mesh only, but it also reported for IDF. We will disable this event if the ESP mesh is not enabled. The code will be merged into IDF soon...
Currently just ignore it, it doesn't impact the system.