- Code: Select all | TOGGLE FULL SIZE
MemoryError: memory allocation failed, allocating 2048 bytes
and
- Code: Select all | TOGGLE FULL SIZE
MemoryError: memory allocation failed, allocating 1784 bytes
I think those sporadic exceptions originate from PWMAudioOut.play and adding entries to a Dict, respectively.
If anyone else is suffering from the first 2048 byte one due to playing audio, I've written a class which offers some workarounds to avoid leaving the interal buffer de-allocated, see rps_audio.py.