http://redmine.audacious-media-player.org/http://redmine.audacious-media-player.org/welcome/favicon.ico?15159353402020-04-21T21:10:27ZRedmineAudacious - Bug #973: "snd_pcm_recover failed" alsa error and "String leaked" warningshttp://redmine.audacious-media-player.org/issues/973?journal_id=36582020-04-21T21:10:27ZJohn Lindgrenjohn@jlindgren.net
<ul></ul><p>The ALSA EIO errors and the "String leaked" warnings sound like two different issues to me. But I cannot reproduce either one.</p>
<p>An EIO error returned by ALSA is also not necessarily a bug in Audacious; it could be also a bug in the driver or in libasound. What ALSA device have you selected? Does the same EIO error occur with "hw:0,0"?</p> Audacious - Bug #973: "snd_pcm_recover failed" alsa error and "String leaked" warningshttp://redmine.audacious-media-player.org/issues/973?journal_id=36592020-04-21T21:14:52ZJohn Lindgrenjohn@jlindgren.net
<ul></ul><p>As for the "String leaked" warning, does it occur if you disable all other General plugins except Song Change? Does it occur in headless mode?</p> Audacious - Bug #973: "snd_pcm_recover failed" alsa error and "String leaked" warningshttp://redmine.audacious-media-player.org/issues/973?journal_id=36632020-04-22T00:35:48ZJohn Lindgrenjohn@jlindgren.net
<ul><li><strong>Subject</strong> changed from <i>"snd_pcm_recover failed" alsa error and "String leaked" warnings when Audacious is asked to play the same file almost immediately after the end of the current playlist is reached</i> to <i>"snd_pcm_recover failed" alsa error and "String leaked" warnings</i></li></ul> Audacious - Bug #973: "snd_pcm_recover failed" alsa error and "String leaked" warningshttp://redmine.audacious-media-player.org/issues/973?journal_id=36692020-04-22T07:40:12ZIgor Kushnir
<ul></ul>I have two sound cards:
<ul>
<li><em>CMI8788 [OXygen HD Audio] (Virtuoso 100 (Xonar D1))</em> (in pavucontrol) or <em>CARD=D1 - Xonar D1, Multichannel</em> (in Audacious ALSA Output Settings)</li>
<li><em>Built-in Audio</em> (in pavucontrol) or <em>CARD=Intel - HDA Intel ALC887 Analog</em> (in Audacious ALSA Output Settings)</li>
</ul>
<p>I keep one of them disabled in PulseAudio settings.<br />When I try to select "hw:0:0 - Multichannel" or "hw:1:0 - ALC887 Analog" as <em>PCM device</em> in Audacious ALSA Output Settings, I get one of the following errors in a combobox:<br /><em>ALSA error: snd_pcm_open failed: Device or resource busy.</em> (more common) or <em>ALSA error: snd_pcm_hw_params_set_channels failed: Invalid argument.</em><br />So I usually select "default - Default PCM device" as <em>PCM device</em> and "default - Default mixer device" as <em>Mixer device</em>. This configuration works with the currently enabled sound card, regardless of which card I enable/disable in pavucontrol. But the <em>snd_pcm_recover failed</em> error also happens regardless of which card is the default and being used.</p> Audacious - Bug #973: "snd_pcm_recover failed" alsa error and "String leaked" warningshttp://redmine.audacious-media-player.org/issues/973?journal_id=36702020-04-22T08:08:50ZIgor Kushnir
<ul></ul><p>I have disabled all plugins except for <em>Song Change</em>, <em>Sndfile Plugin</em> (to play the WAW file) and <em>Audacious Playlists (audpl)</em>. Still get the <em>String leaked</em> warnings sometimes.</p>
<p>I am not able to reproduce the error in headless mode. But I've been able to reproduce the warnings in headless mode, even with all but three plugins disabled. I start and quit Audacious like this:<br /><pre><code class="ruby syntaxhl"><span class="CodeRay">audacious -p <span class="string"><span class="delimiter">'</span><span class="content">/usr/share/sounds/alsa/Front_Center.wav</span><span class="delimiter">'</span></span> -<span class="constant">H</span>
audtool shutdown
</span></code></pre><br />Could the alsa error output be redirected elsewhere or not printed at all? Or does this mean that the ALSA issue simply doesn't happen in headless mode?</p>
<p>John Lindgren wrote:</p>
<blockquote>
<p>The ALSA EIO errors and the "String leaked" warnings sound like two different issues to me. But I cannot reproduce either one.</p>
</blockquote>
<p>Yes, probably different, but I hoped that you'll be able to reproduce both in the same way.<br />Did you make sure that it is the <em>Song Change</em> plugin that repeats the playback? Repeat and Shuffle options can be indistinguishable from this <em>Song Change</em> configuration if the sleep interval is small. So you could verify that <em>Song Change</em> is being activated by temporarily increasing the sleep interval to 5 [seconds] and making sure that this delay actually occurs.</p> Audacious - Bug #973: "snd_pcm_recover failed" alsa error and "String leaked" warningshttp://redmine.audacious-media-player.org/issues/973?journal_id=41462021-08-27T22:46:21ZJohn Lindgrenjohn@jlindgren.net
<ul></ul><p>Has anyone else reproduced this in >1 year?</p> Audacious - Bug #973: "snd_pcm_recover failed" alsa error and "String leaked" warningshttp://redmine.audacious-media-player.org/issues/973?journal_id=41602021-08-28T08:52:54ZIgor Kushnir
<ul></ul><p>I doubt anyone else has tried to reproduce this issue.<br />I just followed the steps to reproduce and got exactly the same output as in the issue description from Audacious 4.1. The only differences are in the last line of the output (the line number and the number of bytes allocated at exit):<br /><pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="constant">WARNING</span> runtime.cc:<span class="integer">391</span> [aud_leak_check]: <span class="constant">Bytes</span> allocated at <span class="key">exit</span>: <span class="integer">756</span>
</span></code></pre></p>