Spotify opens too many connections to PulseAudio (Linux)

Reply

Spotify opens too many connections to PulseAudio (Linux)

spacebug
Music Fan

After some time Spotify for Linux starts to use too many connections to PulseAudio. This makes it impossible to use any sound on the computer.

 

This shows an output after one day of usage:

http://pastebin.com/E5AVQd62

 

Spotify version 1.0.36.120.g536a862f, Copyright (c) 2016, Spotify Ltd

OS: Debian 8.5 (Jessie)

 

10 Replies
Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

Spotify
Spotify

Have never seen before. Will investigate. What is the output of:

 

 

cat /etc/lsb-release
uname -a
dpkg -l libasound2 pulseaudio pulseaudio-utils | grep ^ii

 

Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

Spotify
Spotify

Also, how many spotify processes do you see when you have this problem? Maybe spotify is restarting and doesn't close itself properly.

 

ps fx | grep spotify

shows 4 processes for me, which is normal when one instance is running.

 

$ ps fx | grep spotify
 4419 pts/4    Sl+    0:01      |   \_ /usr/share/spotify/spotify
 4424 pts/4    S+     0:00      |       \_ /usr/share/spotify/spotify --type=zygote...
 4454 pts/4    Sl+    0:03      |       |   \_ /usr/share/spotify/spotify --type=renderer...
 4438 pts/4    Sl+    0:00      |       \_ /usr/share/spotify/spotify --type=gpu-process...
Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

spacebug
Music Fan

Output from "ps fx | grep spotify"

 

 

5239 ? Sl 13:42 \_ /usr/share/spotify/spotify
5242 ? S 0:00 \_ /usr/share/spotify/spotify --type=zygote --no-sandbox --lang=en-US --log-file=/usr/share/spotify/debug.log --log-severity=disable --product-version=Spotify/1.0.36.120
5279 ? Sl 4:30 | \_ /usr/share/spotify/spotify --type=renderer --disable-pinch --no-sandbox --primordial-pipe-token=6D4D7B021A2C597A9FA60D6813C8DC86 --lang=en-US --lang=en-US --log-file=/usr/share/spotify/debug.log --log-severity=disable --product-version=Spotify/1.0.36.120 --disable-extensions --disable-spell-checking --num-raster-threads=4 --content-image-texture-target=3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553 --video-image-texture-target=3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553 --disable-accelerated-video-decode --mojo-channel-token=CAC62E68AE5F5EEEF9123566B0004592 --mojo-application-channel-token=1E958C4010444E267A02F755347A2583 --channel=5239.1.1094438878 --v8-natives-passed-by-fd --v8-snapshot-passed-by-fd
5256 ? Sl 2:12 \_ /usr/share/spotify/spotify --type=gpu-process --channel=5239.0.1846326019 --mojo-application-channel-token=91A22B22A13A7F6BE73DB761DC39017C --no-sandbox --window-depth=24 --x11-visual-id=33 --lang=en-US --log-file=/usr/share/spotify/debug.log --log-severity=disable --product-version=Spotify/1.0.36.120 --supports-dual-gpus=false --gpu-driver-bug-workarounds=4,28,34,37,55,71,74 --gpu-vendor-id=0x10de --gpu-device-id=0x1401 --gpu-driver-vendor=NVIDIA --gpu-driver-version=361.45.11 --gpu-driver-date --gpu-secondary-vendor-ids=0x8086 --gpu-secondary-device-ids=0x0412 --lang=en-US --log-file=/usr/share/spotify/debug.log --log-severity=disable --product-version=Spotify/1.0.36.120 --v8-natives-passed-by-fd --v8-snapshot-passed-by-fd
23014 pts/1 S+ 0:00 | \_ grep spotify

 

 

Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

spacebug
Music Fan

( Debian does not have /etc/usb-release )

 

spacebug@blackbox:~$ lsb_release -da
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.5 (jessie)
Release: 8.5
Codename: jessie
spacebug@blackbox:~$ uname -a
Linux blackbox 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux
spacebug@blackbox:~$ dpkg -l libasound2 pulseaudio pulseaudio-utils | grep ^ii
ii libasound2:amd64 1.0.28-1 amd64 shared library for ALSA applications
ii pulseaudio 5.0-13 amd64 PulseAudio sound server
ii pulseaudio-utils 5.0-13 amd64 Command line tools for the PulseAudio sound server
spacebug@blackbox:~$

Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

spacebug
Music Fan

A more detaled output from "pacmd list-clients"

 

http://pastebin.com/W4FD8kNw

 

Seems like all connections comes from Spotify process number 5239 (in the previous output from my "ps fx")

 

Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

spacebug
Music Fan
It seems to happen more when I use Spotify on my android phone during the day. Also, everytime I have used my Spotify on my phone and then come home to my desktop client, the sound on the desktop client is muted (volume slide down to zero).
Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

Spotify
Spotify

@spacebug wrote:
It seems to happen more when I use Spotify on my android phone during the day. Also, everytime I have used my Spotify on my phone and then come home to my desktop client, the sound on the desktop client is muted (volume slide down to zero).

Sounds even weirder, but I guess this could be relevant, since clients logged in to the same account try to keep in sync, so that you can quickly continue in one when you leave another. I am still very unsure how it could affect audio (when nothing is played on the other client), but I will make some tests. Please keep me posted, whenever you find more things like this.

Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

spacebug
Music Fan

I have found it! When I _close_ the Spotify app on my android phone (bring up all applications and swipe to the side to close it), the desktop client uses one more slot on pulse audio.

Highlighted

Re: Spotify opens too many connections to PulseAudio (Linux)

Spotify
Spotify

I just managed to reproduce this. I have to start playing a track on my android phone and skip to the next before I close the app. If I close it directly or only play one track it does not use one more connection on the linux client.

 

SUGGESTED POSTS