Figured out the problem. I was issuing a PA_SUSPEND_USER on the sink. This, for some reason, will not resume the sink of a stream is started up. PA_SUSPEND_IDLE does however.<br><br><div class="gmail_quote">On Thu, Apr 7, 2011 at 9:03 PM, Baek Chang <span dir="ltr"><<a href="mailto:baeksan@ccrma.stanford.edu">baeksan@ccrma.stanford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Also, this only happens on playback, recording is fine.<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Thu, Apr 7, 2011 at 8:33 PM, Baek Chang <span dir="ltr"><<a href="mailto:baeksan@ccrma.stanford.edu" target="_blank">baeksan@ccrma.stanford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">seems to be stuck in iochannel callback? Heres a stack trace when I do killall -11 pulseaudio to generate a crash.<div>
also could be stuck in rtpoll sleeping in alsa sink?</div><div><br></div><div><div> PC Instructions around faulting address</div>
<div> 2aeb5ae4 e1a02005 e1a0a000 e1a00008 ef000000 2aeb5af4 </div><div> 2aeb5af4 e3700a01 e1a03000 91a04000 8a000009 2aeb5b04 </div><div>Stack:</div><div>depth StackAdr Content Symbolname</div><div> 7eaf9a58 0006f558</div>
<div> 7eaf9a5c 00024c90</div><div> 7eaf9a60 000214d8</div><div> 7eaf9a64 2ac78468</div><div> 7eaf9a68 2ac3ec20(17c20) in /usr/lib/.debug/<a href="http://libpulsecommon-0.9.so/callback" target="_blank">libpulsecommon-0.9.so/callback</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/iochannel.c:134</div><div> 7eaf9a6c 2ac524ac(2b4ac) in /usr/lib/.debug/<a href="http://libpulsecommon-0.9.so/pa_pstream_unref" target="_blank">libpulsecommon-0.9.so/pa_pstream_unref</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/pstream.c:955</div><div> 7eaf9a70 2ac78468</div><div> 7eaf9a74 00000000</div><div> 7eaf9a78 0006f558</div>
<div> 7eaf9a7c 00000000</div><div> 7eaf9a80 00000001</div><div> 7eaf9a84 ffffffff</div><div> 7eaf9a88 0000002f</div><div> 7eaf9a8c 0000002f</div><div> 7eaf9a90 0006d9d0</div><div> 7eaf9a94 2aeb5adc(cbadc) in /lib/<a href="http://libc-2.8.so/__poll" target="_blank">libc-2.8.so/__poll</a> ()</div>
<div> 7eaf9a98 0000002f</div><div> #00 -------------------------------------------------------------</div><div> 7eaf9a9c ffffffff</div><div> 7eaf9aa0 0006d9d0</div><div> 7eaf9aa4 0000002f</div><div> 7eaf9aa8 00000000</div>
<div> 7eaf9aac 00000000</div><div> 7eaf9ab0 0001f068</div><div> 7eaf9ab4 2aeb5c5c(cbc5c) in /lib/<a href="http://libc-2.8.so/ppoll" target="_blank">libc-2.8.so/ppoll</a> ()</div><div> 7eaf9ab8 00001030</div>
<div> #01 -------------------------------------------------------------</div>
<div> 7eaf9abc 00000000</div><div> 7eaf9ac0 0002151c</div><div> 7eaf9ac4 570214d8</div><div> 7eaf9ac8 00000001</div><div> 7eaf9acc 00024c90</div><div> 7eaf9ad0 00000010</div><div> 7eaf9ad4 00000000</div>
<div> 7eaf9ad8 2ac78468</div><div> 7eaf9adc 2ac3ea5c(17a5c) in /usr/lib/.debug/<a href="http://libpulsecommon-0.9.so/enable_events" target="_blank">libpulsecommon-0.9.so/enable_events</a> ()</div><div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/iochannel.c:100</div>
<div> 7eaf9ae0 00000000</div><div> 7eaf9ae4 2ac26530</div><div> 7eaf9ae8 7eaf9bfc in [stack] 7eaf9bfc</div><div> 7eaf9aec 00000010</div><div> 7eaf9af0 00024c90</div><div> 7eaf9af4 000214d8</div>
<div> 7eaf9af8 2ac78468</div><div> 7eaf9afc 2ac3ec20(17c20) in /usr/lib/.debug/<a href="http://libpulsecommon-0.9.so/callback" target="_blank">libpulsecommon-0.9.so/callback</a> ()</div><div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/iochannel.c:134</div>
<div> 7eaf9b00 2ac26530</div><div> 7eaf9b04 00000000</div><div> 7eaf9b08 00000001</div><div> 7eaf9b0c 2ac3ed04(17d04) in /usr/lib/.debug/<a href="http://libpulsecommon-0.9.so/callback" target="_blank">libpulsecommon-0.9.so/callback</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/iochannel.c:164</div><div> 7eaf9b10 7ef7bb00</div><div> 7eaf9b14 2b00c000</div><div> 7eaf9b18 000f2d76</div>
<div> 7eaf9b1c 00070298</div><div> 7eaf9b20 0002151c</div><div> 7eaf9b24 000214d8</div><div> 7eaf9b28 00000001</div><div> 7eaf9b2c 000380f0</div><div> 7eaf9b30 00000000</div><div> 7eaf9b34 000214d8</div>
<div> 7eaf9b38 00000000</div><div> 7eaf9b3c 0000002f</div><div> 7eaf9b40 0006d9d0</div><div> 7eaf9b44 000214d8</div><div> 7eaf9b48 2ac26530</div><div> 7eaf9b4c 2abf95a4(1d5a4) in /usr/lib/.debug/libpulse.so.0.12.3/pa_mainloop_poll ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulse/mainloop.c:880</div><div> 7eaf9b50 00000000</div><div> #02 -------------------------------------------------------------</div>
<div> 7eaf9b54 00000000</div><div> 7eaf9b58 7eaf9b60 in [stack] 7eaf9b60</div><div> 7eaf9b5c 0002151c</div><div> 7eaf9b60 00000897</div><div> 7eaf9b64 400b1d9f</div><div> 7eaf9b68 0000003b</div>
<div> 7eaf9b6c 000214d8</div><div> 7eaf9b70 000214d8</div><div> 7eaf9b74 7eaf9c0c in [stack] 7eaf9c0c</div><div> 7eaf9b78 000214d8</div><div> 7eaf9b7c 2ac26530</div><div> 7eaf9b80 00000001</div>
<div> 7eaf9b84 00000000</div><div> 7eaf9b88 0001f068</div><div> 7eaf9b8c 2abfae08(1ee08) in /usr/lib/.debug/libpulse.so.0.12.3/pa_mainloop_iterate ()</div><div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulse/mainloop.c:954</div>
<div> 7eaf9b90 000167cc(167cc) in /usr/bin/.debug/pulseaudio</div><div> #03 -------------------------------------------------------------</div><div> 7eaf9b94 00024ab8</div><div> 7eaf9b98 00000000</div><div>
7eaf9b9c 000214d8</div><div> 7eaf9ba0 00021e28</div><div> 7eaf9ba4 00000001</div><div> 7eaf9ba8 00000000</div><div> 7eaf9bac 7eaf9c0c in [stack] 7eaf9c0c</div><div> 7eaf9bb0 000214d8</div><div>
7eaf9bb4 000214d8</div><div> 7eaf9bb8 00021e28</div><div> 7eaf9bbc 2abfaeec(1eeec) in /usr/lib/.debug/libpulse.so.0.12.3/pa_mainloop_run ()</div><div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulse/mainloop.c:972</div>
<div> 7eaf9bc0 00024ab8</div><div> #04 -------------------------------------------------------------</div><div> 7eaf9bc4 00000000</div><div> 7eaf9bc8 000214d8</div><div> 7eaf9bcc 00011d9c(11d9c) in /usr/bin/.debug/pulseaudio/main ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/daemon/main.c:1064</div><div> 7eaf9bd0 000167cc(167cc) in /usr/bin/.debug/pulseaudio</div><div> #05 -------------------------------------------------------------</div>
<div> 7eaf9bd4 00024ab8</div><div> 7eaf9bd8 0000001f</div><div> 7eaf9bdc 00015ea8(15ea8) in /usr/bin/.debug/pulseaudio</div><div> 7eaf9be0 0000001f</div><div> 7eaf9be4 00000000</div><div> 7eaf9be8 000158e0(158e0) in /usr/bin/.debug/pulseaudio</div>
<div> 7eaf9bec 00021360</div><div> 7eaf9bf0 ffffffff</div><div> 7eaf9bf4 00024b20</div><div> 7eaf9bf8 00000000</div><div> 7eaf9bfc ffffffff</div><div> 7eaf9c00 ffffffff</div><div> 7eaf9c04 00012d80(12d80) in /usr/bin/.debug/pulseaudio/__libc_csu_init ()</div>
<div> at /opt/codesourcery/arm-none-linux-gnueabi/src/glibc/csu/elf-init.c:83</div><div> 7eaf9c08 00000002</div><div> 7eaf9c0c 00000000</div><div> 7eaf9c10 2aaba2f8(f2f8) in /lib/<a href="http://ld-2.8.so/_dl_fini" target="_blank">ld-2.8.so/_dl_fini</a> ()</div>
<div> 7eaf9c14 00000000</div><div> 7eaf9c18 2aacda50</div><div> 7eaf9c1c 00000000</div><div> 7eaf9c20 2af27958</div><div> 7eaf9c24 00000000</div><div> 7eaf9c28 00000000</div><div> 7eaf9c2c 2aad2000</div>
<div> 7eaf9c30 00000000</div><div> 7eaf9c34 2adfefe0(14fe0) in /lib/<a href="http://libc-2.8.so/__libc_start_main" target="_blank">libc-2.8.so/__libc_start_main</a> ()</div><div> 7eaf9c38 2af26000</div><div>
#06 -------------------------------------------------------------</div>
<div> 7eaf9c3c 7eaf9d84 in [stack] 7eaf9d84</div><div> 7eaf9c40 00000002</div><div> 7eaf9c44 00010560(10560) in /usr/bin/.debug/pulseaudio/main ()</div><div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/daemon/main.c:402</div>
<div> 7eaf9c48 00000000</div><div> 7eaf9c4c 00000000</div><div> 7eaf9c50 00000110</div><div> 7eaf9c54 2af26000</div><div> 7eaf9c58 00000000</div><div> 7eaf9c5c 00000000</div><div> 7eaf9c60 2aad2000</div>
<div> 7eaf9c64 00000000</div><div> 7eaf9c68 7eaf9c38 in [stack] 7eaf9c38</div><div> 7eaf9c6c 2adfef98(14f98) in /lib/<a href="http://libc-2.8.so/__libc_start_main" target="_blank">libc-2.8.so/__libc_start_main</a> ()</div>
<div> 7eaf9c70 00000000</div><div> 7eaf9c74 00000000</div><div> 7eaf9c78 00000000</div><div> 7eaf9c7c 00000000</div><div>time to list this stack:0s 9576us ptrace_peektext=138</div><div>--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---</div>
<div>pid: 6857, tid: 6858</div><div> r0 fffffdfc</div><div> r1 00000002</div><div> r2 ffffffff</div><div> r3 00000000</div><div> r4 00000001</div><div> r5 ffffffff</div><div> r6 00000002</div><div> r7 000000a8</div>
<div> r8 000267d8</div><div> r9 00000000</div><div> r10 00000000</div><div> fp 2c886d9c</div><div> ip 000030ec</div><div> sp 2c886c28</div><div> lr 2aecc2b8(e22b8) in /lib/<a href="http://libc-2.8.so/__libc_enable_asynccancel" target="_blank">libc-2.8.so/__libc_enable_asynccancel</a> ()</div>
<div> pc 2aeb5af4(cbaf4) in /lib/<a href="http://libc-2.8.so/__poll" target="_blank">libc-2.8.so/__poll</a> ()</div><div> cpsr 60000010</div><div>Dumping thread alsa-sink (6858)</div><div>#00 pc 2aeb5af4(cbaf4) in /lib/<a href="http://libc-2.8.so/__poll" target="_blank">libc-2.8.so/__poll</a> ()</div>
<div>#01 pc 2aeb5c58(cbc58) in /lib/<a href="http://libc-2.8.so/ppoll" target="_blank">libc-2.8.so/ppoll</a> ()</div><div>#02 pc 2ab2573c(3873c) in /usr/lib/.debug/<a href="http://libpulsecore-0.9.so/pa_rtpoll_run" target="_blank">libpulsecore-0.9.so/pa_rtpoll_run</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/rtpoll.c:304</div><div> #03 pc 2c06e058(1e058) in /usr/lib/pulse-0.9.22/modules/.debug/<a href="http://libalsa-util.so/thread_func" target="_blank">libalsa-util.so/thread_func</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/modules/alsa/alsa-sink.c:1578</div><div> #04 pc 2ac63028(3c028) in /usr/lib/.debug/<a href="http://libpulsecommon-0.9.so/internal_thread_func" target="_blank">libpulsecommon-0.9.so/internal_thread_func</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/thread-posix.c:83</div><div> #05 pc 2add0730(6730) in /lib/<a href="http://libpthread-2.8.so/start_thread" target="_blank">libpthread-2.8.so/start_thread</a> ()</div>
<div>#06 pc 2aebf594(d5594) in /lib/<a href="http://libc-2.8.so/__clone" target="_blank">libc-2.8.so/__clone</a> ()</div><div><br></div><div> PC Instructions around faulting address</div><div> 2aeb5ae4 e1a02005 e1a0a000 e1a00008 ef000000 2aeb5af4 </div>
<div> 2aeb5af4 e3700a01 e1a03000 91a04000 8a000009 2aeb5b04 </div><div>Stack:</div><div>depth StackAdr Content Symbolname</div><div> 2c886be8 2c886ca4</div><div> 2c886bec 2afd3000</div><div> 2c886bf0 00000000</div>
<div> 2c886bf4 00000000</div><div> 2c886bf8 00015888(15888) in /usr/bin/.debug/pulseaudio</div><div> 2c886bfc 00071ff8</div><div> 2c886c00 2c886ca4</div><div> 2c886c04 2d0b6370(1a370) in /usr/lib/pulse-0.9.22/modules/.debug/libprotocol-native.so</div>
<div> 2c886c08 2c886ca4</div><div> 2c886c0c 2d0a7cf4(bcf4) in /usr/lib/pulse-0.9.22/modules/.debug/<a href="http://libprotocol-native.so/sink_input_process_msg" target="_blank">libprotocol-native.so/sink_input_process_msg</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/protocol-native.c:1464</div><div> 2c886c10 00000001</div><div> 2c886c14 ffffffff</div><div> 2c886c18 00000002</div>
<div> 2c886c1c 00000002</div><div> 2c886c20 000267d8</div><div> 2c886c24 2aeb5adc(cbadc) in /lib/<a href="http://libc-2.8.so/__poll" target="_blank">libc-2.8.so/__poll</a> ()</div><div> 2c886c28 00000000</div>
<div> #00 -------------------------------------------------------------</div>
<div> 2c886c2c ffffffff</div><div> 2c886c30 000267d8</div><div> 2c886c34 00000002</div><div> 2c886c38 00000001</div><div> 2c886c3c 00000000</div><div> 2c886c40 2c886db8</div><div> 2c886c44 2aeb5c5c(cbc5c) in /lib/<a href="http://libc-2.8.so/ppoll" target="_blank">libc-2.8.so/ppoll</a> ()</div>
<div> 2c886c48 00026e48</div><div> #01 -------------------------------------------------------------</div><div> 2c886c4c 2ab12b20(25b20) in /usr/lib/.debug/<a href="http://libpulsecore-0.9.so/pa_fdsem_before_poll" target="_blank">libpulsecore-0.9.so/pa_fdsem_before_poll</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/fdsem.c:310</div><div> 2c886c50 2ab84700</div><div> 2c886c54 2aafb238(e238) in /usr/lib/.debug/<a href="http://libpulsecore-0.9.so/pa_asyncmsgq_done" target="_blank">libpulsecore-0.9.so/pa_asyncmsgq_done</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/asyncmsgq.c:235</div><div> 2c886c58 00000000</div><div> 2c886c5c 00027810</div><div> 2c886c60 00000064</div>
<div> 2c886c64 00026ea0</div><div> 2c886c68 2ab84700</div><div> 2c886c6c 00000001</div><div> 2c886c70 00000000</div><div> 2c886c74 2c886db8</div><div> 2c886c78 2c886d9c</div><div> 2c886c7c 2aafc754(f754) in /usr/lib/.debug/<a href="http://libpulsecore-0.9.so/pa_asyncq_write_before_poll" target="_blank">libpulsecore-0.9.so/pa_asyncq_write_before_poll</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/asyncq.c:304</div><div> 2c886c80 2c886db8</div><div> 2c886c84 2ab244c4(374c4) in /usr/lib/.debug/<a href="http://libpulsecore-0.9.so/asyncmsgq_read_work" target="_blank">libpulsecore-0.9.so/asyncmsgq_read_work</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/rtpoll.c:545</div><div> 2c886c88 2c886cb0</div><div> 2c886c8c 2c886ca4</div><div> 2c886c90 00000000</div>
<div> 2c886c94 000469b0</div><div> 2c886c98 00026e48</div><div> 2c886c9c 00027810</div><div> 2c886ca0 00000064</div><div> 2c886ca4 000267b0</div><div> 2c886ca8 2ab84700</div><div> 2c886cac 2ab24410(37410) in /usr/lib/.debug/<a href="http://libpulsecore-0.9.so/asyncmsgq_write_before" target="_blank">libpulsecore-0.9.so/asyncmsgq_write_before</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/rtpoll.c:588</div><div> 2c886cb0 00000000</div><div> 2c886cb4 00000000</div><div> 2c886cb8 00000000</div>
<div> 2c886cbc 00071d28</div><div> 2c886cc0 0000000e</div><div> 2c886cc4 00071ff8</div><div> 2c886cc8 0000000c</div><div> 2c886ccc 00000000</div><div> 2c886cd0 00000000</div><div> 2c886cd4 000267b0</div>
<div> 2c886cd8 2ab84700</div><div> 2c886cdc 2ab25740(38740) in /usr/lib/.debug/<a href="http://libpulsecore-0.9.so/pa_rtpoll_run" target="_blank">libpulsecore-0.9.so/pa_rtpoll_run</a> ()</div><div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/pulsecore/rtpoll.c:310</div>
<div> 2c886ce0 00000000</div><div> #02 -------------------------------------------------------------</div><div> 2c886ce4 00000000</div><div> 2c886ce8 00000000</div><div> 2c886cec 000332c4</div><div> 2c886cf0 00000000</div>
<div> 2c886cf4 00033168</div><div> 2c886cf8 2c886dce</div><div> 2c886cfc 00000000</div><div> 2c886d00 00000000</div><div> 2c886d04 00000000</div><div> 2c886d08 00000000</div><div> 2c886d0c 00000000</div>
<div> 2c886d10 00000001</div><div> 2c886d14 00000000</div><div> 2c886d18 00000000</div><div> 2c886d1c 00000000</div><div> 2c886d20 000265d8</div><div> 2c886d24 2c06e05c(1e05c) in /usr/lib/pulse-0.9.22/modules/.debug/<a href="http://libalsa-util.so/thread_func" target="_blank">libalsa-util.so/thread_func</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/modules/alsa/alsa-sink.c:1578</div><div> 2c886d28 00002580</div><div> #03 -------------------------------------------------------------</div>
<div> 2c886d2c 00033854</div><div> 2c886d30 00000000</div><div> 2c886d34 00000000</div><div> 2c886d38 2c887490</div><div> 2c886d3c 00000000</div><div> 2c886d40 2af26000</div><div> 2c886d44 2c087400</div>
<div> 2c886d48 2c07cf48(2cf48) in /usr/lib/pulse-0.9.22/modules/.debug/libalsa-util.so</div><div> 2c886d4c 2c07d00c(2d00c) in /usr/lib/pulse-0.9.22/modules/.debug/libalsa-util.so</div><div> 2c886d50 ffff5c30</div>
<div> 2c886d54 2af2703c</div><div> 2c886d58 2c07cfe0(2cfe0) in /usr/lib/pulse-0.9.22/modules/.debug/libalsa-util.so</div><div> 2c886d5c 2c886dc8</div><div> 2c886d60 2c07ce04(2ce04) in /usr/lib/pulse-0.9.22/modules/.debug/libalsa-util.so</div>
<div> 2c886d64 ffff4978</div><div> 2c886d68 00025aa0</div><div> 2c886d6c 2ac26530</div><div> 2c886d70 003d0f00</div><div> 2c886d74 ffff4300</div><div> 2c886d78 00000000</div><div> 2c886d7c 00000000</div>
<div> 2c886d80 00002580</div><div> 2c886d84 00027d60</div><div> 2c886d88 00000001</div><div> 2c886d8c 000266d8</div><div> 2c886d90 00000000</div><div> 2c886d94 00000000</div><div> 2c886d98 00025aa0</div>
<div> 2c886d9c 00028068</div><div> 2c886da0 00000000</div><div> 2c886da4 000012c0</div><div> 2c886da8 00000000</div><div> 2c886dac 00000000</div><div> 2c886db0 00000000</div><div> 2c886db4 00000000</div>
<div> 2c886db8 000004b0</div><div> 2c886dbc 2ac78468</div><div> 2c886dc0 003d0f00</div><div> 2c886dc4 00000000</div><div> 2c886dc8 00000002</div><div> 2c886dcc 00000000</div><div> 2c886dd0 2addc4c8(124c8) in /lib/<a href="http://libpthread-2.8.so" target="_blank">libpthread-2.8.so</a></div>
<div> 2c886dd4 2ac78de4</div><div> 2c886dd8 00025aac</div><div> 2c886ddc 00025aa0</div><div> 2c886de0 2ac78468</div><div> 2c886de4 003d0f00</div><div> 2c886de8 2addc4c8(124c8) in /lib/<a href="http://libpthread-2.8.so" target="_blank">libpthread-2.8.so</a></div>
<div> 2c886dec 00000000</div><div> 2c886df0 2addc4c8(124c8) in /lib/<a href="http://libpthread-2.8.so" target="_blank">libpthread-2.8.so</a></div><div> 2c886df4 2ac6302c(3c02c) in /usr/lib/.debug/<a href="http://libpulsecommon-0.9.so/pa_atomic_sub" target="_blank">libpulsecommon-0.9.so/pa_atomic_sub</a> ()</div>
<div> at /home/bchang/projects/pulseaudio/pulseaudio-0.9.22/branches/baek/src/./pulsecore/atomic.h:72</div><div> 2c886df8 00000000</div><div> #04 -------------------------------------------------------------</div>
<div> 2c886dfc 00000000</div><div> 2c886e00 00000000</div><div> 2c886e04 00000000</div><div> 2c886e08 00000000</div><div> 2c886e0c 00000000</div><div> 2c886e10 00000000</div><div> 2c886e14 2c887490</div>
<div> 2c886e18 2c887490</div><div> 2c886e1c 2add0688(6688) in /lib/<a href="http://libpthread-2.8.so/start_thread" target="_blank">libpthread-2.8.so/start_thread</a> ()</div><div> 2c886e20 00000000</div><div>
2c886e24 2add0734(6734) in /lib/<a href="http://libpthread-2.8.so/start_thread" target="_blank">libpthread-2.8.so/start_thread</a> ()</div>
<div> 2c886e28 2ade7000</div><div> #05 -------------------------------------------------------------</div><div> 2c886e2c 2c887490</div><div> 2c886e30 2ade7000</div><div> 2c886e34 2c887490</div><div> 2c886e38 2add0688(6688) in /lib/<a href="http://libpthread-2.8.so/start_thread" target="_blank">libpthread-2.8.so/start_thread</a> ()</div>
<div> 2c886e3c 00000152</div><div> 2c886e40 003d0f00</div><div> 2c886e44 2addc4c8(124c8) in /lib/<a href="http://libpthread-2.8.so" target="_blank">libpthread-2.8.so</a></div><div> 2c886e48 00000000</div>
<div> 2c886e4c 2addc4c8(124c8) in /lib/<a href="http://libpthread-2.8.so" target="_blank">libpthread-2.8.so</a></div>
<div> 2c886e50 2c886e28</div><div> 2c886e54 2add0700(6700) in /lib/<a href="http://libpthread-2.8.so/start_thread" target="_blank">libpthread-2.8.so/start_thread</a> ()</div><div> 2c886e58 00000000</div><div>
2c886e5c 00000000</div>
<div> 2c886e60 00000000</div><div> 2c886e64 00000000</div><div> 2c886e68 00000000</div><div> 2c886e6c 00000000</div><div> 2c886e70 00000000</div><div> 2c886e74 00000000</div><div> 2c886e78 00000000</div>
<div> 2c886e7c 00000000</div><div> 2c886e80 00000000</div><div> 2c886e84 00000000</div><div> 2c886e88 00000000</div><div> 2c886e8c 00000000</div><div> 2c886e90 00000000</div><div> 2c886e94 00000000</div>
<div> 2c886e98 00000000</div><div> 2c886e9c 80000010</div><div> 2c886ea0 00000000</div><div> 2c886ea4 00000000</div><div> 2c886ea8 00000000</div><div> 2c886eac 00000000</div><div> 2c886eb0 00000000</div>
<div> 2c886eb4 00000000</div><div> 2c886eb8 00000000</div><div> 2c886ebc 00000000</div><div> 2c886ec0 00000000</div><div> 2c886ec4 00000000</div><div> 2c886ec8 00000000</div><div> 2c886ecc 00000000</div>
<div> 2c886ed0 00000000</div><div> 2c886ed4 00000000</div><div> 2c886ed8 00000000</div><div> 2c886edc 00000000</div><div> 2c886ee0 00000000</div><div> 2c886ee4 00000000</div><div> 2c886ee8 00000000</div>
<div> 2c886eec 00000000</div><div> 2c886ef0 00000000</div><div> 2c886ef4 00000000</div><div> 2c886ef8 00000000</div><div> 2c886efc 00000000</div><div> 2c886f00 00000000</div><div> 2c886f04 00000000</div>
<div> 2c886f08 00000000</div><div> 2c886f0c 00000000</div><div> 2c886f10 00000000</div><div> 2c886f14 00000000</div><div> 2c886f18 00000000</div><div> 2c886f1c 00000000</div><div> 2c886f20 00000000</div>
<div> 2c886f24 00000000</div><div> 2c886f28 00000000</div><div> 2c886f2c 00000000</div><div> 2c886f30 00000000</div><div> 2c886f34 00000000</div><div> 2c886f38 00000000</div><div> 2c886f3c 00000000</div>
<div> 2c886f40 00000000</div><div> 2c886f44 00000000</div><div> 2c886f48 00000000</div><div> 2c886f4c 00000000</div><div> 2c886f50 00000000</div><div> 2c886f54 00000000</div><div> 2c886f58 00000000</div>
<div> 2c886f5c 00000000</div><div> 2c886f60 00000000</div><div> 2c886f64 00000000</div><div> 2c886f68 00000000</div><div> 2c886f6c 00000000</div><div> 2c886f70 00000000</div><div> 2c886f74 00000000</div>
<div> 2c886f78 00000000</div><div> 2c886f7c 00000000</div><div> 2c886f80 00000000</div><div> 2c886f84 00000000</div><div> 2c886f88 00000000</div><div> 2c886f8c 00000000</div><div> 2c886f90 00000000</div>
<div> 2c886f94 00000000</div><div> 2c886f98 00000000</div><div> 2c886f9c 00000000</div><div> 2c886fa0 00000000</div><div> 2c886fa4 00000000</div><div> 2c886fa8 00000000</div><div> 2c886fac 00000000</div>
<div> 2c886fb0 00000000</div><div> 2c886fb4 00000000</div><div> 2c886fb8 00000000</div><div> 2c886fbc 00000000</div><div> 2c886fc0 00000000</div><div> 2c886fc4 00000000</div><div> 2c886fc8 00000000</div>
<div> 2c886fcc 2c8874d8</div><div> 2c886fd0 2c887490</div><div> 2c886fd4 2add0688(6688) in /lib/<a href="http://libpthread-2.8.so/start_thread" target="_blank">libpthread-2.8.so/start_thread</a> ()</div><div>
2c886fd8 00000078</div>
<div> 2c886fdc 003d0f00</div><div> 2c886fe0 2addc4c8(124c8) in /lib/<a href="http://libpthread-2.8.so" target="_blank">libpthread-2.8.so</a></div><div> 2c886fe4 00000000</div><div> 2c886fe8 2addc4c8(124c8) in /lib/<a href="http://libpthread-2.8.so" target="_blank">libpthread-2.8.so</a></div>
<div> 2c886fec 2aebf598(d5598) in /lib/<a href="http://libc-2.8.so/__clone" target="_blank">libc-2.8.so/__clone</a> ()</div><div> 2c886ff0 00000000</div><div> #06 -------------------------------------------------------------</div>
<div> 2c886ff4 00000000</div><div> 2c886ff8 00000000</div><div> 2c886ffc 00000000</div><div> 2c887000 00000000</div><div> 2c887004 00000000</div><div> 2c887008 00000000</div><div> 2c88700c 00000000</div>
<div> 2c887010 00000000</div><div> 2c887014 00000000</div><div> 2c887018 00000000</div><div> 2c88701c 00000000</div><div> 2c887020 00000000</div><div> 2c887024 00000000</div><div> 2c887028 00000000</div>
<div> 2c88702c 00000000</div><div> 2c887030 00000000</div><div> 2c887034 00000000</div><div>time to list this stack:0s 15423us ptrace_peektext=276</div><div>--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---</div>
<div>pid: 6857, tid: 6859</div><div> r0 fffffdfc</div><div> r1 00000002</div><div> r2 ffffffff</div><div> r3 00000000</div><div> r4 00000001</div><div> r5 ffffffff</div><div> r6 00000002</div><div> r7 000000a8</div>
<div> r8 00036c60</div><div> r9 00000000</div><div> r10 00000000</div><div> fp 00000000</div><div> ip 000030ec</div><div> sp 2d090c2c</div><div> lr 2aecc2b8(e22b8) in /lib/<a href="http://libc-2.8.so/__libc_enable_asynccancel" target="_blank">libc-2.8.so/__libc_enable_asynccancel</a> ()</div>
<div> pc ffff0520</div><div> cpsr 60000010</div><div><br></div><div><div><div></div><div><br><br><div class="gmail_quote">On Thu, Apr 7, 2011 at 5:24 PM, Baek Chang <span dir="ltr"><<a href="mailto:baeksan@ccrma.stanford.edu" target="_blank">baeksan@ccrma.stanford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Running into a weird issue. I am doing the following on 0.9.22 version of pulseaudio<div><br></div><div>start pulseaudio, and play and audio file.</div>
<div>when the file is done playing, after 5 seconds, the alsa sink suspends.</div>
<div>then I let the system go to power collapse.</div><div><br></div><div>When I resume and play an audio file again, alsa sink is blocked somewhere, I do not see the message <br><div><div>I: alsa-sink.c: Trying resume...</div>
<div>The PA_SINK_SET_STATE message doesn't seem to be called to the alsa sink.</div><div><br></div><div>Alsa is not blocked at this point, I can do an aplay to hw:0 and hear the output, bypassing pulseaudio.</div><div>
<br></div><div><br></div><div>here is an example from pulseaudio with debug messages enabled, after suspend/resume:</div><div><br></div><div><div>aplay -D media /usr/palm/sounds/phone.wav -vvv &</div><div>root@palm-webos:/var/home/root# I: client.c: Created 2 "Native client (UNIX socket client)"</div>
<div>D: protocol-native.c: Protocol version: remote 19, local 19</div><div>I: protocol-native.c: Got credentials: uid=0 gid=0 success=1</div><div>D: protocol-native.c: SHM possible: yes</div><div>D: protocol-native.c: Negotiated SHM: no</div>
<div>Playing WAVE '/usr/palm/sounds/phone.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo</div><div>D: module-suspend-on-idle.c: Sink pcm_output becomes busy.</div><div>D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0</div>
<div>D: memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0</div><div>I: sink-input.c: Created input 0 "ALSA Playback" on pcm_output with sample spec s16le 2ch 44100Hz and channel map front-left,front-right</div>
<div>I: sink-input.c: <a href="http://media.name" target="_blank">media.name</a> = "ALSA Playback"</div><div>I: sink-input.c: <a href="http://application.name" target="_blank">application.name</a> = "ALSA plug-in [aplay]"</div>
<div>I: sink-input.c: native-protocol.peer = "UNIX socket client"</div><div>I: sink-input.c: native-protocol.version = "19"</div><div>I: sink-input.c: <a href="http://application.process.id" target="_blank">application.process.id</a> = "3593"</div>
<div>I: sink-input.c: application.process.user = "root"</div><div>I: sink-input.c: application.process.host = "palm-webos"</div><div>I: sink-input.c: application.process.binary = "aplay"</div>
<div>I: sink-input.c: application.language = "C"</div><div>I: sink-input.c: application.process.machine_id = "palm-webos"</div><div>I: protocol-native.c: Requested tlength=500.00 ms, minreq=124.99 ms</div>
<div>D: protocol-native.c: Early requests mode enabled, configuring sink latency to minreq.</div><div>D: memblockq.c: memblockq requested: maxlength=4194304, tlength=88200, base=4, prebuf=66152, minreq=9596 maxrewind=0</div>
<div>D: memblockq.c: memblockq sanitized: maxlength=4194304, tlength=88200, base=4, prebuf=66152, minreq=9596 maxrewind=0</div><div>I: protocol-native.c: Final latency 554.42 ms = 391.20 ms + 2*54.40 ms + 54.42 ms</div><div>
D: sink-input.c: SetVolumeWithRamping: Virtual Volume From 1646=0.000016 to 41160=0.247734</div><div>D: sink-input.c: Sink input's soft volume is 41160= 0.247734 </div><div>D: sink-input.c: Volume Ramping: Point 1 is 1=0.000015, Point 2 is 16236=0.247742</div>
<div>I: module-palm-policy.c: parse_message: ramp command received, sink is 4, volumetoset:70, headphones:0</div><div>ALSA <-> PulseAudio PCM I/O Plugin</div><div>Its setup is:</div><div> stream : PLAYBACK</div>
<div> access : RW_INTERLEAVED</div><div> format : S16_LE</div><div> subformat : STD</div><div> channels : 2</div><div> rate : 44100</div><div> exact rate : 44100 (44100/1)</div><div> msbits : 16</div>
<div> buffer_size : 22050</div><div> period_size : 5512</div><div> period_time : 125000</div><div> tstamp_mode : NONE</div><div> period_step : 1</div><div> avail_min : 5512</div><div> period_event : 0</div>
<div> start_threshold : 22050</div><div> stop_threshold : 22050</div><div> silence_threshold: 0</div><div> silence_size : 0</div><div> boundary : 1445068800</div><div>Max peak (11024 samples): 0x00002dd0 ######## 35%</div>
<div>Max peak (11024 samples): 0x0000332c ######## 39%</div><div>Max peak (11024 samples): 0x00003741 ######### 43%</div><div>D: protocol-native.c: Requesting rewind due to end of underrun.</div><div>
D: protocol-native.c: Requesting rewind due to end of underrun.</div><div>Max peak (11024 samples): 0x0000353f ######### 41%</div><div>D: protocol-native.c: Requesting rewind due to end of underrun.</div><div>
D: protocol-native.c: Requesting rewind due to end of underrun.</div>
</div><div><br></div><div>Just waits here forever. Sink doesnt get resume call, and alsasink doesn't get resumed either</div><div><br></div><div>Any ideas?</div><div><br></div>-- <br>-baeksanchang<br>
</div></div>
</blockquote></div><br><br clear="all"><br></div></div>-- <br>-baeksanchang<br>
</div></div>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>-baeksanchang<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>-baeksanchang<br>