[GH-ISSUE #1682] SPIRC unexpected shutdown #764

Closed
opened 2026-02-27 19:32:21 +03:00 by kerem · 4 comments
Owner

Originally created by @nodemand on GitHub (Jan 26, 2026).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1682

Description

Audio stops playing suddenly

Version

0.8.0 ea813143 (Built on 2025-11-24, Build ID: SHcE8lwM, Profile: release)

How to reproduce

I'm running it as raspotify service. This happens within half an hour of playback. Every time.

Log

Jan 27 00:14:53 raspi librespot[848]: [2026-01-26T23:14:53Z ERROR librespot_core::session] Connection to server closed.
Jan 27 00:18:06 raspi librespot[848]: [2026-01-26T23:18:06Z WARN  librespot_connect::spirc] unexpected shutdown
Jan 27 00:18:06 raspi librespot[848]: [2026-01-26T23:18:06Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
Jan 27 00:18:06 raspi librespot[848]: [2026-01-26T23:18:06Z WARN  librespot_core::dealer] Websocket connection failed: IO error: peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eof
Jan 27 00:18:06 raspi librespot[848]: [2026-01-26T23:18:06Z WARN  librespot] Spirc shut down unexpectedly
Jan 27 00:18:07 raspi librespot[848]: [2026-01-26T23:18:07Z ERROR librespot_core::session] Broken pipe (os error 32)
Jan 27 00:18:08 raspi librespot[848]: [2026-01-26T23:18:08Z ERROR librespot_core::audio_key] Audio key response timeout
Jan 27 00:18:08 raspi librespot[848]: [2026-01-26T23:18:08Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Operation aborted { audio key response timeout }
Jan 27 00:18:11 raspi librespot[848]: [2026-01-26T23:18:11Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream

Host (what you are running librespot on):

Debian Trixie on RPi 5.

Additional context

I'm piping the audio to SND-ALOOP Alsa PCM plughw:Loopback,0

Originally created by @nodemand on GitHub (Jan 26, 2026). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1682 ### Description Audio stops playing suddenly ### Version 0.8.0 ea813143 (Built on 2025-11-24, Build ID: SHcE8lwM, Profile: release) ### How to reproduce I'm running it as raspotify service. This happens within half an hour of playback. Every time. ### Log ``` Jan 27 00:14:53 raspi librespot[848]: [2026-01-26T23:14:53Z ERROR librespot_core::session] Connection to server closed. Jan 27 00:18:06 raspi librespot[848]: [2026-01-26T23:18:06Z WARN librespot_connect::spirc] unexpected shutdown Jan 27 00:18:06 raspi librespot[848]: [2026-01-26T23:18:06Z WARN librespot_connect::state::context] couldn't load context info because: context is not available. type: Default Jan 27 00:18:06 raspi librespot[848]: [2026-01-26T23:18:06Z WARN librespot_core::dealer] Websocket connection failed: IO error: peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eof Jan 27 00:18:06 raspi librespot[848]: [2026-01-26T23:18:06Z WARN librespot] Spirc shut down unexpectedly Jan 27 00:18:07 raspi librespot[848]: [2026-01-26T23:18:07Z ERROR librespot_core::session] Broken pipe (os error 32) Jan 27 00:18:08 raspi librespot[848]: [2026-01-26T23:18:08Z ERROR librespot_core::audio_key] Audio key response timeout Jan 27 00:18:08 raspi librespot[848]: [2026-01-26T23:18:08Z WARN librespot_playback::player] Unable to load key, continuing without decryption: Operation aborted { audio key response timeout } Jan 27 00:18:11 raspi librespot[848]: [2026-01-26T23:18:11Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream ``` ### Host (what you are running `librespot` on): Debian Trixie on RPi 5. ### Additional context I'm piping the audio to SND-ALOOP Alsa PCM plughw:Loopback,0
kerem 2026-02-27 19:32:21 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@photovoltex commented on GitHub (Jan 28, 2026):

Could you take a look at #1419? This sounds like the same issue. Can you report back if so, or close the issue as duplicate of so? Thanks in advance :)

<!-- gh-comment-id:3813443593 --> @photovoltex commented on GitHub (Jan 28, 2026): Could you take a look at #1419? This sounds like the same issue. Can you report back if so, or close the issue as duplicate of so? Thanks in advance :)
Author
Owner

@nodemand commented on GitHub (Jan 28, 2026):

Hi @photovoltex, that looks indeed to be the same issue and the last comment over there is also mine 😄, but nobody responded so I decided to open a fresh issue 🙄.

<!-- gh-comment-id:3813552533 --> @nodemand commented on GitHub (Jan 28, 2026): Hi @photovoltex, that looks indeed to be the same issue and the last comment over there is also mine 😄, but nobody responded so I decided to open a fresh issue 🙄.
Author
Owner

@photovoltex commented on GitHub (Jan 28, 2026):

please comment on the existing issue and don't open a new one in the future :). if there isn't any solution, it usually means we can't determine the cause of the issue. in that case more infos can help identifying the issue or adjusting things in your deployment enviorment^^

<!-- gh-comment-id:3814010656 --> @photovoltex commented on GitHub (Jan 28, 2026): please comment on the existing issue and don't open a new one in the future :). if there isn't any solution, it usually means we can't determine the cause of the issue. in that case more infos can help identifying the issue or adjusting things in your deployment enviorment^^
Author
Owner

@nodemand commented on GitHub (Jan 28, 2026):

Yeah, sorry...my bad. Will do that from now on!

<!-- gh-comment-id:3814045546 --> @nodemand commented on GitHub (Jan 28, 2026): Yeah, sorry...my bad. Will do that from now on!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#764
No description provided.