<div dir="ltr"><div>Dear Tanu,<br><br></div>Thank you for reply.<br><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">>As a workaround you could also try removing module-always-sink from the<br>
>configuration. Maybe you don't need it.<br>
</div><div class="gmail_extra"><span class="gmail-HOEnZb"><font color="#888888"><br></font></span></div><div class="gmail_extra"><span class="gmail-HOEnZb"><font color="#888888">I removed </font></span><span class="gmail-HOEnZb"><font color="#888888">module-always-sink from the configuration. Behavior has changed.</font></span><br><span class="gmail-HOEnZb"><font color="#888888"><span class="gmail-">When I disconnect bluetooth headset with turning off the headset, pulseaudio</span></font></span></div><div class="gmail_extra"><span class="gmail-HOEnZb"><font color="#888888"><span class="gmail-">didn't runaway.</span></font></span></div><div class="gmail_extra"><span class="gmail-HOEnZb"><font color="#888888"><span class="gmail-">However, I connect bluetooth headset with turning on the headset again, and I execute <br></span></font></span></div><div class="gmail_extra"><span class="gmail-HOEnZb"><font color="#888888"><span class="gmail-">connect command to the headset with bluetoothctl. </span></font></span><span class="gmail-HOEnZb"><font color="#888888"><span class="gmail-"><span class="gmail-">Pulseaudio also runaway.</span></span></font></span></div><div class="gmail_extra"><span class="gmail-HOEnZb"><font color="#888888"><span class="gmail-"><span class="gmail-">I attached the log which I got.</span></span></font></span><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">This is the last message that I see, and after that PulseAudio is stuck.</div><div class="gmail_extra">D: [pulseaudio] module-bluez5-discover.c: Loading module-bluez5-device path=/org/bluez/hci0/dev_00_14_BE_8A_7B_FE<br><br></div><div class="gmail_extra">Best Regards,</div><div class="gmail_extra">Shinnosuke Suzuki<br><div class="gmail_quote">2017-10-08 3:51 GMT+09:00 Tanu Kaskinen <span dir="ltr"><<a href="mailto:tanuk@iki.fi" target="_blank">tanuk@iki.fi</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Mon, 2017-10-02 at 10:37 +0900, Shinnosuke Suzuki wrote:<br>
> Hi all,<br>
><br>
> I use pulseaudio with bluetooth headset, it seems fine at start.<br>
> I could see sink/source set to bluetooth headset with pactl.<br>
> However, when I disconnect bluetooth headset with turning off the headset,<br>
> pulseaudio maybe runaway. Looking at CPU usage of top command, pulseaudio<br>
> exceeds 90%.<br>
> I could only kill with kill command not the Ctrl+C.<br>
> I checked pulseaudio-discussion ML, I found similar issue “pulseaudio a2dp<br>
> disconnect problem”.<br>
> So I tried with configuration which written in the post, but it could not<br>
> be changed.<br>
> I attached the log for pulseaudio and configuration <a href="http://system.pa" rel="noreferrer" target="_blank">system.pa</a> , <a href="http://default.pa" rel="noreferrer" target="_blank">default.pa</a>.<br>
<br>
</span>Your attached log ends at this message:<br>
<br>
    D: [pulseaudio] module-always-sink.c: Autoloading null-sink as no other sinks detected.<br>
<br>
Is that the last message that you see, and after that PulseAudio is<br>
stuck? If so, then it should be possible to find the infinite loop by<br>
adding extra logging to the code that follows that message. Or if you<br>
know how to use some profiling tool, that should do the trick as well.<br>
<br>
As a workaround you could also try removing module-always-sink from the<br>
configuration. Maybe you don't need it.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
--<br>
Tanu<br>
<br>
<a href="https://www.patreon.com/tanuk" rel="noreferrer" target="_blank">https://www.patreon.com/tanuk</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">--<br>Shinnosuke Suzuki<br>E-mail : <a href="mailto:suzukisn@gmail.com" target="_blank">suzukisn@gmail.com</a></div>
</div></div></div></div>