#Audio playing, but player shows idle in 2.7.2

1 messages · Page 1 of 1 (latest)

chrome horizon
#

Since updating to 2.7.2, the player will sometimes show that it has gone from playing to idle, but the audio continues to play over Airplay to my WiiM device; even going on to the next song in the queue for hours.

Config info: The music provider in use is Spotify. Smart fades is disabled, volume normalization is on. Using Airplay 1 with encryption, no compression, and no device password. Deployment is using the provided Docker Compose YAML file.

I've only seen it happen when a new song starts. Most of the time, but not always, when sending a new Spotify playlist ID to Music Assistant from Home Assistant using a 'clear playlist, play media playlist X, and turn on shuffle' sequence. If the sequence runs again for a new playlist, then it typically starts to show a playing status again.

Tried from a fresh deployment and was able to reproduce the same thing. Can't say for certain what version I came from where this wasn't an issue, but it would have been a release from late November.

In the latest example, I was able to grab this from the logs right after it happened:

2025-12-30 19:04:15.009 WARNING (MainThread) [music_assistant.player_queues] Queue WiiM Pro-DC12 has no current index
2025-12-30 19:04:16.452 INFO (MainThread) [music_assistant.player_queues] Fetching tracks to play for playlist Jazz for Reading
2025-12-30 19:04:18.204 INFO (MainThread) [music_assistant.streams] Start Queue Flow stream for Queue WiiM Pro-DC12 - crossfade: disabled
2025-12-30 19:04:19.584 INFO (MainThread) [music_assistant.airplay] AirPlay device connected. Starting playback.

Using a combination of 'media player stop, media player start' from Home Assistant to the entity, it typically fixes the issue for a while. If that is done, then it picks back up from starting the last song that was last showing as playing on the player.

coarse beacon
#

I've seen this issue as well a while ago, but haven't recently. The real question is why MA stops tracking progress, this is what we need to find. The music starting from last song that was showing is a side effect of the above.

Could you set your airplay provider to debug so we have a bit more info to go from? Also, it would be very helpful if you somehow see a pattern which we can use to reliably reproduce this

pallid goblet
#

I think this is the cause of the audio playing/player shows idle issue I’ve had as well. I have several scripts set up to play certain playlists/radio_mode playlists. I’ll try to figure out how to recreate as well and turn on airplay debug

chrome horizon
pallid goblet
#

Are you playing to one WiiM or a group, Dev?

chrome horizon
#

Just one device

chrome horizon
#

Ok, just happened with the debug logs. Starts a line 9 (including those before to show nothing was logged before the 'no current index' line.

#

Think I need to bump the logs to verbose?

pallid goblet
#

Just had it happen--had some other issues that I think were related to playback on my HomePods. Going to ditch them for now. Will turn on verbose logging and see if I can get this issue to reappear and attach logs

pallid goblet
coarse beacon
pallid goblet
#

I can recreate my "audio playing but player shows idle" issue by playing music via a script like this:

sequence:

  • action: music_assistant.play_media
    data:
    media_id: spotify://artist/2sG4zTOLvjKG1PSoOyf5Ej?si=eJGCSf-hRBOM2L2lzZOGGw
    media_type: artist
    enqueue: replace
    radio_mode: true
    target:
    entity_id: media_player.everywhere
    alias: Play Brandi Carlile Radio
    mode: single
    icon: mdi:music-clef-treble
    description: ""
#

Will search for and then create an issue on github

#

If I already have a queue going and run that script, then my audio plays but player shows idle. If I restart MA and run that script, it works fine. Running another script then causes the same issue

pallid goblet
pallid goblet
# chrome horizon Just one device

Sorry to ping you. But I added some more details to my Github issue here--curious if you can repeat any of the issues I've shown.

I can repeat this issue by having music playing and then starting a song/album/playlist radio to that same player