QUERY · ISSUE
esp32: UDP broadcast via sendto causes memory leaks/ENOMEM error
port-esp32
I described this in the uP forum:
https://forum.micropython.org/viewtopic.php?f=18&t=5063&p=28953#p28953
on further investigation, I found that commenting out
https://github.com/micropython/micropython/blob/master/ports/esp32/modsocket.c#L485
made the problem disappear - by disabling the actual functionality of course. To my uninitiated eye, this looks like a SDK issue, but at the same time there seems to be some dependency to the gc calls as documented in the forum post. Any suggestions on to get to the bottom of this?
CANDIDATE · ISSUE
RP2: Out of memory with simple "requests" script
bugport-rp2
The following script causes OOM within 10 minutes on a Pico W whereas it runs without leaking memory on a Nano ESP32.
Both are using the same firmware 20230816-unstable-v1.20.0-379-ga18d62e06:
import gc, time
import urequests as requests
while True:
gc.collect()
print(gc.mem_free(), gc.mem_alloc())
telegram = "https://google.com"
requests.post(telegram)
time.sleep(60)