Skip to content

RP2: Out of memory with simple "requests" script #12278

@tacker66

Description

@tacker66

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions