← index #4029Issue #12278
Related · high · value 0.823
QUERY · ISSUE

esp32: UDP broadcast via sendto causes memory leaks/ENOMEM error

openby dir-abletonopened 2018-08-06updated 2020-06-11
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

closedby tacker66opened 2023-08-21updated 2023-08-30
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)

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied