mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1110] Spotifyd crashes in alsa backend on ALSA error #518
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#518
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 @aykevl on GitHub (Jan 25, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1110
Spotifyd crashes whenever I connect to it from my phone and start playing music.
To reproduce
Steps to reproduce the behavior:
RUST_LOG=debug RUST_BACKTRACE=1 ./target/release/spotifyd --no-daemonLog
Here is the log output:
Most likely the crash is related to
Alsa error PCM open ALSA function 'snd_pcm_open' failed with error 'UnknownErrno: Unknown errno'but even then, IMHO it shouldn't crash.Host (what you are running
librespoton):Additional context
There is definitely an alsa problem here though, so the fact that it doesn't start to play is not a bug. But I don't think it should crash.
EDIT: the actual error was that alsa had rearranged sound cards and it was trying to output on the HDMI port (with no connected display or anything).
@roderickvd commented on GitHub (Jan 25, 2023):
Spotifyd is a separate project that, last time I looked, depends on an old version of librespot. Newer versions have much improved error handling.