You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hard Fault after successful mDNS Query and program exit #10197
Confirmed after storage.erase_filesystem() reset with no libraries loaded
Description
Running without services = mdns_svr.find(service_type="_mqtt", protocol="_tcp", timeout=5) results in expected behavior, have not tested with alternate sleep modes
Additional information
Specifically ESP32S2 w/ BME280 sensor and 2.13" HD Tri-Color eInk display attached. However, these devices are not interacted with when triggering the fault
I got a simpler version to crash with CircuitPython 10.3.0-alpha.4 on Metro ESP32-S2 and S3. No deep sleep is necessary.
Note that mdns_svr.find() must find something to cause a crash. If no matching service_type is found, it will not crash. _companion-link is advertised by various Apple devices, so it's easy to find.
importmdnsimporttimeimportwifi# settings.toml has autoconnect settingstime.sleep(2) # wait long enough to see printsmdns_svr=mdns.Server(wifi.radio)
services=mdns_svr.find(service_type="_companion-link", protocol="_tcp", timeout=5)
time.sleep(2)
print("done")
Note that the program finishes, and then there is a crash. So it's probably something about cleaning up when the VM exits. Maybe a gc'd object is referenced or similar.
Activity
[-]Hard Fault after mDNS Query and Deep Sleep[/-][+]Hard Fault after successful mDNS Query and program exit[/+]dhalbert commentedon Jul 24, 2026
I got a simpler version to crash with CircuitPython 10.3.0-alpha.4 on Metro ESP32-S2 and S3. No deep sleep is necessary.
Note that
mdns_svr.find()must find something to cause a crash. If no matchingservice_typeis found, it will not crash._companion-linkis advertised by various Apple devices, so it's easy to find.Note that the program finishes, and then there is a crash. So it's probably something about cleaning up when the VM exits. Maybe a gc'd object is referenced or similar.
Output