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 failures #1321

Closed
kieransouth opened this issue Sep 2, 2024 · 1 comment
Closed

Playback failures #1321

kieransouth opened this issue Sep 2, 2024 · 1 comment
Labels

Comments

@kieransouth
Copy link

kieransouth commented Sep 2, 2024

Describe the bug
Librespot playback no longer working on any song.

To reproduce
Steps to reproduce the behavior:

  1. Launch librespot --cache . --verbose
  2. Open Spotify desktop and choose Librespot as the output device
  3. See errors as the songs fail to load

Log

[2024-09-02T10:24:05Z INFO  librespot] librespot 0.4.2 UNKNOWN (Built on 2024-08-19, Build ID: S2mLXqG9, Profile: release)
[2024-09-02T10:24:05Z TRACE librespot] Command line argument(s):
[2024-09-02T10:24:05Z TRACE librespot]          cache "."
[2024-09-02T10:24:05Z TRACE librespot]          verbose
[2024-09-02T10:24:05Z TRACE librespot] Using cached credentials.
[2024-09-02T10:24:05Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:52451
[2024-09-02T10:24:05Z INFO  librespot_core::session] Connecting to AP "ap2-gew1.spotify.com:4070"
[2024-09-02T10:24:05Z INFO  librespot_core::session] Authenticated as "<redacted>" !
[2024-09-02T10:24:05Z DEBUG librespot_core::session] new Session[0]
[2024-09-02T10:24:05Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2024-09-02T10:24:05Z DEBUG librespot_connect::spirc] new Spirc[0]
[2024-09-02T10:24:05Z DEBUG librespot_connect::spirc] canonical_username: <redacted>
[2024-09-02T10:24:05Z DEBUG librespot_playback::player] new Player[0]
[2024-09-02T10:24:05Z DEBUG librespot::component] new MercuryManager
[2024-09-02T10:24:05Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
[2024-09-02T10:24:05Z DEBUG librespot_playback::mixer::mappings] Input volume 6527 mapped to: 0.20%
[2024-09-02T10:24:05Z INFO  librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: WASAPI
[2024-09-02T10:24:05Z DEBUG librespot_core::session] Session[0] strong=3 weak=2
[2024-09-02T10:24:05Z INFO  librespot_core::session] Country: "GB"
[2024-09-02T10:24:05Z INFO  librespot_playback::audio_backend::rodio] Using audio device: Speakers (HyperX QuadCast S)
[2024-09-02T10:24:05Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created
[2024-09-02T10:24:05Z DEBUG librespot_playback::player] command=AddEventSender
[2024-09-02T10:24:05Z DEBUG librespot_playback::player] command=VolumeSet(6527)
[2024-09-02T10:24:05Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user/<redacted>/ count=0
[2024-09-02T10:24:05Z DEBUG librespot_connect::spirc] kMessageTypeNotify <redacted> kPlayStatusStop
[2024-09-02T10:24:05Z DEBUG librespot_connect::spirc] kMessageTypeNotify <redacted> kPlayStatusPlay
[2024-09-02T10:24:05Z DEBUG librespot_connect::spirc] kMessageTypeNotify <redacted> kPlayStatusStop
[2024-09-02T10:24:11Z DEBUG librespot_connect::spirc] kMessageTypeNotify <redacted> kPlayStatusPause
[2024-09-02T10:24:11Z DEBUG librespot_connect::spirc] kMessageTypeNotify <redacted> kPlayStatusPause
[2024-09-02T10:24:13Z DEBUG librespot_connect::spirc] kMessageTypeLoad <redacted> kPlayStatusPause
[2024-09-02T10:24:13Z DEBUG librespot_connect::spirc] State: context_uri: "<redacted>" index: 10 position_ms: 110539 status: kPlayStatusPause position_measured_at: 1725272652937 context_description: "" shuffle: false repeat: false playing_from_fallback: true row: 0 playing_track_index: 10 ...
[2024-09-02T10:24:13Z DEBUG librespot_connect::spirc] Frame has 34 tracks
[2024-09-02T10:24:13Z DEBUG librespot_playback::player] command=SetAutoNormaliseAsAlbum(false)
[2024-09-02T10:24:13Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
[2024-09-02T10:24:13Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 271952954756503356049650030780153736814, audio_type: Track }, false, 110539)
[2024-09-02T10:24:13Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
[2024-09-02T10:24:13Z INFO  librespot_playback::player] Loading <I Want It That Way> with Spotify URI <spotify:track:6e40mgJiCid5HRAGrbpGA6>
[2024-09-02T10:24:13Z DEBUG librespot_audio::fetch] Downloading file 9d29eaf0d2bb408f86314aa77b8c64fef6e113a2
[2024-09-02T10:24:13Z DEBUG librespot::component] new ChannelManager
[2024-09-02T10:24:13Z ERROR librespot_core::channel] channel error: 2 0
[2024-09-02T10:24:13Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError
[2024-09-02T10:24:13Z WARN  librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 271952954756503356049650030780153736814, audio_type: Track }>: ()

Host (what you are running librespot on):

  • OS: Windows 11 Pro (also tested inside a Dockerfile on Linux)

Additional context
I omitted some info that isn't relevant in the log, but the last 4 lines are the useful bits.
Note that while my output device is a microphone, I have my headphones plugged into it, so it does work as an output device. The error is also present when using the pipe backend inside a Docker container on Linux.
I authenticated librespot by choosing it as the output device on Spotify desktop. It then spams the console window as it fails to play every song in the queue.

@kieransouth kieransouth added the bug label Sep 2, 2024
@kieransouth
Copy link
Author

Fixed by blocking in hosts file as per #972

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

No branches or pull requests

1 participant