Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback stops after playing one song (Chromecast) #2887

Closed
1 task done
de666 opened this issue Sep 9, 2024 · 18 comments
Closed
1 task done

Playback stops after playing one song (Chromecast) #2887

de666 opened this issue Sep 9, 2024 · 18 comments
Labels
bug Something isn't working Chromecast

Comments

@de666
Copy link

de666 commented Sep 9, 2024

What version of Music Assistant has the issue?

2.3.0b20

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

2024.8.1

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

  • Yes

The problem

Playback on Chromecast stops after playing one or two track (two at most) on a google home mini device
No errors in the logfile

How to reproduce

  • Start playing a playlist on a chromecast device (google home mini)
  • Playback stops after playing the first or the second track

Music Providers

Filesystem

Player Providers

Chromecast (single player/device)

Full log output

No response

Additional information

No error present in the logfile
Worked well with the previous version (2.3.0b19), so it seems something related to version 2.3.0b20

What version of Home Assistant Core are your running

2024.9.1

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

@de666 de666 added the triage label Sep 9, 2024
@nikito
Copy link
Contributor

nikito commented Sep 11, 2024

Seeing the exact same here.

@SCBionicle
Copy link

Same here. Home Assistant OS, Generic x86-64, Hyper-V.

@jnleyva816
Copy link

Seeing the same thing. Came here to see if others were having a similar issue

@OzGav
Copy link
Contributor

OzGav commented Sep 11, 2024

Please confirm this is fixed in the next update

@OzGav
Copy link
Contributor

OzGav commented Sep 12, 2024

beta 21 has been released

@de666
Copy link
Author

de666 commented Sep 12, 2024

Solved in beta 21

@de666 de666 closed this as completed Sep 12, 2024
@nikito
Copy link
Contributor

nikito commented Sep 12, 2024

Unfortunately still happening for me on the latest beta 21. It gets through more songs than before, but eventually just stops itself just as before, with nothing in the log indicating a problem. Think this time it got through 3-4 songs before it stopped, versus before where it'd stop after 1-2.

@marcelveldt marcelveldt reopened this Sep 12, 2024
@nikito
Copy link
Contributor

nikito commented Sep 12, 2024

Checked log again, seems I might have missed a refresh. This is what I see when it stopped playing:
image
Hitting play resumed the queue and it it played 4 more songs before I paused it for a meeting. I will test it some more when I can and report back if I see anything useful. Possibly was just a fluke or glitch in Spotify?

@senderbell
Copy link

In my case playback stops always after 1 or 2 songs, then I need to hit play. Just like before.
Log is clear.

@nikito
Copy link
Contributor

nikito commented Sep 12, 2024

Have been testing a bit here and there throughout the day and it seems inconsistent for me. Sometimes several songs will go by before it stops, just now it stopped after a single song. Each time there's no errors in the log. The only thing I can see to correlate is that when it happens, there's a sync being shown in the log:
image
EDIT: Even that isn't always the case. I just had it happen a few moments ago and did not see any sync message in the log, so that may have just been a coincidence.

@drjjr2
Copy link

drjjr2 commented Sep 13, 2024

I am having the same problem with a Spotify playlist and a DLNA player. 2 songs then stops and I have to hit play to get it to continue. There is nothing in the logs when set to INFO level.
2.3.0b22
HA 2024.8.3

@nikito
Copy link
Contributor

nikito commented Sep 13, 2024

So just had it happen now after playing a bunch of songs, saw this in the log this time:
image

Gonna keep testing to see if I can run into the scenario where it stops without any log error again, and see if I can spot anything useful.

@nikito
Copy link
Contributor

nikito commented Sep 13, 2024

Ok, got it to happen again where it stops with no error in the log. Here's what I noticed:
image
It seems it goes to play the next song, but it doesn't get anywhere and appears in this state, as if it seems to think it already played?
Opening it up more, it looks like this:
image
What's odd is on the song's timeline, on the left it is showing 10:50, but on the right it is showing 03:49. The actual length of the song is 03:49, so think it is getting confused. the 10:50 is actually the length of the song that had played previously. I also notice if I go to the Played tab and try to see the last song, when I scroll to the bottom it resets the view back to the top, not letting me see the last song. Not sure if these are all related, but this is all the behavior I could observe. Hope this is helpful!

@marcelveldt
Copy link
Member

marcelveldt commented Sep 14, 2024

Can you retest with 3.2.0 beta 23 ?

@senderbell
Copy link

I listened to music for a few hours and I think everything is fine, but only with sound normalization turned off. With it turned on, it still stutters, but I feel like it's a bit less frequent than before.

@nikito
Copy link
Contributor

nikito commented Sep 14, 2024

Went fine for a while, then stopped again unfortunately. See this new message in the logs now:
2024-09-14 12:52:34.208 WARNING (MainThread) [music_assistant.spotify] librespot failed to stream track, retrying... (attempt 1/3)

@nikito
Copy link
Contributor

nikito commented Sep 14, 2024

Some more logging from another occurrence:
2024-09-14 14:40:41.941 WARNING (MainThread) [music_assistant.spotify] librespot failed to stream track, retrying... (attempt 1/3) 2024-09-14 14:40:42.693 WARNING (MainThread) [music_assistant.spotify] librespot failed to stream track, retrying... (attempt 2/3) 2024-09-14 14:40:43.198 WARNING (MainThread) [music_assistant.audio.media_stream] Stream error on spotify--jdi6zRXV://track/4Fyab3mqEyw5fcROY5sWve 2024-09-14 14:40:43.224 ERROR (MainThread) [music_assistant.streams] Error streaming QueueItem Serj Tankian - The Unthinking Majority (library://track/1765) to Workshop Music 2024-09-14 14:40:43.738 INFO (MainThread) [music_assistant.spotify] Attempt 1/5 failed: Token expired 2024-09-14 14:40:43.739 INFO (MainThread) [music_assistant.spotify] Retrying in 6 seconds...

@OzGav
Copy link
Contributor

OzGav commented Sep 16, 2024

@nikito your issue is being tracked here #2863

@senderbell please don’t introduce new problems to this issue. If the streaming doesn’t stop then this is resolved for you.

As the OP reports this as fixed this is being closed.

@OzGav OzGav closed this as completed Sep 16, 2024
@github-project-automation github-project-automation bot moved this from NOW to Done/verify in Music Assistant (V2) backlog Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Chromecast
Projects
Archived in project
Development

No branches or pull requests

8 participants