schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
332 stars 82 forks source link

Constant reboot #130

Closed valera39 closed 1 year ago

valera39 commented 1 year ago

Hi Wolle! After the last update, when choosing a station https://fffutu.re/Retro There is a constant reboot radio. It is not even possible to go to the web interface and choose another stream. 00:00:00 [0m 00:00:00 [33m [0m 00:00:00 [33m MiniWebRadio V2 [0m 00:00:00 [33m [0m 00:00:00 [0m 00:00:00 setup: .... Arduino is pinned to core [36m1[0m 00:00:00 tft_info: . init [36mILI9488[0m 00:00:01 setup: .... Init SD card[0m 00:00:01 [37msetup: .... SD card found[0m 00:00:02 setup: .... seek for stations.csv[0m 00:00:02 setup: .... stations.csv found[0m 00:00:02 setup: .... seek for WiFi networks[0m [0;32m[ 2613][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U[0m [0;32m[ 2627][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: Honor[0m [0;32m[ 2628][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_01[0m [0;32m[ 2635][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_02[0m [0;32m[ 2643][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_03[0m [0;32m[ 2650][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_04[0m [0;32m[ 2658][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_04[0m [0;32m[ 9127][I][WiFiMulti.cpp:114] run(): [WIFI] scan done[0m [0;32m[ 9127][I][WiFiMulti.cpp:119] run(): [WIFI] 5 networks found[0m [0;32m[ 9128][I][WiFiMulti.cpp:160] run(): [WIFI] Connecting BSSID: 2C:FD:A1:C2:44:F0 SSID: ASUS_A C66U Channel: 11 (-58)[0m [0;32m[ 9695][I][WiFiMulti.cpp:174] run(): [WIFI] Connecting done.[0m 00:00:09 WiFI_info: Connecting WiFi...[0m 00:00:09 setup: .... connected to [36mASUS_AC66U[37m, IP address is [36m192.168.1.133[0m 00:00:09 ftpServer: Buffers allocated: 4622 bytes[0m 00:00:09 rtime_info: Initializing SNTP[0m 00:00:09 rtime_info: Waiting for system time to be set... (1/10)[0m 00:00:11 rtime_info: Waiting for system time to be set... (2/10)[0m 23:37:38 rtime_info: 23:37:38[0m 23:37:38 audiotask: is pinned to core [36m1[0m 23:37:38 audiotask: priority is [36m2[0m 23:37:38 setup: .... Number of saved stations: [36m82[0m 23:37:38 setup: .... current station number: [36m71[0m 23:37:38 setup: .... current volume: [36m2[0m 23:37:39 VS1053 chipID = [36m-1350368918[37m, version = [36m3[0m 23:37:39 action: ... current volume is [36m2[0m 23:37:39 action: ... switch to station [36m71[0m 23:37:39 AUDIO_info: [32mConnect to new host: "https://fffutu.re/Retro"[0m 23:37:39 AUDIO_info: [32mSong stopped correctly after 0 msec[0m 23:37:39 AUDIO_info: [32mPSRAM found, inputBufferSize: 295903 bytes[0m 23:37:40 AUDIO_info: [32mSSL has been established in 597 ms, free Heap: 191664 bytes[0m 23:37:40 AUDIO_info: [32mredirect to new host "https://stream.zeno.fm/fs7e5zt06qzuv?*****"[0m 23:37:40 AUDIO_info: [32mConnect to new host: "https://stream.zeno.fm/fs7e5zt06qzuv?*****"[0m 23:37:40 AUDIO_info: [32mSong stopped correctly after 0 msec[0m Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception). Debug exception reason: Stack canary watchpoint triggered (audioplay) Core 1 register dump: PC : 0x40380173 PS : 0x00060636 A0 : 0x8037fcbf A1 : 0x3fca5df0 A2 : 0x3fc96c90 A3 : 0xb33fffff A4 : 0x0000cdcd A5 : 0x00060623 A6 : 0x00060623 A7 : 0x0000abab A8 : 0xb33fffff A9 : 0xffffffff A10 : 0x02c96c90 A11 : 0x00ffffff A12 : 0x803782df A13 : 0x3fca5f70 A14 : 0x02c96c90 A15 : 0x00ffffff SAR : 0x00000015 EXCCAUSE: 0x00000001 EXCVADDR: 0x00000000 LBEG : 0x400570e8 LEND : 0x400570f3 LCOUNT : 0x00000000

Backtrace:0x40380170:0x3fca5df00x4037fcbc:0x3fca5e30 0x4037e457:0x3fca5e50 0x4037e500:0x3fca5e90 0x403791b1:0x3fca5eb0 0x4037929d:0x3fca5ee0 0x42097689:0x3fca5f00 0x420976a3:0x3fca5f20 0x420733fb:0x3fca5f40 0x42071851:0x3fca5f60 0x42071911:0x3fca5f90 0x420702ee:0x3fca5fb0 0x4206b731:0x3fca60c0 0x4206b813:0x3fca6130 0x4206b85b:0x3fca61e0 0x4206b9c9:0x3fca6260 0x42067991:0x3fca6280 0x42067a62:0x3fca6430 0x42067b35:0x3fca6450 0x42067bfd:0x3fca64c0 0x420654c2:0x3fca64e0 0x420663da:0x3fca6510 0x42068c3c:0x3fca6560 0x420698d5:0x3fca65a0 0x4206a02f:0x3fca6790 0x4206811d:0x3fca68f0 0x42068310:0x3fca6920 0x4206331c:0x3fca6940 0x420610cd:0x3fca69e0 0x42061107:0x3fca6a00 0x420a13b9:0x3fca6a20 0x420a04f9:0x3fca6cc0 0x420a067a:0x3fca6d10 0x420bd025:0x3fca6d30 0x42014835:0x3fca6d50 0x42015355:0x3fca70f0 0x42015699:0x3fca7570 0x42015726:0x3fca7590 0x420039a2:0x3fca75b0

ELF file SHA256: 0000000000000000

Rebooting... �ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x420bbcf6 SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x43c load:0x403c9700,len:0xbec load:0x403cc700,len:0x2a3c SHA-256 comparison failed: Calculated: 3611f330726ad4edf64f62982b0568332a5800bc59425cab90be5379db92c108 Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Attempting to boot anyway... entry 0x403c98d8 [0;32m[ 1398][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled[0m ESP32 Chip: ESP32-S3 Arduino Version: 2.0.5 ESP-IDF Version: 4.4.2 ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)

And also pay attention to the message #128

schreibfaul1 commented 1 year ago

I have it too. I reduced the stack of the audio task. and that worked wonderfully, only at https://fffutu.re/Retro the stack is no longer sufficient. If you click on the question mark on the web page you can see the 'audiotask .. stackHighWaterMark: ' in the terminal, this is the minimum free value that was reached at some point. When the value goes to zero, Debug exception reason: Stack canary watchpoint triggered (audioplay) happens. I will restore the old value again. And thanks for reporting. As for #128, it's my turn. In the first step, no more file names separated by commas are transmitted to the web, but a JSON string. That's the way it is now, maybe it will help. This will be completely revised soon.

valera39 commented 1 year ago

Great job!