mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #284] Playback fails when using pipe backend #172
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#172
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 @xterm91 on GitHub (Jan 22, 2026).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/284
Description
The session terminates shortly (3 seconds-ish) after starting when attempting to use the pipe audio backend.
Context
I'm attempting to run go-librespot in a Home Assistant add-on on a Raspberry Pi 4. The output is destined for a snapcast-server. The error does not occur if I route the audio to a dummy output. I've tried building from source and copying the prebuilt binary from the latest docker image.
Logs
The logs don't show any specific errors but I included logs showing that the session starts, chunks are fetched.
Config
@devgianlu commented on GitHub (Jan 23, 2026):
The program is most likely hanging because it is trying to open a FIFO that has no readers. I have updated the FIFO code so that it fails if there are no readers: https://github.com/devgianlu/go-librespot/pull/285
Can you confirm this was the issue?
@xterm91 commented on GitHub (Jan 23, 2026):
Resolved
Fetching chunks gets blocked if there is no pipe reader. Not an issue with go-librespot.