-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Hard fault crash when using HTTPServer:ESP32-C3 #9735
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
Comments
Is this a duplicate of #9460 ? |
@c--- The test program above generates continuous while True:
try:
server.poll()
except Exception as e:
print(type(e)) to print the type rather than the string form of the exception. You do need a server.start("0.0.0.0", 80) If I add that, I do indeed get a hard crash. But instead of using 0.0.0., use this: server.start(str(wifi.radio.ipv4_address)) In other words, for now, you need to specify the IP address specifically; |
What are the implications of this discovery for #9460 which was thought to be the same (or at least related) bug. That does not use the 0.0.0.0 address. |
I don't think these are the same after all, after looking into it further. |
Reproduced, but only on ESP32-C3. Test program: import wifi
import socketpool
from adafruit_httpserver import Server
import time
time.sleep(5)
print("IP addr", wifi.radio.ipv4_address)
pool = socketpool.SocketPool(wifi.radio)
server = Server(pool, debug=False)
# port 80 will get EADDRINUSE due to web workflow
# Either IP adddress will cause a crash eventually.
server.start("0.0.0.0", 8000)
#server.start(str(wifi.radio.ipv4_address), 8000)
while True:
try:
server.poll()
except Exception as e:
print(type(e)) Either I have reproduced this only on a QT Py ESP32-C3. I cannot reproduce on a QT ESP32-S3, with no PSRAM. I was hoping it might have been a storage leak. |
I'm closing this in favor of #9749. There are several red herrings above, which are irrelevant to the actual issue. |
EDIT: closed in favor of #9749
Originally posted by @c--- in #9173 (comment)
Adafruit CircuitPython 9.2.0-beta.1 on 2024-10-11; Maker Go ESP32C3 Supermini with ESP32-C3
As far as I can tell,
server.poll()
might be the cause.Currently using the following code.py that still crashes:
The text was updated successfully, but these errors were encountered: