Page 1 of 1

蓝牙音乐(a2dp_sink)长时间播放重启

Posted: Mon Mar 18, 2024 3:22 am
by im11926
开发基于的版本信息:

ESP-ADF:
commit fd32120a526c335e28074ae32f54e0dcacffb55e (origin/release/v2.4)
Merge: 30bd719 6a73b40
Author: Jason-mao <maojianxin@espressif.com>
Date: Wed Oct 26 12:08:42 2022 +0800

Merge branch 'bugfix/fix_lcd_init_delay_v2.4' into 'release/v2.4'

periph_lcd: Fix lcd cannot display properly (v2.4)

See merge request adf/esp-adf-internal!110

ESP-IDF:
commit 6d85d53ceec30c818a92c2fff8f5437d21c4720f
Merge: e26a02d783 a066de7fec
Author: Jiang Jiang Jian <jack@espressif.com>
Date: Thu Jul 28 16:06:56 2022 +0800

Merge branch 'bugfix/qatest_spp_crash_v4.4' into 'release/v4.4'

bugfix/qatest spp crash (v4.4)

See merge request espressif/esp-idf!19238

复现条件:长时间运行,时间不定,1-2天左右;本次复现运行46小时左右;

报错信息:

ASSERT_PARAM(1024 0), in rwbt.c at line 381
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x40091850: f01d020c 00004136 f01d0000
Core 0 register dump:
PC : 0x40091857 PS : 0x00060634 A0 : 0x80087159 A1 : 0x3ffc20fc
A2 : 0x00000000 A3 : 0x00000400 A4 : 0x00000000 A5 : 0x3f445cd0
A6 : 0x0000017d A7 : 0xfffffffc A8 : 0x8000814b A9 : 0x3ffc206c
A10 : 0x00000000 A11 : 0x3ffc208f A12 : 0x3ffc203b A13 : 0x00000031
A14 : 0x00000000 A15 : 0x3ffc2040 SAR : 0x00000004 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x40087061 LEND : 0x40087069 LCOUNT : 0x00000000


Backtrace:0x40091854:0x3ffc20fc |<-CORRUPTED


xtensa-esp32-elf-addr2line -pfiaC -e build/console.elf 0x40091854:0x3ffc20fc
0x40091854: r_assert at /home/luo/smbshare/esp32/esp-idf-v4.4.2/components/bt/controller/esp32/bt.c:2023


任务列表:
I (5564669) AUDIO_SYS: | Task | Run Time | Per | Prio | HWM | State | CoreId | Stack
I (5564669) AUDIO_SYS: | console_task | 3287 | 0% | 5 | 2112 | Running | 7fffffff | Intr
I (5564679) AUDIO_SYS: | esp_periph | 7738 | 0% | 5 | 1268 | Ready | 1 | Intr
I (5564689) AUDIO_SYS: | IDLE | 919741 |46% | 0 | 908 | Ready | 0 | Intr
I (5564709) AUDIO_SYS: | IDLE | 961346 |48% | 0 | 912 | Ready | 1 | Intr
I (5564719) AUDIO_SYS: | radar_task | 2782 | 0% | 6 | 2140 | Blocked | 7fffffff | Intr
I (5564729) AUDIO_SYS: | Tmr Svc | 689 | 0% | 1 | 3344 | Blocked | 0 | Intr
I (5564739) AUDIO_SYS: | tiT | 1145 | 0% | 18 | 376 | Blocked | 7fffffff | Intr
I (5564739) AUDIO_SYS: | radar_que | 0 | 0% | 6 | 3768 | Blocked | 0 | Extr
I (5564759) AUDIO_SYS: | ez_shadow_core | 0 | 0% | 11 | 3836 | Blocked | 1 | Intr
I (5564769) AUDIO_SYS: | ez_core_main | 19753 | 0% | 11 | 2236 | Blocked | 1 | Intr
I (5564779) AUDIO_SYS: | audio_a2dp_stre | 0 | 0% | 22 | 7428 | Blocked | 0 | Extr
I (5564789) AUDIO_SYS: | ipc0 | 0 | 0% | 22 | 888 | Blocked | 0 | Intr
I (5564799) AUDIO_SYS: | hciT | 0 | 0% | 22 | 1480 | Blocked | 1 | Intr
I (5564819) AUDIO_SYS: | BTU_TASK | 0 | 0% | 20 | 2092 | Blocked | 1 | Intr
I (5564819) AUDIO_SYS: | ipc1 | 1821 | 0% | 24 | 908 | Blocked | 1 | Intr
I (5564829) AUDIO_SYS: | esp_dispatcher | 3956 | 0% | 10 | 1876 | Blocked | 0 | Intr
I (5564839) AUDIO_SYS: | evt_poll | 4543 | 0% | 11 | 4812 | Blocked | 0 | Extr
I (5564849) AUDIO_SYS: | esp_timer | 1005 | 0% | 22 | 3136 | Suspended | 0 | Intr
I (5564869) AUDIO_SYS: | wifi | 14619 | 0% | 23 | 3056 | Blocked | 0 | Intr
I (5564879) AUDIO_SYS: | btController | 40069 | 2% | 23 | 2088 | Blocked | 0 | Intr
I (5564889) AUDIO_SYS: | i2s | 10781 | 0% | 23 | 788 | Blocked | 0 | Extr
I (5564889) AUDIO_SYS: | BTC_TASK | 0 | 0% | 19 | 1632 | Blocked | 1 | Intr
I (5564899) AUDIO_SYS: | sys_evt | 0 | 0% | 20 | 1808 | Blocked | 0 | Intr

Re: 蓝牙音乐(a2dp_sink)长时间播放重启

Posted: Thu Mar 21, 2024 11:47 am
by ESP_William
您好,

可以在出现 crash 时进入 GDB 模式进行调试,修改 menuconfig:Component config → ESP System Settings → Panic handler behaviour → 选择 GDBStub on panic

也请提供完整 log、运行的 example 或测试工程和 elf 文件以便分析。

Re: 蓝牙音乐(a2dp_sink)长时间播放重启

Posted: Fri Mar 22, 2024 3:41 am
by im11926
好的,这算是提供了一种可以分析问题的手段;另外我感觉是任务优先级配置问题,重新配置了任务优先级,正在测试验证;