-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MemoryError MatrixPortal #6402
Comments
@makermelissa Do you know why this might happen? @Craigxyzzy so just m = mp(width=64, height=64, bit_depth=6) is enough to trigger it? Could you try some of the earlier 7.3.0 beta versions? Thanks. |
Maybe try decreasing the bit depth. This will reduce the number of possible colors, but also decrease memory usage. More information is available here: https://learn.adafruit.com/rgb-led-matrices-matrix-panels-with-circuitpython. |
m=mp(width=64,height=64,bit_depth=1) works 730b0 m=mp(width=64,height=64,bit_depth=2) fails 730b0 image looks improper on 64x64 matrix: works perfectly with 725, should also with 730... library files 2022-MAY-15 |
Yikes. Yeah, a bit_depth of 2 is very low and shouldn't be failing. |
This is failing really early, due to Protomatter (used by |
I figured this was in the correct place. The libraries are only a wrapper for helping to initialize it. |
It appears that there is more fragmentation starting in 7.3.0 than in 7.2.x. It is not clear why, but we started 7.3.0 immediately with the MicroPython 1.18 merge, and a build of the PR merge commit shows the problem. |
Success with cp730rc1 - Thank You @dhalbert @tannewt @makermelissa Closing issue. |
CircuitPython version
Code/REPL
Behavior
Traceback (most recent call last):
File "code.py", line 2, in
File "adafruit_matrixportal/matrixportal.py", line 97, in init
File "adafruit_matrixportal/graphics.py", line 67, in init
File "adafruit_matrixportal/matrix.py", line 192, in init
MemoryError:
Code done running.
Description
Works fine with cp725, fails with 730rc0
Additional information
MatrixPortal part 4745 & matrix part 3649
UF2 Bootloader v3.14.0 SFHWRO
Model: Matrix Portal M4
Board-ID: SAMD51J19A-MatrixPortal-v0
NINA firmware 174
The text was updated successfully, but these errors were encountered: