-
Notifications
You must be signed in to change notification settings - Fork 452
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
Spotifyd crash on track loading #1300
Comments
heres a --verbose output: ound interface Interface { name: "enp2s0", addr: V6(Ifv6Addr { ip: fd38:45dc:9764:5d49:27f0:4394:456d:e7d5, netmask: ffff:ffff:ffff:ffff::, broadcast: None }) } Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it. Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it. |
digging further into this it seems like a few endpoint on Spotify's side are having problems. |
ok - recompiling latest using a locally built version of the librespot dev branch seems to work - librespot has fixed it in dev branch but it is not working in any of the releases. |
What does it mean for using Spotifyd? Is it possible to fix the problem by changing a version or edit something in the configuration? |
For anyone having an issue with spotifyd skipping or crashing on any new tracks.
replace pulse-backend with alsa-backend if you don't use pulse in the command above Other backends can be compiled and found here:
assuming you previously setup Spotifyd
Adapted from the instructions on: |
Had the same issue and had to install librespot 0.5.0dev on a Raspberry Pi 3 with Debian Bullseye.
and then export your new PATH variable
Then I could go and use
To build the latest librespot, then it's like @whisperzer0 already mentioned, you can run librespot in client mode (no daemon mode AFAIK) |
In step two you want to specify the 'pulseaudio-backend' feature, otherwise you get an error. Following this method I got HTTP 403 errors with librespot. What did fix things for me was pulling the sources and updating the librespot dependencies to version '0.4.2' instead of '0.4'. Rebuilding spotifyd allowed me to play music again. diff --git a/Cargo.toml b/Cargo.toml
index 71a3cd0..8093137 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,11 +28,11 @@ structopt = "0.3.17"
tokio = {version = "1.26.0", features = ["signal", "rt-multi-thread", "process", "io-std"] }
tokio-stream = "0.1.7"
url = "2.2.2"
-librespot-audio = { version = "0.4", default-features = false }
-librespot-playback = { version = "0.4", default-features = false }
-librespot-core = { version = "0.4" }
-librespot-discovery = { version = "0.4" }
-librespot-connect = { version = "0.4" }
+librespot-audio = { version = "0.4.2", default-features = false }
+librespot-playback = { version = "0.4.2", default-features = false }
+librespot-core = { version = "0.4.2" }
+librespot-discovery = { version = "0.4.2" }
+librespot-connect = { version = "0.4.2" }
toml = "0.7"
color-eyre = "0.6"
directories = "5.0.1" |
mb, thanks for the heads-up. I've edited my post to rectified this. |
Confirmation here, |
Unfortunately not for long it seems… the issue is back for me. |
Check that youre not running the old one by mistake - works perfectly here |
heres a log when running the debug versions on ubuntu 24.04
./spotifyd --no-daemon
Loading config from "/etc/spotifyd.conf"
No username specified. Checking username_cmd
No username_cmd specified
No password specified. Checking password_cmd
No password_cmd specified
No proxy specified
Using software volume controller.
no usable credentials found, enabling discovery
Connecting to AP "ap2-gew4.spotify.com:443"
Authenticated as "114433150" !
Cannot save credentials to cache: Permission denied (os error 13)
Mixing with softvol and volume control: Log(60.0)
Country: "DK"
Using AlsaSink with format: S32
Cannot save volume to cache: Permission denied (os error 13)
Fetching autoplay context uri
Loading with Spotify URI spotify:track:4nnTUfKDl2XkwvHjZHmT6E
No autoplay_uri found
AutoplayError: MercuryError
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 191170311859469426423200040418154113560, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:3fHjx3ruK4a1OYPoKP80XR
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 142081239768991894398514149858183474223, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:610xMaOMK9GylOrNXNY86R
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 262756127457373075864999440008083417689, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:4ss7wUyzuLH26NvOBJjFuq
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 154851299808813996972192064036997059478, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:1wLGaZpnYpcFggvtmCPWUh
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 66757529502991446537255787334206295889, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:61gEaXyQAtYaBcJxyYdmc9
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 262939086924336323811252190799368775457, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:4ZwQ1QuIs43sekpZpsTeo6
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 39129898436559754098773695821424276475, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:1g7tqO5lzjQIQxdVZapBwf
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 55029952434040089990374237913439267675, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:2kRDxvlF2LyVkAx94UQPhT
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 102046387578937613867729659504398016833, audio_type: Track }>: ()
Loading with Spotify URI spotify:track:2Fsv6m5KIkPld2uWx7i6Kh
channel error: 2 0
Unable to load encrypted file: ChannelError
Skipping to next track, unable to load track <SpotifyId { id: 116553691544993384063498060646856169101, audio_type: Track }>: ()
No context to update from!
The application panicked (crashed).
Message: Map must not be polled after it returned
Poll::Ready
Location: /home/kk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.28/src/future/future/map.rs:62
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
The application panicked (crashed).
Message: called
Option::unwrap()
on aNone
valueLocation: src/main_loop.rs:196
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Player thread Error: Any { .. }
The text was updated successfully, but these errors were encountered: