Skip to content

Allocation error when reading from usb_cdc above a certain size #10396

Open
@Neradoc

Description

@Neradoc

In 10.0.0 alpha 6, when reading a fixed number of bytes from usb_cdc above a certain size (7936) and above, a memory allocation error is thrown (from a new REPL). It doesn't happen with lower values.
This seems to start happening with #10264
Tested on a Clue too.

Adafruit CircuitPython 10.0.0-alpha.6 on 2025-05-17; SparkFun Pro Micro RP2040 with rp2040
>>> import usb_cdc
>>> data = usb_cdc.data.read(7936)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError: memory allocation failed, allocating 7937 bytes

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy