greencoder / featherwing-random-mp3-player

A shuffling MP3 player using the Adafruit FeatherWing Music Maker
MIT License
0 stars 0 forks source link

Player stops after about an hour #1

Closed greencoder closed 2 years ago

greencoder commented 2 years ago

Here's the serial output:

09:55:48.438 -> Found 36 MP3 files
09:55:48.843 -> Playing file: /15.mp3
09:58:49.477 -> Music player is stopped.
09:58:50.165 -> Playing file: /23.mp3
09:58:52.282 -> 
09:58:52.282 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
09:58:52.282 -> 
09:58:52.282 -> Soft WDT reset
09:58:52.282 -> 
09:58:52.282 -> >>>stack>>>
09:58:52.282 -> 
09:58:52.282 -> ctx: cont
09:58:52.320 -> sp: 3ffffcc0 end: 3fffffc0 offset: 01a0
09:58:52.320 -> 3ffffe60:  00000020 00000000 0000000f 401010c4  
09:58:52.320 -> 3ffffe70:  00000020 3ffee700 3ffee6fb 40205be6  
09:58:52.320 -> 3ffffe80:  00000001 3ffee6e0 3ffee6e0 40205f4c  
09:58:52.320 -> 3ffffe90:  0003d090 00000001 3ffee748 4020a238  
09:58:52.320 -> 3ffffea0:  00000001 3ffee708 3ffee6e0 40205fc2  
09:58:52.320 -> 3ffffeb0:  3fffdad0 3ffee77c 00000000 40206004  
09:58:52.320 -> 3ffffec0:  00000001 00000000 3ffee6e0 40206169  
09:58:52.357 -> 3ffffed0:  4020a998 00000000 000003e8 40205c68  
09:58:52.357 -> 3ffffee0:  00000000 3ffefab8 3ffefaac 402021a8  
09:58:52.357 -> 3ffffef0:  00000000 00000000 3ffee748 00000000  
09:58:52.357 -> 3fffff00:  00000000 3ffee7a4 3fffff20 3ffee8c4  
09:58:52.357 -> 3fffff10:  3fffff40 00000020 3ffefa64 40100b86  
09:58:52.357 -> 3fffff20:  00000000 00000000 3fffff74 3ffee8c4  
09:58:52.357 -> 3fffff30:  3fffdad0 00000000 00000016 402012f3  
09:58:52.357 -> 3fffff40:  2e33322f 0033706d 000003e8 4020256c  
09:58:52.357 -> 3fffff50:  00000000 3ffefa20 3ffefa14 402021a8  
09:58:52.394 -> 3fffff60:  3ffefb80 3ffefb74 3ffee748 40206984  
09:58:52.394 -> 3fffff70:  3fffdad0 00000000 0015001f 00000000  
09:58:52.394 -> 3fffff80:  2e33322f 0033706d 07000000 40206ac0  
09:58:52.394 -> 3fffff90:  3fffdad0 00000000 3ffee8b0 40201322  
09:58:52.394 -> 3fffffa0:  3fffdad0 00000000 3ffee8b0 402076b8  
09:58:52.394 -> 3fffffb0:  feefeffe feefeffe 3ffe8640 40100e41  
09:58:52.394 -> <<<stack<<<
09:58:52.394 -> 
09:58:52.394 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
09:58:52.433 -> 
09:58:52.433 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
09:58:52.433 -> 
09:58:52.433 -> load 0x4010f000, len 3460, room 16 
09:58:52.433 -> tail 4
09:58:52.433 -> chksum 0xcc
09:58:52.433 -> load 0x3fff20b8, len 40, room 4 
09:58:52.433 -> tail 4
09:58:52.433 -> chksum 0xc9
09:58:52.433 -> csum 0xc9
09:58:52.433 -> v0004bc40
09:58:52.433 -> ~ld
09:58:54.244 -> Found 36 MP3 files
09:58:54.967 -> Playing file: /24.mp3
09:59:45.100 -> Music player is stopped.
09:59:45.994 -> Playing file: /28.mp3
09:59:59.714 -> 
09:59:59.714 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
09:59:59.714 -> 
09:59:59.714 -> Soft WDT reset
09:59:59.714 -> 
09:59:59.714 -> >>>stack>>>
09:59:59.714 -> 
09:59:59.714 -> ctx: cont
09:59:59.714 -> sp: 3ffffcc0 end: 3fffffc0 offset: 01a0
09:59:59.714 -> 3ffffe60:  00000020 00000000 0000000f 401010c4  
09:59:59.714 -> 3ffffe70:  00000020 3ffee700 3ffee6ea 40205be6  
09:59:59.714 -> 3ffffe80:  00000001 3ffee6e0 3ffee6e0 40205f4c  
09:59:59.714 -> 3ffffe90:  0003d090 00000001 3ffee748 4020a238  
09:59:59.714 -> 3ffffea0:  00000001 3ffee708 3ffee6e0 40205fc2  
09:59:59.749 -> 3ffffeb0:  3fffdad0 3ffee77c 00000000 40206004  
09:59:59.749 -> 3ffffec0:  00000001 00000000 3ffee6e0 40206169  
09:59:59.749 -> 3ffffed0:  4020a998 00000000 000003e8 40205c68  
09:59:59.749 -> 3ffffee0:  00000000 3ffefab8 3ffefaac 402021a8  
09:59:59.749 -> 3ffffef0:  00000000 00000000 3ffee748 00000000  
09:59:59.749 -> 3fffff00:  00000000 3ffee7a4 3fffff20 3ffee8c4  
09:59:59.749 -> 3fffff10:  3fffff40 00000020 3ffefa64 40100b86  
09:59:59.749 -> 3fffff20:  00000000 00000000 3fffff74 3ffee8c4  
09:59:59.786 -> 3fffff30:  3fffdad0 00000000 0000001b 402012f3  
09:59:59.786 -> 3fffff40:  2e38322f 0033706d 000003e8 4020256c  
09:59:59.786 -> 3fffff50:  00000000 3ffefa20 3ffefa14 402021a8  
09:59:59.786 -> 3fffff60:  3ffefb80 3ffefb74 3ffee748 40206984  
09:59:59.786 -> 3fffff70:  3fffdad0 00000000 0015001f 00000000  
09:59:59.786 -> 3fffff80:  2e38322f 0033706d 07000000 40206ac0  
09:59:59.786 -> 3fffff90:  00000000 00000000 3ffee8b0 40201322  
09:59:59.786 -> 3fffffa0:  3fffdad0 00000000 3ffee8b0 402076b8  
09:59:59.822 -> 3fffffb0:  feefeffe feefeffe 3ffe8640 40100e41  
09:59:59.822 -> <<<stack<<<
09:59:59.822 -> 
09:59:59.822 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
09:59:59.822 -> 
09:59:59.822 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
09:59:59.822 -> 
09:59:59.822 -> load 0x4010f000, len 3460, room 16 
09:59:59.822 -> tail 4
09:59:59.822 -> chksum 0xcc
09:59:59.822 -> load 0x3fff20b8, len 40, room 4 
09:59:59.822 -> tail 4
09:59:59.822 -> chksum 0xc9
09:59:59.857 -> csum 0xc9
09:59:59.857 -> v0004bc40
09:59:59.857 -> ~ld
10:00:01.651 -> Found 36 MP3 files
10:00:01.792 -> Playing file: /06.mp3
greencoder commented 2 years ago

Soft WDT reset sounds like the Watchdog timer: https://www.sigmdel.ca/michel/program/esp8266/arduino/watchdogs_en.html

greencoder commented 2 years ago

Here are the decoded stack results:

Decoding stack results
0x401010c4: _stopPWM(uint8_t) at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/core_esp8266_waveform_pwm.cpp line 264
0x40205be6: Adafruit_VS1053::spiwrite(unsigned char*, unsigned short) at /Users/snewman/Documents/Arduino/libraries/Adafruit_VS1053_Library-master/Adafruit_VS1053.cpp line 741
0x40205f4c: Adafruit_VS1053::playData(unsigned char*, unsigned char) at /Users/snewman/Documents/Arduino/libraries/Adafruit_VS1053_Library-master/Adafruit_VS1053.cpp line 452
0x4020a238: fs::File::read(unsigned char*, unsigned int) at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/FS.cpp line 73
0x40205fc2: Adafruit_VS1053_FilePlayer::feedBuffer_noLock() at /Users/snewman/Documents/Arduino/libraries/Adafruit_VS1053_Library-master/Adafruit_VS1053.cpp line 311
0x40206004: Adafruit_VS1053_FilePlayer::feedBuffer() at /Users/snewman/Documents/Arduino/libraries/Adafruit_VS1053_Library-master/Adafruit_VS1053.cpp line 290
0x40206169: Adafruit_VS1053_FilePlayer::startPlayingFile(char const*) at /Users/snewman/Documents/Arduino/libraries/Adafruit_VS1053_Library-master/Adafruit_VS1053.cpp line 265
0x40205c68: Adafruit_VS1053::spiwrite(unsigned char) at /Users/snewman/Documents/Arduino/libraries/Adafruit_VS1053_Library-master/Adafruit_VS1053.cpp line 725
0x402021a8: fs::FS::_defaultTimeCB() at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/FS.h line 249
0x40100b86: free(void*) at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/umm_malloc/umm_malloc.cpp line 595
0x402012f3: playRandomMp3File() at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/WString.h line 79
0x4020256c: sdfat::SdBase ::begin(unsigned char, unsigned int) at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/ESP8266SdFat/src/FatLib/FatVolume.h line 74
0x402021a8: fs::FS::_defaultTimeCB() at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/FS.h line 249
0x40206984: Print::write(char const*) at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Print.h line 59
0x40206ac0: Print::println(char const*) at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Print.cpp line 238
0x40201322: loop() at /Users/snewman/Dropbox/Code/arduino/random-mp3-player/Random_MP3_Player/Random_MP3_Player.ino line 50
0x402076b8: loop_wrapper() at /Users/snewman/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/core_esp8266_main.cpp line 201