multi-room example fails with "memory exhausted" on ESP32-S3-Korvo-2 V3.0

geedotk
Posts: 8
Joined: Sat Feb 04, 2023 9:39 pm

multi-room example fails with "memory exhausted" on ESP32-S3-Korvo-2 V3.0

Postby geedotk » Mon Mar 13, 2023 7:40 pm

I built the "multi-room" example using ESP-ADF release/v2.4 and ESP-IDF release/v4.4 and configured it for the ESP32-S3 on the ESP32-S3-Korvo-2 v3 board. I programmed it into the Korvo and the terminal showed "Slave start searching". However, when I press the PLAY or the REC button, I get error messages that say "Memory exhausted" and "Allocate buffer failed".
.
.
.
I (2793) MRM_CLIENT: Slave start searching...
I (77889) MRM_EXAMPLE: [ * ] [Play] input key event
I (78798) MRM_CLIENT: slave client task stoped
I (79502) HTTP_STREAM: total_bytes=2994349
I (79502) AUDIO_ELEMENT: [http-0x3fcf0e34] Element task created
I (79607) ESP_DECODER: Detect audio type is MP3
I (79607) MP3_DECODER: MP3 opened
E (79608) MP3_DE_LIB: /builds/adf/esp-adf-libs-source/esp_codec/esp-mp3/src/pvmp3_framedecoder.cpp:692 (pvmp3_InitDecoder): Memory exhausted
E (79619) MP3_DECODER: Allocate buffer failed. (line 294)
E (79625) AUDIO_ELEMENT: [DEC_auto] AEL_STATUS_ERROR_OPEN,-1
I (79631) ESP_AUDIO_TASK: Recv Element[DEC_auto-0x3fcf1608] MSG,type:20000,cmd:8,len:4,status:ESP_ERR_AUDIO_OPEN
E (79642) ESP_AUDIO_TASK: Got element[DEC_auto] error:ESP_ERR_AUDIO_OPEN, stop pipeline[0]
W (79652) AUDIO_ELEMENT: [DEC_auto] audio_element_on_cmd_error,7
I (79658) MP3_DECODER: Closed
W (79661) ESP_AUDIO_TASK: Destroy the old pipeline, ELEMENT OCCUR ERROR
W (79669) AUDIO_ELEMENT: [OUT_iis] Element has not create when AUDIO_ELEMENT_TERMINATE, tick:300
W (79678) AUDIO_ELEMENT: [Audio_forge] Element has not create when AUDIO_ELEMENT_TERMINATE, tick:300
W (79688) ESP_AUDIO_TASK: The old pipeline destroyed, ELEMENT OCCUR ERROR
I (79695) ESP_AUDIO_TASK: Recv Element[IN_raw-0x3fcf1164] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_STOPPED
I (79707) ESP_AUDIO_TASK: Received last pos: 0 bytes
I (79712) ESP_AUDIO_TASK: Recv Element[DEC_auto-0x3fcf1608] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_STOPPED
W (80203) AUDIO_ELEMENT: OUT-[IN_raw] AEL_IO_ABORT
I (80203) ESP_AUDIO_TASK: Recv Element[IN_raw-0x3fcf1164] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_STOPPED
W (80260) AUDIO_ELEMENT: OUT-[IN_raw] AEL_IO_ABORT
I (80261) ESP_AUDIO_TASK: Recv Element[IN_raw-0x3fcf1164] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_STOPPED
W (80266) AUDIO_ELEMENT: OUT-[IN_raw] AEL_IO_ABORT
.
.
.
These errors seem to come from the MP3 decoder module, which does not have source code, so I'm not sure how to troubleshoot this issue. Any ideas on finding out what's wrong?

Thanks!

tempo.tian
Posts: 39
Joined: Wed Jun 22, 2022 12:10 pm

Re: multi-room example fails with "memory exhausted" on ESP32-S3-Korvo-2 V3.0

Postby tempo.tian » Wed Mar 15, 2023 7:36 am

You can enable PSRAM to verify whether this issue fixed or not
idf.py menuconfig --> component config --> esp32s3-Specific --> Support for external SPI-connected RAM

also you can include "audio_mem.h"
audio_mem_print("", __LINE__, __func__); to print the detail memory information in code

Who is online

Users browsing this forum: No registered users and 56 guests