Skip to content

Memory allocation failed using adafruit_display_text.label #15

Closed
@lubarb

Description

@lubarb

On the Matrix Display & Matrix portal from Adabox 016 I get an error running the Custom Scrolling Quote Board Matrix Display example from [https://learn.adafruit.com/aio-quote-board-matrix-display].

With a feed set up with quotes:

"Gratitude is the art of seeing a gift in everything" -Unknown (Added on:2020-12-03)
"I see little of more importance to the future of our country & our civilization than full recognition of the place of the artist" -John F. Kennedy (Added on:2021-01-12)
"...save us from succumbing to the tragic temptation of becoming cynical" -Martin Luther King Jr. (Added on:2021-01-17)'

and using two colors, I get the error within a minute or two. The error occurs both when connected to MU and also after unplugging/replugging the display.

In PortalBase init.py if I replace

from adafruit_display_text.label import Label

with

from adafruit_display_text.bitmap_label import Label

the error no longer occurs.

Circuit Python 6.1.0
Libraries adafruit-circuitpython-bundle-6.x-mpy-20210225

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions