mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #336] Not playing/hangs on next song #221
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @peterdk on GitHub (May 23, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/336
In one of my playlists I keep hitting the issue that the last 3 songs of my playlist fail to play. On Spotify OSX I have selected Librespot running on my RPi. When it reaches the song in the interface before the failing ones it just doesn't go to the next and keeps hanging on the last one. When I select the next song it starts 'playing', but Librespot doesn't log the new song and though the progressbar moves in Spotify, there is no audio.
I also tried running Librespot with --verbose, but nothing is outputted.
Is this due to CDN for example? Can I get more debug output out of Librespot?
I am using Raspotify compiled with the current master of Librespot.
@peterdk commented on GitHub (May 23, 2019):
Here it played the first 2 songs ok, and then hangs at the end in Spotify and won't go to the new one. Nothing in the log indicating that something goes wrong.
And when clicking the next song in Spotify, it 'plays' it in the interface, but nothing really happening.
And finally, when stopping Librespot, it hangs and won't respond to CTRL-C.
@michaelherger commented on GitHub (Jun 4, 2019):
What bitrate are you using? I've got a report of a track which would not play if librespot was told to stream in 320kbps, but the track wasn't available in that bitrate (for whatever reason). What if you run librespot with
--bitrate=96? Would it get past your tracks?The track I was reported was
spotify:track:4NYe98w8kYWN2BMhiUIuzq- would this show the same issue as you're seeing?@peterdk commented on GitHub (Jun 5, 2019):
I indeed am using 320kbps. I switched to 96kbps and it actually seems to solve the issue. It now progresses to the next track. Will test a bit more. Unfortunately it's not a solution since I want to keep using 320kbps, but definitely a hint to what is causing it.
@peterdk commented on GitHub (Jun 12, 2019):
@michaelherger I added the mentioned track to my playlist, but at 320kbps there seems no issue with that specific track.
@michaelherger commented on GitHub (Jun 12, 2019):
Correct: the user who reported the issue to me confirmed that it started working again after a few days.
@gddl commented on GitHub (Jul 2, 2019):
I had a similar issue when booting up the (headless) RPi and when skipping songs too fast. The progress bar in the spotify app was moving but librespot just hung. Sometimes it took minutes to load the track and to start playing.
Then I noticed that the kernel ran out of entropy for the /dev/random RNG which is probably used by librespot for Diffie-Hellman key generation (reading from /dev/random blocks until enough entropy is available). I could solve the issue by installing rng-tools and setting up rngd (it uses RPi's HW-RNG to feed the kernel entropy pool).
@willstott101 commented on GitHub (Nov 23, 2019):
I believe this should be properly fixed since https://github.com/librespot-org/librespot/pull/381 as we noticed this issue more consistently with podcasts which often don't have high qualities available.
My solution was:
github.com/ashthespy/librespot@ee3a756a6e/playback/src/player.rs (L544)@peterdk commented on GitHub (Nov 23, 2019):
Great, I compiled and now it runs perfectly on those songs. Thanks for your work!