I’m getting this exact same issue. See I²S DAC and ESP32 - media player crashes ESP32 - #3 by johndoe47
I’ve tested with both the PCM5102A and MAX98357A I²S DAC, same issue. I have succesfully played audio with the MAX98357 using some Arduino example code so I know my hardware is fine.
This is where it hangs, and subsequently gets triggered by the watchdog and reboots:
[18:36:45][D][media_player:059]: 'ESPHome I2S Media Player' - Setting
[18:36:45][D][media_player:066]: Media URL: https://myHAservername.org:8123/media/local/test.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIxYzAwN2UyNjNjZjY0OThiYWM0ODg2NTRkNzIwMjAzYiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvR29sZGJhbmQgTm9vZGdldmFsIC0ga29ydC5tcDMiLCJwYXJhbXMiOltdLCJpYXQiOjE3MjQ1MTc0MDUsImV4cCI6MTcyNDYwMzgwNX0.mSTcRgyiAvdDu6_JUOsYyIHCwRxivQIBiPJOxI_jzzc
[18:36:45][W][component:214]: Component api took a long time for an operation (0.09 s).
[18:36:45][W][component:215]: Components should block for at most 20-30ms.
Any help on how to troubleshoot this would be very welcome!