Open Audacious-Bot opened 6 months ago
Original Redmine Comment Author Name: John Lindgren Original Date: 2020-04-21T21:10:27Z
The ALSA EIO errors and the "String leaked" warnings sound like two different issues to me. But I cannot reproduce either one.
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"?
Original Redmine Comment Author Name: John Lindgren Original Date: 2020-04-21T21:14:52Z
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?
Original Redmine Comment Author Name: Igor Kushnir Original Date: 2020-04-22T07:40:12Z
I have two sound cards:
I keep one of them disabled in PulseAudio settings. When I try to select "hw:0:0 - Multichannel" or "hw:1:0 - ALC887 Analog" as PCM device in Audacious ALSA Output Settings, I get one of the following errors in a combobox: _ALSA error: snd_pcmopen failed: Device or resource busy. (more common) or _ALSA error: snd_pcm_hw_params_setchannels failed: Invalid argument. So I usually select "default - Default PCM device" as PCM device and "default - Default mixer device" as Mixer device. This configuration works with the currently enabled sound card, regardless of which card I enable/disable in pavucontrol. But the _snd_pcmrecover failed error also happens regardless of which card is the default and being used.
Original Redmine Comment Author Name: Igor Kushnir Original Date: 2020-04-22T08:08:50Z
I have disabled all plugins except for Song Change, Sndfile Plugin (to play the WAW file) and Audacious Playlists (audpl). Still get the String leaked warnings sometimes.
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:
audacious -p '/usr/share/sounds/alsa/Front_Center.wav' -H
audtool shutdown
</code>
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?
John Lindgren wrote:
The ALSA EIO errors and the "String leaked" warnings sound like two different issues to me. But I cannot reproduce either one.
Yes, probably different, but I hoped that you'll be able to reproduce both in the same way. Did you make sure that it is the Song Change plugin that repeats the playback? Repeat and Shuffle options can be indistinguishable from this Song Change configuration if the sleep interval is small. So you could verify that Song Change is being activated by temporarily increasing the sleep interval to 5 [seconds] and making sure that this delay actually occurs.
Original Redmine Comment Author Name: John Lindgren Original Date: 2021-08-27T22:46:21Z
Has anyone else reproduced this in >1 year?
Original Redmine Comment Author Name: Igor Kushnir Original Date: 2021-08-28T08:52:54Z
I doubt anyone else has tried to reproduce this issue. 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):
WARNING runtime.cc:391 [aud_leak_check]: Bytes allocated at exit: 756
</code>
Author Name: Igor Kushnir Original Redmine Issue: https://redmine.audacious-media-player.org/issues/973
Steps to reproduce:
Enable Song Change Audacious plugin and set its Command to run at the end of the playlist to:
Set Audio Output plugin to ALSA Output.
Disable all Repeat and Shuffle options in Audacious to let the configured Song Change command run.
Quit Audacious and run it from terminal like this:
Let Audacious play this short file repeatedly for several minutes. You may want to mute Audacious in pavucontrol.
If no errors appear in Audacious output after 10 minutes, try a different sleep interval. I get more than one error per minute with the interval 0.1. But I also get at least one error in less than 10 minutes with intervals 0.01, 0.05, 0.2 and 0.5.
Quit Audacious and examine its output. Possible result:
Expected result: empty output.
Note that the String leaked warnings don't appear every time. Perhaps once in three such tests on average.
In case you don't have an audio file at the specified path, I'm attaching mine to this bug report. The path to the file shouldn't matter. The bug is not limited to this particular file, but it allows to reproduce the issue with minimum effort due to its short duration.
I have reproduced this bug with audacious and audacious-plugins built from current git master: https://github.com/audacious-media-player/audacious/commit/ffd9ac46a43f3fb0e02d06adf382291f82037a16 ; https://github.com/audacious-media-player/audacious-plugins/commit/89b6ab575ec823b67655bea2fbd2dc7429465377 (built both in Debug and Release modes)
Sample_file.zip