music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.37k stars 52 forks source link

Playlist repeats even though repeat is off #2942

Open madbrain76 opened 1 month ago

madbrain76 commented 1 month ago

What version of Music Assistant has the issue?

2.3.0b25

What version of the Home Assistant Integration have you got installed?

None

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

A playlist repeats when it shouldn'

How to reproduce

  1. Load a playlist. I used an MA playlist made of Qobuz tracks
  2. Play it . I used a group of 2 Chromecast devices (WiiM Pro Plus)
  3. Listen to the end. It will play through, but then repeat.

In this latest occurrence, it seems that the last track of the playlist repeated many times. I can't say exactly which tracks repeated previously, but I have heard the repeat problem occur in the past, just not very frequently. Unfortunately, it is intermittent.

Music Providers

Qobuz (no other)

Player Providers

Chromecast, group of 2 . Have not tried others.

Full log output

ma_playlist_repeat.log

Additional information

No response

What version of Home Assistant Core are your running

2024.9.2

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Windows

OzGav commented 1 month ago

Please look at the troubleshooting page again for what we want in these reports to narrow this down.

madbrain76 commented 1 month ago

Please look at the troubleshooting page again for what we want in these reports to narrow this down.

I did. What am I missing ? Has something changed recently with the reporting guidelines ?

OzGav commented 1 month ago

Please include the following in ALL reports:

What music provider is in use when the problem is observed? What other music providers have you tried (if you have no others then make that clear) What player provider is in use when the problem is observed? What other player providers have you tried (if you have no others then make that clear) Are the players grouped? How is playback being instigated (e.g. automation or via the UI) If you aren't using HAOS then exactly how you have installed MA What is working (e.g. player works with music provider X but not Y) What you have tried from this page that hasn't helped

madbrain76 commented 1 month ago

I would suggest that these questions be included in the reporting template and/or form, as that is a long list.

I believe most of the information was provided, except how the playback was being instigated. It's via the UI, not automation.

With this being a fairly rare and intermittent problem, I can't really answer about what other player providers might or might not work. It is not an easily reproducible problem. It happened 2 days in a row, but before that it might have been a week or two.

OzGav commented 1 month ago

No the main thing of interest is what else you have tried. Those WiiMs have multiple protocols so you should have tried the others to see if this can be narrowed down

edit: And the third thing on the issue template directs you to the troubleshooting page to go through that and the open and closed issues

madbrain76 commented 1 month ago

The DLNA player provider is too dysfunctional for me to try.

That leaves Airplay. I will give it a try.

madbrain76 commented 1 month ago

So far, I didn't reproduce it with Airplay or an Airplay group, but I don't really think that means anything. I would have to use Airplay consistently for a week or two before I might be able to conclude.

OzGav commented 1 month ago

Then please continue to use AirPlay so this can be narrowed down

madbrain76 commented 1 month ago

Then please continue to use AirPlay so this can be narrowed down

I am doing that. However, my most frequently used device is a CCA, which doesn't support Airplay or DLNA. It's impossible to predict when I will be reproduce this, even on the device I reported it on.

I would strongly recommend reviewing the log I attached. It may be the best bet at understanding the problem for the foreseeable future.

madbrain76 commented 1 month ago

I am seeing another repeat issue. This time, the entire playlist repeats, not just the last track, repeated many times. This time, it's a Qobuz playlist, not an MA playlist.

It happened on my ungrouped CCA . There is no option to use Airplay or DLNA. Eventually, the playlist stopped on its own.

ma_playlist_repeat_2.log

OzGav commented 1 month ago

I think this is a Chromecast issue so please continue to monitor with your Airplay dvices where able.

Panoramiac commented 1 month ago

Today I had the same issue playing a local (network) mp3 album via DLNA on my Denon AVR-X1300W. The last track was repeated in a loop. The log shows nothing about this. Would enhanced logging help? The tracks are also not moved to the played list (need to check if another bug report was opened for this).

Edit: Here is a logfile showing the repeating play of the last track (DEBUG level). MusicAssistant3.log

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 7 days with no activity after asking for more info. Comment or this will be closed in 3 days.

OzGav commented 1 month ago

Keeping open

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 7 days with no activity after asking for more info. Comment or this will be closed in 3 days.

madbrain76 commented 3 weeks ago

More info was provided earlier. I'm currently abroad and without access to MA.

OzGav commented 3 weeks ago

Have you ever seen the problem occur with Airplay?

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 7 days with no activity after asking for more info. Comment or this will be closed in 3 days.

OzGav commented 2 weeks ago

Keeping open for another week but we need to nail down whether this is just a Cast issue or wider

Panoramiac commented 2 weeks ago

Keeping open for another week but we need to nail down whether this is just a Cast issue or wider

How can we support you? I uploaded the log file in my post above. In my case, I use DLNA and an AV receiver. So no Apple Airplay involved.

OzGav commented 2 weeks ago

@Panoramiac We need testing done which can show the behaviour is repeatable with one combination of player and music provider. So for example, in your case, use DLNA for 1-2 days and observe this keeps happening. Then switch to, for example, snapcast for 1-2 days and observe it never happens (or still happens!). Lets say it doesn't happen then go back to DLNA and try different music providers. Lets say it only happened with Spotify. Then go through and try single track, full album, full artist and a playlist. From this you should be able to nail down the specific combination of factors that cause this behaviour and then the devs can know where to look.

marcelveldt commented 1 week ago

@madbrain76 can you, as original issue poster, test if the latest version fixes the issue for you ?

Panoramiac commented 1 week ago

@Panoramiac We need testing done which can show the behaviour is repeatable with one combination of player and music provider. So for example, in your case, use DLNA for 1-2 days and observe this keeps happening. Then switch to, for example, snapcast for 1-2 days and observe it never happens (or still happens!). Lets say it doesn't happen then go back to DLNA and try different music providers. Lets say it only happened with Spotify. Then go through and try single track, full album, full artist and a playlist. From this you should be able to nail down the specific combination of factors that cause this behaviour and then the devs can know where to look.

Need to see when I will have time for this. Have a huge construction side at my house and my NAS is shut down.

madbrain76 commented 1 week ago

I will keep trying to reproduce with Airplay now that I'm back home. I did not see it occur prior to my travel except on Chromecast.

OzGav commented 1 week ago

Do try again with chromecast and see if it is still reproducible at least with that.

Panoramiac commented 1 week ago

@Panoramiac We need testing done which can show the behaviour is repeatable with one combination of player and music provider. So for example, in your case, use DLNA for 1-2 days and observe this keeps happening. Then switch to, for example, snapcast for 1-2 days and observe it never happens (or still happens!). Lets say it doesn't happen then go back to DLNA and try different music providers. Lets say it only happened with Spotify. Then go through and try single track, full album, full artist and a playlist. From this you should be able to nail down the specific combination of factors that cause this behaviour and then the devs can know where to look.

Currently, the playback stops after one track. Gues this is #3078, so we need to wait until this is fixed. Here is the log file:

MusicAssistant5.log

OzGav commented 1 week ago

@Panoramiac that issue should be resolved in the latest stable/beta

madbrain76 commented 6 days ago

Do try again with chromecast and see if it is still reproducible at least with that.

I have tried to reproduce, so far to no avail, regardless of the type of player. I'll keep trying.

OzGav commented 6 days ago

If you get to the point you are happy this is no longer occuring then please close this one.