ITADN

audio.setVolume crash after 3.4.5 update

#1272Closedewaca 创建于 2026-03-17
stale
E
ewacacommented
Hi, i'm facing a problem with setvolume function since 3.4.5 update. Here the code for volume change : ``` if(millis() - Previous_Vol_Millis>200) { Previous_Vol_Millis=millis(); if(audio.getVolume()-1>0) { tft->fillRect(40,100,240,40,BLACK); tft->drawRect(40,100,240,40,WHITE); tft->fillTriangle(45,125,75,125,75,110,WHITE); volume=audio.getVolume(); //Serial.println(volume); tft->setTextSize(1); tft->setFont(&FreeMonoBold12pt7b); tft->fillRect(80,105,30,30,BLACK); tft->setTextColor(WHITE); if(audio.getVolume()-1<10){ tft->setCursor(80,125);tft->print("0");tft->print(audio.getVolume()-1);} else{tft->setCursor(80,125);tft->print(audio.getVolume()-1);} tft->fillRect(110,113,140,10,BLACK); tft->fillRect(110,113,140*(audio.getVolume()-1)/21,10,ORANGE); audio.setVolume(audio.getVolume()-1); Current_volstate=volstate_; volstate_= !volstate_; } } ``` and the crash message : > Guru Meditation Error: Core 0 panic'ed (Coprocessor exception). > > Core 0 register dump: > PC : 0x4201d07e PS : 0x00060e31 A0 : 0x8201dcfb A1 : 0x3fc9f460 > A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000071 A5 : 0x00000000 > A6 : 0x000000de A7 : 0x000000ef A8 : 0x821575a1 A9 : 0x3fc9f510 > A10 : 0x3fca9d20 A11 : 0x0000006e A12 : 0x00000071 A13 : 0x00000071 > A14 : 0x0000000a A15 : 0x00000000 SAR : 0x0000000e EXCCAUSE: 0x00000004 > EXCVADDR: 0x00000000 LBEG : 0x42095220 LEND : 0x4209522b LCOUNT : 0x00000000 > > > Backtrace: 0x4201d07b:0x3fc9f460 0x4201dcf8:0x3fc9f570 0x42006322:0x3fc9f590 0x42157b35:0x3fc9f5c0 0x40375ed1:0x3fc9f5e0 0x40379f35:0x3fc9f600 0x4037b57f:0x3fcb3550 0x42164c6a:0x3fcb3570 0x40381f54:0x3fcb3590 > #0 0x4201d07b in Audio::calculateVolumeLimits() at .pio/libdeps/esp32s3/ESP32-audioI2S/src/Audio.cpp:6392 > #1 0x3fc9f460 in _xt_exception_table at ??:? > #2 0x4201dcf8 in Audio::setVolume(unsigned char, unsigned char) at .pio/libdeps/esp32s3/ESP32-audioI2S/src/Audio.cpp:6336 > #3 0x3fc9f570 in _xt_exception_table at ??:? > #4 0x42006322 in vol_minus() at src/mp3_Lib.cpp:571 > (inlined by) vol_minus() at src/mp3_Lib.cpp:549 > #5 0x3fc9f590 in _xt_exception_table at ??:? > #6 0x42157b35 in __onPinInterrupt at /home/ewaca/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-gpio.c:204 > #7 0x3fc9f5c0 in _xt_exception_table at ??:? > #8 0x40375ed1 in gpio_isr_loop at /home/ewaca/.platformio/packages/framework-espidf/components/esp_driver_gpio/src/gpio.c:494 > (inlined by) gpio_intr_service at /home/ewaca/.platformio/packages/framework-espidf/components/esp_driver_gpio/src/gpio.c:516 > #9 0x3fc9f5e0 in _xt_exception_table at ??:? > #10 0x40379f35 in _xt_lowint1 at /home/ewaca/.platformio/packages/framework-espidf/components/xtensa/xtensa_vectors.S:1240 > #11 0x3fc9f600 in _xt_exception_table at ??:? > #12 0x4037b57f in xt_utils_wait_for_intr at /home/ewaca/.platformio/packages/framework-espidf/components/xtensa/include/xt_utils.h:82 > (inlined by) esp_cpu_wait_for_intr at /home/ewaca/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:55 > #13 0x42164c6a in esp_vApplicationIdleHook at /home/ewaca/.platformio/packages/framework-espidf/components/esp_system/freertos_hooks.c:58 > > > > > > ELF file SHA256: 65738a19e > > Rebooting... > ESP-ROM:esp32s3-20210327 > Build:Mar 27 2021 > rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT) > Saved PC:0x4037fe20 > SPIWP:0xee > mode:DIO, clock div:1 > load:0x3fce2820,len:0x1024 > load:0x403c8700,len:0xaf0 > load:0x403cb700,len:0x2d24 > entry 0x403c8898 i have tried to downgrade to 3.4.4 and my code works fine. Thank you
关闭于 2026-05-02 4 条评论