Skip to content
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

squeezelite Kills PulseAudio Daemon on Pause #190

Open
dbmaxpayne opened this issue Oct 14, 2023 · 0 comments
Open

squeezelite Kills PulseAudio Daemon on Pause #190

dbmaxpayne opened this issue Oct 14, 2023 · 0 comments

Comments

@dbmaxpayne
Copy link

Hey everyone,

I've been using squeezelite for quite some time now. Thanks for all the hard work on this!

Currently I am setting up a new player on an RPi which needs to have PulseAudio running as a system service.

When I install squeezelite-pulseaudio from the repo or also when I compile it from source, it kills the PulseAudio daemon whenever the audio is paused.
I have tried to add Restart=always to /etc/systemd/system/pulseaudio.service which works in a sense that the daemon is successfully restarted.
However, squeezelite is unable to make use of that anymore and won't play any sound upon resume.

The PulseAudio log is as follows

Oct 14 17:29:15 raspberrypi systemd[1]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Oct 14 17:29:15 raspberrypi systemd[1]: pulseaudio.service: Failed with result 'signal'.

The squeezelit debug log shows this

./squeezelite -d all=debug
[17:28:57.105130] stream_init:466 init stream
[17:28:57.105485] stream_init:467 streambuf size: 2097152
[17:28:57.120900] output_init_pulse:514 init output
[17:28:59.164955] output_init_common:360 outputbuf size: 3528000
[17:28:59.165228] output_init_common:384 idle timeout: 0
[17:28:59.166060] output_init_common:426 supported rates: 384000
[17:28:59.166376] decode_init:153 init decode
[17:28:59.166756] register_dsd:908 using dsd to decode dsf,dff
[17:28:59.166819] register_faad:663 using faad to decode aac
[17:28:59.167496] register_vorbis:378 using vorbis to decode ogg
[17:28:59.167556] register_flac:341 using flac to decode ogf,flc
[17:28:59.167598] register_pcm:483 using pcm to decode aif,pcm
[17:28:59.167764] register_mad:423 using mad to decode mp3
[17:28:59.167809] decode_init:202 include codecs:  exclude codecs:
[17:28:59.168181] discover_server:795 sending discovery
[17:28:59.173367] output_thread:460 PulseAudio playback stream on sink alsa_output.platform-soc_sound.stereo-fallback open
[17:28:59.173684] pulse_set_volume:313 sink input volume set to 0:   0% 1:   0%
[17:28:59.202078] discover_server:806 got response from: 192.168.178.2:3483
[17:28:59.202364] slimproto:898 connecting to 192.168.178.2:3483
[17:28:59.207655] slimproto:937 connected
[17:28:59.207792] sendHELO:148 mac: b8:27:eb:5a:3d:96
[17:28:59.207848] sendHELO:150 cap: CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Balance=1,Firmware=v1.9.9-1449,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,aac,ogg,ogf,flc,aif,pcm,mp3
[17:28:59.218659] process:528 strm
[17:28:59.218820] process_strm:280 strm command q
[17:28:59.218905] decode_flush:244 decode flush
[17:28:59.218953] output_flush:439 flush output buffer
[17:28:59.219004] sendSTAT:195 STAT: STMf
[17:28:59.219144] process:528 strm
[17:28:59.219204] process_strm:280 strm command q
[17:28:59.219248] decode_flush:244 decode flush
[17:28:59.219292] output_flush:439 flush output buffer
[17:28:59.219338] sendSTAT:195 STAT: STMf
[17:28:59.219417] process:528 setd
[17:28:59.219485] process:528 setd
[17:28:59.219550] process:528 aude
[17:28:59.219595] process_aude:422 enable spdif: 1 dac: 1
[17:28:59.219663] process:528 audg
[17:28:59.219708] process_audg:440 audg gainL: 0 gainR: 0 adjust: 1
[17:29:03.013150] process:528 strm
[17:29:03.013289] process_strm:280 strm command t
[17:29:03.013340] sendSTAT:195 STAT: STMt
[17:29:04.582589] process:528 strm
[17:29:04.582726] process_strm:280 strm command q
[17:29:04.582774] decode_flush:244 decode flush
[17:29:04.582815] output_flush:439 flush output buffer
[17:29:04.582860] sendSTAT:195 STAT: STMf
[17:29:04.604875] process:528 audg
[17:29:04.604975] process_audg:440 audg gainL: 6656 gainR: 6656 adjust: 1
[17:29:04.605173] pulse_set_volume:313 sink input volume set to 0:  47% 1:  47%
[17:29:04.605352] process:528 strm
[17:29:04.605404] process_strm:280 strm command s
[17:29:04.605450] process_strm:349 strm s autostart: 1 transition period: 10 transition type: 0 codec: m
[17:29:04.605498] sendSTAT:195 STAT: STMf
[17:29:04.605576] codec_open:272 codec open: 'm'
[17:29:04.605893] connect_socket:171 connecting to 192.168.178.2:9000
[17:29:04.615696] stream_sock:612 header: GET /stream.mp3?player=b8:27:eb:5a:3d:96 HTTP/1.0


