mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #760] Panic when opening Alsa soundcard with Snapserver #407
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#407
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 @lukasdietz on GitHub (May 26, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/760
Originally assigned to: @roderickvd on GitHub.
Hey there,
I am facing an issue using librespot.
I have installed librespot using
cargo install librespotand used it together with snapcast.Everything worked great for around 2 weeks before it wouldn't work anymore.
If I start librespot everything works as long as nothing happens. If I am trying to connect Librespot with Spotify it panics right away:
Strange thing for me is, that it stopped working without me changing anything.
Hope there is somebody to help me out!
With best regards
Lukas
@roderickvd commented on GitHub (May 26, 2021):
The error means that it cannot find or open the soundcard on Alsa.
When you say "without me changing anything" you confirm:
librespot0.2.0 before? The log says you built it on 2021-05-26 so this cannot be the same as 2 weeks before./etc/group)?Besides the questions above, please do the following:
librespot --backend alsainstead of Rodio (compile withcargo install librespot --features alsa-backend)aplay -Llibrespot --device ?@lukasdietz commented on GitHub (May 27, 2021):
Sorry for not beeing clear. I forgot to mention, that I reinstalled Librespot today as a first try to fix this on my own.
But for all your other questions: Yes I did run librespot 0.2.0 before and did not change any configuration or run updates.
The only thing I could mention was a reboot of my proxmox host where the lxc with librespot is running on.
I tried compiling librespot as mentioned. Now I can start librespot and connect with spotify without crashing.
The output of
aplay -LisI am not sure if I need a soundcard, as I am using librespot with snapserver.
@roderickvd commented on GitHub (May 27, 2021):
That
aplayoutput means that there no PCMs available. I've never used Snapcast and so don't know how that's supposed to work. But I'm glad to hear it's now working for you.