mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #877] librespot panic as a result of Pulseaudio problem #438
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#438
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 @bennypr0fane on GitHub (Nov 5, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/877
I run Raspotify on my Raspberry Pi. The log is all lLibrespot messages, so I thought this would be the right place to report:
`
pi@raspberrypi:~ $ service raspotify status
● raspotify.service - Raspotify
Loaded: loaded (/lib/systemd/system/raspotify.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-11-04 00:12:35 CET; 36min ago
Process: 1227 ExecStartPre=/bin/mkdir -m 0755 -p /var/cache/raspotify (code=exited, status=0/SUCCESS)
Process: 1228 ExecStartPre=/bin/chown raspotify:raspotify /var/cache/raspotify (code=exited, status=0/SUCCESS)
Main PID: 1229 (librespot)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/raspotify.service
└─1229 /usr/bin/librespot --name raspotify (raspberrypi) --device-type speaker --backend alsa --bitrate 160 --disable-audio-cache --enable-volume-normalisation --volume-ctrl linear --initial-volume 100
Nov 04 00:18:14 raspberrypi librespot[1229]: 17: 0x54b304 - <librespot_playback::player::PlayerInternal as futures::future::Future>::poll::he6e04a5bccf94e34
Nov 04 00:18:14 raspberrypi librespot[1229]: 18: 0x4af300 - futures::task_impl::std::set::hab1c1811473e3998
Nov 04 00:18:14 raspberrypi librespot[1229]: 19: 0x4a5838 - std::sys_common::backtrace::__rust_begin_short_backtrace::h8286c5a0fd04a387
Nov 04 00:18:14 raspberrypi librespot[1229]: 20: 0x4c04f4 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h76e6c7604d7daced
Nov 04 00:18:14 raspberrypi librespot[1229]: 21: 0x8ec940 - <alloc::boxed::Box as core::ops::function::FnOnce>::call_once::h6b7ad05f87ff90ae
Nov 04 00:18:14 raspberrypi librespot[1229]: at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/alloc/src/boxed.rs:1042
Nov 04 00:18:14 raspberrypi librespot[1229]: 22: 0x8ec940 - <alloc::boxed::Box as core::ops::function::FnOnce>::call_once::he9130e675b8d97ee
Nov 04 00:18:14 raspberrypi librespot[1229]: at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/alloc/src/boxed.rs:1042
Nov 04 00:18:14 raspberrypi librespot[1229]: 23: 0x8ec940 - std::sys::unix:🧵:Thread:🆕:thread_start::h7a3f6590d8e03e95
Nov 04 00:18:14 raspberrypi librespot[1229]: at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys/unix/thread.rs:87
`
Here's the last part of the daemon log:
Any idea why Librespot would be deneid access here?
@kingosticks commented on GitHub (Nov 6, 2021):
Did you already report this to the raspotify project? They should be your first port of call.
@JasonLG1979 commented on GitHub (Nov 6, 2021):
The version used by Raspotify is REALLY old, but if I had to guess it's because Raspotify runs librespot as a system level service by default as it's really meant for headless systems in contrast to PulseAudio which by default is a user level service. You'll either have to run PulseAudio as a system level service (not advisable really) or run librespot as a user level service (better option IMHO). If you look though the issues, read me's and wiki's in the Raspotify repo I'm sure you're not the only one to have the same problem.
@roderickvd commented on GitHub (Nov 6, 2021):
System or Raspotify configuration issue, closing here for now.