ESP32-ADF LyraT board运行dueros例程:出现错误 RSP_FILTER: Allocate memory failed,line:57,然后直接进入gdb调试,程序崩溃!

shellbingo
Posts: 2
Joined: Thu Sep 13, 2018 9:04 am

ESP32-ADF LyraT board运行dueros例程:出现错误 RSP_FILTER: Allocate memory failed,line:57,然后直接进入gdb调试,程序崩溃!

Postby shellbingo » Thu Sep 13, 2018 11:59 am

乐鑫的各位工程师:
大家好!这边是我在调试ESP32-ADF LyraT board的dueros例程时遇到问题,想请教一下是什么原因?谢谢!

按照工程README里所说配置好工程
DuerOS3.0 Example
This example shows how to use ADF APIs to connect DuerOS3.0 To run this example you need ESP32 LyraT or compatible board:
Setup Wi-Fi SSID and Password.
Connect speakers or headphone to the board.
Select your DuerOS device profile instead of ADF_APTH/examples/dueros/main/duer_profile. If you don't have a DuerOS device profile, please refer to DuerOS Developer Certification Guide and apply for a DuerOS Developer Account.
Note:
DuerOS profile is device unique ID.
This example size of binary image is 1.3MB, please use ADF_APTH/examples/dueros/partitions_singleapp.csv instead of IDF_PATH/components/partition_table/partitions_singleapp.csv.

工程编译烧写成功。
但是按下REC键,说完话后,就直接报错了,程序崩溃了,就进入gdb调试

显示错误信息为:

I (13723) AUDIO_ELEMENT: [resample] AEL_MSG_CMD_RESUME,state:1
I (13724) AUDIO_PIPELINE: Pipeline started
input and output channel must be 1 or 2 channelE (13734) RSP_FILTER: Allocate memory failed,line:57
W (13492,tid:3ffc5f9c) lightduer_events.c( 80): [lightduer_ca] <== event end = 0x40137ebc, timespent = 301
0x40137ebc: duer_engine_data_available at ??:?

E (13744) AUDIO_ELEMENT: [resample] AEL_STATUS_ERROR_OPEN
I (13760) RSP_FILTER: rsp_filter_close
Guru Meditation Error: Core 0 panic'ed (LoadProhibited)
. Exception was unhandled.
Register dump:
PC : 0x4015c527 PS : 0x00060230 A0 : 0x8015b25d A1 : 0x3ffe6290
0x4015c527: resample_close at /Users/maojianxin/duros/esp-adf-libs-source-dev/esp_codec/./resample/resample.c:602

A2 : 0x00000000 A3 : 0x3ffb6e40 A4 : 0x3f4226e0 A5 : 0x0000001f
A6 : 0x00000001 A7 : 0x00000003 A8 : 0x80086ccc A9 : 0x3ffe6230
A10 : 0x00000032 A11 : 0x3ffe6450 A12 : 0x3ffe6270 A13 : 0x0000000c
A14 : 0x00000000 A15 : 0x00000003 SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000008 LBEG : 0x40093b31 LEND : 0x40093b41 LCOUNT : 0xfffffffd
0x40093b31: strlen at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/strlen.S:84

0x40093b41: strlen at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/strlen.S:96

Backtrace: 0x4015c527:0x3ffe6290 0x4015b25a:0x3ffe62b0 0x40133ba5:0x3ffe62d0 0x40134a8b:0x3ffe6300 0x401344cd:0x3ffe6340
0x4015c527: resample_close at /Users/maojianxin/duros/esp-adf-libs-source-dev/esp_codec/./resample/resample.c:602

0x4015b25a: rsp_filter_close at /home/hugo/esp32/esp-adf/components/esp-adf-libs/esp_codec/filter_resample.c:97

0x40133ba5: audio_element_on_cmd at /home/hugo/esp32/esp-adf/components/audio_pipeline/./audio_element.c:663

0x40134a8b: audio_event_iface_waiting_cmd_msg at /home/hugo/esp32/esp-adf/components/audio_pipeline/./audio_event_iface.c:243 (discriminator 1)

0x401344cd: audio_element_task at /home/hugo/esp32/esp-adf/components/audio_pipeline/./audio_element.c:663

Entering gdb stub now.
$T0b#e6GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-build_pc-linux-gnu --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/hugo/esp32/esp-adf/examples/dueros/build/esp_dueros.elf...done.
Remote debugging using /dev/ttyUSB0
resample_close (user_data=0x0) at /Users/maojianxin/duros/esp-adf-libs-source-dev/esp_codec/./resample/resample.c:602
602 /Users/maojianxin/duros/esp-adf-libs-source-dev/esp_codec/./resample/resample.c: No such file or directory.
(gdb) q
A debugging session is active.
Attachments
zc1.png
zc1.png (238.75 KiB) Viewed 16890 times
zc.png
zc.png (215.22 KiB) Viewed 16890 times
cuowu.png
cuowu.png (154.47 KiB) Viewed 16890 times


jinyuewuyu1
Posts: 2
Joined: Sun Oct 07, 2018 2:09 pm

Re: ESP32-ADF LyraT board运行dueros例程:出现错误 RSP_FILTER: Allocate memory failed,line:57,然后直接进入gdb调试,程序崩溃!

Postby jinyuewuyu1 » Sun Oct 07, 2018 2:20 pm

请问解决了吗?我也遇到了相同的问题。

ESP_William
Posts: 131
Joined: Tue Apr 24, 2018 5:54 am

Re: ESP32-ADF LyraT board运行dueros例程:出现错误 RSP_FILTER: Allocate memory failed,line:57,然后直接进入gdb调试,程序崩溃!

Postby ESP_William » Fri Oct 19, 2018 10:23 am

烦请查看一下是否是 Psram 没开,
需要在 muenconfig 中 Check 一下,support for external,SPI-connected RAM 是否打开?
或者直接使用默认的 config 配置(把工程中的 config 直接复制改名直接用)

dcknightdc
Posts: 1
Joined: Tue Oct 30, 2018 10:52 am

Re: ESP32-ADF LyraT board运行dueros例程:出现错误 RSP_FILTER: Allocate memory failed,line:57,然后直接进入gdb调试,程序崩溃!

Postby dcknightdc » Tue Oct 30, 2018 10:55 am

确认过,sdkconfig里打开了对psram的支持

jason.mao
Posts: 98
Joined: Mon Nov 19, 2018 2:05 am

Re: ESP32-ADF LyraT board运行dueros例程:出现错误 RSP_FILTER: Allocate memory failed,line:57,然后直接进入gdb调试,程序崩溃!

Postby jason.mao » Thu Nov 22, 2018 9:05 am

这个问题,你可以稳定重现吗?

jason.mao
Posts: 98
Joined: Mon Nov 19, 2018 2:05 am

Re: ESP32-ADF LyraT board运行dueros例程:出现错误 RSP_FILTER: Allocate memory failed,line:57,然后直接进入gdb调试,程序崩溃!

Postby jason.mao » Thu Nov 22, 2018 9:42 am

刚修复了一个解码库的问题,对这个问题有帮助.
把components/ esp-adf-libs拉到最新的master 分支,具体commit ID:d9fbd0d2e07b074e396a8eda2ec65641bbdb2f36.

Who is online

Users browsing this forum: No registered users and 35 guests