You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A program mentioned in the thread above happens to trigger a MemoryError in recent 10.0.0 alpha builds. Very slight changes cause the error to go away. This seems like it might be some kind of edge case related to the recent gc changes.
Program is below. This is running on a CPX with 10.0.0-alpha.6. As is, it causes:
dhalbert
changed the title
MemoryError which goes away when program is changed slightly.
MemoryError goes away when program is changed slightly
May 18, 2025
After some more thorough testing, this appears just to be a program that is too big. The current behavior is a bit idiosyncratic, but when re-testing on a Metro M0, it's clear that a slightly smaller or larger program affects whether the MemoryError occurs.
From https://forums.adafruit.com/viewtopic.php?t=218315
A program mentioned in the thread above happens to trigger a
MemoryError
in recent 10.0.0 alpha builds. Very slight changes cause the error to go away. This seems like it might be some kind of edge case related to the recent gc changes.Program is below. This is running on a CPX with 10.0.0-alpha.6. As is, it causes:
If the line
### a=1 ### uncommenting this causes MemoryError to go away
is uncommented, the error does not occur.
code.py:
The text was updated successfully, but these errors were encountered: