New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spotify: 1.0.96.181 -> 1.1.10.546 #65602
Conversation
Btw I made a single commit for the update + ALSA fix. Please tell me if I should split them. |
It seems I messed up something with the maintainers list. |
You need to add yourself to https://github.com/NixOS/nixpkgs/blob/master/maintainers/maintainer-list.nix to fix this. |
0792895
to
07f298a
Compare
Thanks! |
See NixOS#57800 and NixOS#65081 for discussion around fixing the SIGSEV since 1.1.5 Fix taken from https://gitweb.gentoo.org/repo/gentoo.git/commit/media-sound/spotify?id=d8c8d8abd012c709551cc96802d2615fa69b5212: Adding apulse libraries to LD_LIBRARY_PATH make spotify work even if pulseaudio is not installed. If pulseaudio is installed instead of apulse, this has no effect. Adding APULSE_PLAYBACK_DEVICE is also necessary otherwise apulse does not find the device (inspired by the tor-browser-bundle derivation)
07f298a
to
e247342
Compare
Tested locally (and actually played music this time @timokau !). Thank you @angristan |
I just tested this and unfortunately it doesn't work for me :/ Does apulse need any setup? I built spotify from current master and ran it from the |
@timokau thanks for the feedback. I guess this has something to do with |
Are you going to debug this? Otherwise I propose we revert this update for now, before it hits the unstable channel. I'll probably not be the only one with the issue. Its annoying, I know. But an old version is better than a version that only works for some users. |
Let's revert it again 🎉 Though if we don't get feedback from users where it doesn't work properly, it will be hard to fix. |
Well you have at least one test subject where it doesn't work. If you have anything you want me to try, I'd be happy to. |
Yes I agree this is enough to say Spotify on master is broken. Do you have any specific audio config? Mine is: hardware.pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
}; Maybe try other audio devices like For |
I doubt this would work for people with alsa, but for me, this patch works on a networked pulseaudio setup:
|
No specific config, just enabling pulseaudio. I can play a file with
Curiously enough @asj124's fix works for me. So maybe we don't need apulse at all but just |
@ajs124's patch works for me too. |
@ajs124, can you submit that as a PR? Pulseaudio is required for a bunch of programs nowadays anyway. I'm not sure if spotify worked with plain alsa before. |
Right now, spotify 1.0.x (on 19.03) connects to my pulseaudio through the alsa emulation. So I assume it would work with plain ALSA. Meaning, my patch might break backwards compatibility? |
You're right, just dropping alsa support entirely would be a bit of a cop out in that case. On the other hand, I don't feel like supporting it when upstream apparently doesn't care for it. Let's do the revert first to take the urgency out of it: #65833 I did some debugging. Apparently If I set the output device to Any ideas how we can have the cake and eat it too? Maybe detect an available pulseaudio daemon at runtime and only use apluse if it can't be found (would be nice if apluse had a mode to do that automatically). But then I'm still not sure if |
Please don't. There is no pulseaudio daemon running on my system, since I only use it over the network. Has anyone without pulseaudio tested what happens with my patch? Did they actually drop support for plain ALSA? |
Good point. But what I generally meant was "do whatever the application would do to detect pulseaudio", it wouldn't necessarily need to be a check for the daemon.
I haven't tested it since I couldn't get audio working on my system with pulseaudio disabled. The issue is that spotify doesn't officially support anything on linux. While there is code for alsa support in spotify, it has led to segfaults for months now. And according to the comments in that thread that is not the first issue with alsa. So alsa is definitely not in their test matrix (if they even test anything...) and they apparently don't care about it either. Effectively unsupported. |
I have been battling this for months now lol. |
Continued in #72596, feel free to review. |
See #57800 and #65081 for discussion around fixing the SIGSEV with ALSA since 1.1.5
Fix taken from
https://gitweb.gentoo.org/repo/gentoo.git/commit/media-sound/spotify?id=d8c8d8abd012c709551cc96802d2615fa69b5212:
Adding
APULSE_PLAYBACK_DEVICE
is also necessary otherwise apulse doesnot find the device (inspired by the
tor-browser-bundle
derivation)Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @eelco @ftrvxmtrx @sheenobu @mudri @timokau