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

Google Music: playback stops at the end of a song and playlist stalls #489

Closed
tizonia opened this issue May 13, 2018 · 3 comments
Closed

Google Music: playback stops at the end of a song and playlist stalls #489

tizonia opened this issue May 13, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@tizonia
Copy link
Collaborator

@tizonia tizonia commented May 13, 2018

Description

Sometimes (e.g 1 in 5-10) songs, the playback stops at the end of a song, and the next song in the playlist is never reproduced. The player is alive since pressing 'n' or 'p' will make it continue playing songs.

Steps to Reproduce

  1. Use some Google Music search option.
  2. Leave it running alone for a few songs.
  3. At some point, playback stops at the end of a song, and the next song is not reprduced.

Expected behavior:
No interruptions in the playlist progress (the next song in the playlist is always reproduced).

Actual behaviour:
Sometimes the playback stops (e.g. 1 in 5-10 songs)

Reproduces how often:
Quite often. It has been seen with Raspbian and Ubuntu 18.04 amd64 bintray debs.

Versions

Version 0.14.0

Installation Method Used

Bintray debs

Additional Information

N/A.

@tizonia tizonia added the bug label May 13, 2018
@tizonia tizonia added this to the v0.15.0 milestone May 13, 2018
@ejiek
Copy link

@ejiek ejiek commented May 27, 2018

Same behaviour for AUR build.

I guess it's the same problem that 0.12.0 suffers from (only personal experience):

When track is long enough Google changes tracks link, so when tizonia tries to download the missing part it fails. 0.12.0 used to start playing next track when the current fails. 0.14.0 just stops.

@tizonia
Copy link
Collaborator Author

@tizonia tizonia commented May 28, 2018

Very good analysis.

There is a fix (12a1a87) in the develop branch that seems to remove the stalling problem. I have not released it yet because of lack of time. Hopefully, 0.15 will be out in the next couple of weeks with this fix.

juanrubio added a commit that referenced this issue Jun 6, 2018
@juanrubio
Copy link
Member

@juanrubio juanrubio commented Jun 6, 2018

Just an update on this issue:

The initial problem was fixed with 12a1a87. This makes the initial player stalling problem go away (which used to occur after 5-10 songs). However, after some more testing, it looks like the player still stalls, but it just takes longer, around 20-30 songs, until another issue shows up.

This new issue now appears to be in the lower layers, either libcurl, or GnuTLS:

libcurl : [SSL re-using session ID
libcurl : [gnutls_handshake() failed: An unexpected TLS packet was received.
libcurl : [stopped the pause stream!
libcurl : [Closing connection 28

I've currently updated Tizonia's logic to retry the libcurl download, but unfortunately, the gnutls_handshake error keeps showing up. So there is something that seems broken at that point in the underlaying software which renders the scenario unrecoverable.

I'm currently discussing this issue in the curl-library mailing list:
https://curl.haxx.se/mail/lib-2018-06/0035.html
https://curl.haxx.se/mail/lib-2018-06/0038.html
https://curl.haxx.se/mail/lib-2018-06/0045.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants