earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
2.05k stars 435 forks source link

Free Heap memory is full #485

Closed linh-danh-thue-KN closed 2 years ago

linh-danh-thue-KN commented 2 years ago

image

earlephilhower commented 2 years ago

Without something (code, explanation of problem), there's nothing here that makes much sense, sorry.

Martin-Laclaustra commented 2 years ago

@linh-danh-thue-KN @earlephilhower I think that I remember finding that there is a small memory leak related to the string that defines the file to play. I can not give a lot of detail right now, but I think that completely deleting the FileSource object and recreating it each time solved the leak. Earle, please tell me if you would be interested in more detail about this and I could try to rescue my old code in which I tested it.