mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #359] raspbian buster: Stream drop error: PortAudio not initialized #236
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#236
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 @patrickjane on GitHub (Aug 3, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/359
I have a working installation of librespot on my raspberry pi 3 running raspbian stretch. However I now got myself a raspberry pi 4 which is running raspbian buster.
I've successfully compiled librespot from source, however once I try playing a song it crashes:
I've even tried copying over the binary from my raspberry pi 3, but its going to result in the same error.
What do I have to do?
@Juanmcuello commented on GitHub (Aug 3, 2019):
It seems to me you don't have the right permissions to access alsa programs. Try running
amixerand see what happens. If it doesn't work with a normal user but it works asroot, it could probably be that. You can try running librespot asrootto confirm that.If that's the problem, you will have to give your user the right permissions or run librestpot as
root(maybe through asystemdunit).@patrickjane commented on GitHub (Aug 3, 2019):
I was running
librespotmanually as userspotify. The user seems to have permission:@patrickjane commented on GitHub (Aug 6, 2019):
Okay so I did a complete reinstall of the raspberry pi (for other reasons), now I have installed raspbian buster lite, and I have successfully compiled again
librespot.I still get a crash upon playback, but the error is different:
@patrickjane commented on GitHub (Aug 12, 2019):
Okay so I am a bit further, the above crash still occurs, however I noticed it is not about audio. The
--oneventprogram is causing the issue. If I omit the--oneventparameter, I can play music just fine.In my case, the program to execute (
--onevent /home/spotify/libreout) is just a one-line script really:I can execute the script just fine with the user also starting
librespot:So its not about file access.
@roderickvd commented on GitHub (May 24, 2021):
8973d29837fixes it so thatoneventprogram failures don't causelibrespotto panic. It still must be something with your permissions however. Or maybe your script needs something like#!/usr/bin/env bashto work. Closing this for now.