<div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">







Package: mpg123<br>Version: 1.20.1-2+deb8u1<br><br>$ uname -a<br>Linux BBB 4.4.30-ti-r64 #1 SMP Fri Nov 4 21:23:33 UTC 2016 armv7l GNU/Linux<br><br>$ dpkg -s libc6 | grep ^Version<br>Version: 2.19-18+deb8u6<p class="m_-4861643418778764273gmail-p1">Description: the file sample rate is retrieved using the "FORMAT" command. This is needed to calculate total and current time (in conjunction with the sample count/total retrieved with "SAMPLE" command). If "FORMAT" command is issued when a (valid) file has been loaded but playback not started (using the "LOADPAUSED/LP" command) the sample rate (and channel count) are properly reported. However, when playback of the file is started, mpg123 crashes (see log below). I have duplicated this on a USB sound "card" as well as default hardware. It does not appear to be an alsa/audio issue because the FORMAT command does return the correct value, and the file can be played back correctly on the same system. I have also tried FORMAT then "SEEK 0", "FORMAT" then "STOP" then "LOADPAUSED" and "PAUSE" but the crash still happens. I've found no sequence of subsequent actions following a "FORMAT" of an unplayed file that does not result in a crash upon playback.</p><div style="margin:0px;padding:0px;border:0px;font-family:arial,helvetica,sans-serif;font-size:13px">Log: (inline descriptive comments added to actual log output is designated by //)</div><div style="margin:0px;padding:0px;border:0px;font-family:arial,helvetica,sans-serif;font-size:13px">Note: skipping the "FORMAT" command in the log below will prevent the crash.</div><div style="margin:0px;padding:0px;border:0px"><br></div><div style="margin:0px;padding:0px;border:0px">$ mpg123 -R -a default:Device    // start mpg123 in "Remote command mode" with standard McASP audio device<br>@R MPG123 (ThOr) v8               // response: normal startup message</div><div style="margin:0px;padding:0px;border:0px">LOADPAUSED ./my_file.mp3      // command: "LOADPAUSED/LP" - load file ("my_file.mp3") but do not begin playback</div><div style="margin:0px;padding:0px;border:0px">@I ID3v2.title:my_track               // response: ID3 information...<br>@I ID3v2.artist:my_artist<br>@I ID3v2.album:my_album<br>@I ID3v2.year:2017<br>@I ID3v2.comment:12++<br>@I ID3v2.genre:Country & Folk<br>@P 1                                           // response: file loaded & paused, ready to begin file playback<br>FORMAT                                     // command: "FORMAT" - get audio sample rate and channel count<br>@FORMAT 44100 2                   // response: 44100 Hz, 2-channel<br>PAUSE                                        // command: "PAUSE" - pause/un-pause<br>@P 2                                           // response: OK, playing file, but then...<br><br>[alsa.c:230] error: Fatal problem with alsa output, error -5.<br><br>[audio.c:614] error: Error in writing audio (Success?)!</div><div style="margin:0px;padding:0px;border:0px"><br>[mpg123.c:681] error: Deep trouble! Cannot flush to my output anymore!<br><br></div></div></div></div>