[17:29:04.615845] sendSTAT:195 STAT: STMc
[17:29:04.615916] process_strm:384 set fade mode: 0, channels: 0, invert: 0
[17:29:04.616002] process:528 audg
[17:29:04.616048] process_audg:440 audg gainL: 6656 gainR: 6656 adjust: 1
[17:29:04.636787] stream_thread:339 headers: len: 491
HTTP/1.1 200 OK
Server: Logitech Media Server (8.3.1 - 1676361197)
Connection: close
Content-Type: audio/mpeg
Set-Cookie: Squeezebox-albumView=; path=/
Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
Set-Cookie: Squeezebox-expanded-RADIO=0; path=/


[17:29:04.637309] sendRESP:226 RESP
[17:29:04.774306] mad_decode:247 setting track_start
[17:29:04.774942] mad_decode:276 gapless: skipping 529 frames at start
[17:29:06.278431] _output_frames:65 start buffer frames: 418799
[17:29:06.279210] set_sample_rate:337 stream sample rate set to 44100 Hz
[17:29:06.279638] _output_frames:153 track start sample rate: 44100 replay_gain: 0
[17:29:06.280084] sendSTAT:195 STAT: STMs
[17:29:06.280207] sendSTAT:195 STAT: STMt
[17:29:07.014647] process:528 strm
[17:29:07.014801] process_strm:280 strm command t
[17:29:07.014860] sendSTAT:195 STAT: STMt
[17:29:08.016046] sendSTAT:195 STAT: STMt
[17:29:09.017290] sendSTAT:195 STAT: STMt
[17:29:10.018588] sendSTAT:195 STAT: STMt
[17:29:11.015771] process:528 strm
[17:29:11.015930] process_strm:280 strm command t
[17:29:11.015992] sendSTAT:195 STAT: STMt
[17:29:12.017205] sendSTAT:195 STAT: STMt
[17:29:13.018551] sendSTAT:195 STAT: STMt
[17:29:14.019898] sendSTAT:195 STAT: STMt
[17:29:15.016485] process:528 strm
[17:29:15.016637] process_strm:280 strm command t
[17:29:15.016698] sendSTAT:195 STAT: STMt
[17:29:15.174832] sendSTAT:195 STAT: STMt
[17:29:15.175057] process:528 audg
[17:29:15.175165] process_audg:440 audg gainL: 6656 gainR: 6656 adjust: 1
[17:29:15.224921] process:528 audg
[17:29:15.224989] process_audg:440 audg gainL: 3840 gainR: 3840 adjust: 1
[17:29:15.225143] pulse_set_volume:313 sink input volume set to 0:  39% 1:  39%
[17:29:15.272385] process:528 audg
[17:29:15.272555] process_audg:440 audg gainL: 2304 gainR: 2304 adjust: 1
[17:29:15.272742] pulse_set_volume:313 sink input volume set to 0:  33% 1:  33%
[17:29:15.321646] process:528 audg
[17:29:15.321858] process_audg:440 audg gainL: 1312 gainR: 1312 adjust: 1
[17:29:15.322018] pulse_set_volume:313 sink input volume set to 0:  27% 1:  27%
[17:29:15.372054] process:528 audg
[17:29:15.372271] process_audg:440 audg gainL: 511 gainR: 511 adjust: 1
[17:29:15.372468] pulse_set_volume:313 sink input volume set to 0:  20% 1:  20%
[17:29:15.424407] process:528 audg
[17:29:15.424565] process_audg:440 audg gainL: 99 gainR: 99 adjust: 1
[17:29:15.424740] pulse_set_volume:313 sink input volume set to 0:  11% 1:  11%
[17:29:15.472572] process:528 audg
[17:29:15.472732] process_audg:440 audg gainL: 19 gainR: 19 adjust: 1
[17:29:15.472906] pulse_set_volume:313 sink input volume set to 0:   7% 1:   7%
[17:29:15.522392] process:528 audg
[17:29:15.522596] process_audg:440 audg gainL: 0 gainR: 0 adjust: 1
[17:29:15.522766] pulse_set_volume:313 sink input volume set to 0:   0% 1:   0%
[17:29:15.522879] process:528 strm
[17:29:15.522932] process_strm:280 strm command p
[17:29:15.523022] sendSTAT:195 STAT: STMp
[17:29:15.523221] process_strm:316 pause interval: 0
[17:29:19.016593] process:528 strm
[17:29:19.016736] process_strm:280 strm command t
[17:29:19.016784] sendSTAT:195 STAT: STMt
[17:29:22.657108] process:528 audg
[17:29:22.657229] process_audg:440 audg gainL: 0 gainR: 0 adjust: 1
[17:29:22.657585] process:528 strm
[17:29:22.657761] process_strm:280 strm command u
[17:29:22.657809] process_strm:337 unpause at: 0 now: 4350376
[17:29:22.657858] sendSTAT:195 STAT: STMr
[17:29:22.658070] process:528 audg
[17:29:22.658195] process_audg:440 audg gainL: 13 gainR: 13 adjust: 1
[17:29:22.672078] process:528 audg
[17:29:22.672160] process_audg:440 audg gainL: 67 gainR: 67 adjust: 1
[17:29:22.724283] process:528 audg
[17:29:22.724414] process_audg:440 audg gainL: 347 gainR: 347 adjust: 1
[17:29:22.774933] sendSTAT:195 STAT: STMt
[17:29:22.775174] process:528 audg
[17:29:22.775344] process_audg:440 audg gainL: 1154 gainR: 1154 adjust: 1
[17:29:22.822066] process:528 audg
[17:29:22.822141] process_audg:440 audg gainL: 1993 gainR: 1993 adjust: 1
[17:29:22.875352] process:528 audg
[17:29:22.875441] process_audg:440 audg gainL: 3328 gainR: 3328 adjust: 1
[17:29:22.925106] process:528 audg
[17:29:22.925191] process_audg:440 audg gainL: 5888 gainR: 5888 adjust: 1
[17:29:22.975255] process:528 audg
[17:29:22.975349] process_audg:440 audg gainL: 6656 gainR: 6656 adjust: 1
[17:29:23.011844] process:528 strm
[17:29:23.011941] process_strm:280 strm command t
[17:29:23.011998] sendSTAT:195 STAT: STMt
[17:29:24.013204] sendSTAT:195 STAT: STMt
[17:29:25.014577] sendSTAT:195 STAT: STMt
[17:29:26.015987] sendSTAT:195 STAT: STMt
[17:29:27.015901] process:528 strm
[17:29:27.016033] process_strm:280 strm command t
[17:29:27.016085] sendSTAT:195 STAT: STMt
[17:29:28.017321] sendSTAT:195 STAT: STMt
[17:29:29.018675] sendSTAT:195 STAT: STMt
[17:29:30.020036] sendSTAT:195 STAT: STMt
[17:29:31.014716] process:528 strm
[17:29:31.014850] process_strm:280 strm command t
[17:29:31.014902] sendSTAT:195 STAT: STMt
[17:29:32.016133] sendSTAT:195 STAT: STMt
^C[17:29:32.111137] slimproto_stop:977 slimproto stop
[17:29:32.211458] decode_close:229 close decode
[17:29:32.245478] stream_close:520 close stream
[17:29:32.308495] output_close_pulse:538 close output

Any ideas as to why this is happening?
VLC for example does not have this problem when using PulseAudio.

Cheers,
Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant