[mythtv] ringbuffer.cpp
Jonas Arndt
jonas.arndt at thearndtfamily.com
Thu Feb 20 23:17:08 UTC 2014
On 02/20/2014 12:43 AM, Jean-Yves Avenard wrote:
> On 20 February 2014 17:47, Jonas Arndt <jonas.arndt at thearndtfamily.com> wrote:
>
>> I was out for a while playing a hockey game . So just to conclude, the
>> https://code.mythtv.org/trac/attachment/ticket/12045/12045-try2.diff is the
>> latest patch, right?
> no it isn't
>
> this one is:
> https://github.com/MythTV/mythtv/commit/20f7cd2858e79385ceec07b2c19c7e4f84714e18.diff
>
> I've found another issue in the ringbuffer (different problem) where
> under some circumstances reading from the file would get interrupted
> even though the file isn't terminated yet....
>
> this can happen if the backend is a tad slow into writing to the file;
> if the reader reads EOF in between two writes; then the read will be
> interrupted and the frontend will freeze..
>
JY,
I actually had a freeze on my system just now. This after having worked
all day. I am on the committed patch on the back-end. Just rewinding
slightly on the front-end, followed by a pause/play fixed it.
Front-end log
Feb 20 15:51:07 xbm mythfrontend.real: mythfrontend[19872]: I
CoreContext audio/audiooutputbase.cpp:792 (Reconfigure) AOBase: Opening
audio device 'hw:CARD=NVidia,DEV=7' ch 2(6) sr 48000 sf signed 16 bit
reenc 0
Feb 20 15:51:07 xbm mythfrontend.real: mythfrontend[19872]: E
CoreContext audio/audiooutputalsa.cpp:783 (SetParameters) ALSA:
Requested 500000us got 341333 buffer time
Feb 20 16:04:07 xbm mythfrontend.real: mythfrontend[19872]: I Decoder
ringbuffer.cpp:1098 (WaitForAvail)
RingBuf(myth://192.168.2.5:6543/7689_20140220225105.mpg): Waited 0.2
seconds for data #012#011#011#011to become available... 0 < 32768
Feb 20 16:04:07 xbm mythfrontend.real: mythfrontend[19872]: N
CoreContext mythplayer.cpp:2130 (PrebufferEnoughFrames) Player(1):
Waited 104ms for video buffers AAAAAAAAAADDdL
Feb 20 16:04:07 xbm mythfrontend.real: mythfrontend[19872]: I Decoder
ringbuffer.cpp:1098 (WaitForAvail)
RingBuf(myth://192.168.2.5:6543/7689_20140220225105.mpg): Waited 0.5
seconds for data #012#011#011#011to become available... 0 < 32768
Feb 20 16:04:07 xbm mythfrontend.real: mythfrontend[19872]: N
CoreContext mythplayer.cpp:2130 (PrebufferEnoughFrames) Player(1):
Waited 208ms for video buffers AAAAAAAAAADDdL
Feb 20 16:04:07 xbm mythfrontend.real: mythfrontend[19872]: N
CoreContext mythplayer.cpp:2130 (PrebufferEnoughFrames) Player(1):
Waited 312ms for video buffers AAAAAAAAAADDdL
Feb 20 16:04:08 xbm mythfrontend.real: mythfrontend[19872]: N
CoreContext mythplayer.cpp:2130 (PrebufferEnoughFrames) Player(1):
Waited 416ms for video buffers AAAAAAAAAADDdL
....
Feb 20 16:04:21 xbm mythfrontend.real: mythfrontend[19872]: N
CoreContext mythplayer.cpp:2130 (PrebufferEnoughFrames) Player(1):
Waited 14055ms for video buffers AAAAAAAAAADDdL
Feb 20 16:04:21 xbm mythfrontend.real: mythfrontend[19872]: I Decoder
ringbuffer.cpp:1098 (WaitForAvail)
RingBuf(myth://192.168.2.5:6543/7689_20140220225105.mpg): Waited 14.2
seconds for data #012#011#011#011to become available... 18392 < 32768
Feb 20 16:04:25 xbm mythfrontend.real: mythfrontend[19872]: E Decoder
avformatdecoder.cpp:4676 (GetFrame) decoding error#012#011#011#011eno:
Unknown error 541478725 (541478725)
Feb 20 16:05:26 mythfrontend.real: last message repeated 1686 times
On the backend, just
Feb 20 15:52:03 myth1204 mythbackend: mythbackend[14662]: N Expire
autoexpire.cpp:641 (SendDeleteMessages) Expiring 0 MB for 7653 at
2014-02-20T22:50:42Z => "The Ellen DeGeneres Show"
Feb 20 15:54:03 myth1204 mythbackend: mythbackend[14662]: N Expire
autoexpire.cpp:641 (SendDeleteMessages) Expiring 18 MB for 7653 at
2014-02-20T22:50:43Z => "The Ellen DeGeneres Show"
Feb 20 15:54:03 myth1204 mythbackend: mythbackend[14662]: N Expire
autoexpire.cpp:641 (SendDeleteMessages) Expiring 0 MB for 7689 at
2014-02-20T22:51:04Z => "XXII Winter Olympics":Hockey
Feb 20 16:04:03 myth1204 mythbackend: mythbackend[14662]: N Expire
autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams(): Max required
Free Space: 3.0 GB w/freq: 14 min
Feb 20 16:04:03 myth1204 mythbackend: mythbackend[14662]: N Expire
autoexpire.cpp:641 (SendDeleteMessages) Expiring 9983 MB for 7736 at
2014-02-20T02:03:01Z => "Billy Madison"
Feb 20 16:04:11 myth1204 mythbackend: mythbackend[14662]: W TFWWrite
threadedfilewriter.cpp:545 (DiskLoop)
TFW(/Recordings/7689_20140220225105.mpg:85): write(65424) cnt 131 total
8540088 -- took a long time, 4082 ms
Feb 20 16:04:16 myth1204 mythbackend: mythbackend[14662]: W TFWWrite
threadedfilewriter.cpp:545 (DiskLoop)
TFW(/Recordings/7689_20140220225105.mpg:85): write(65424) cnt 132 total
8503240 -- took a long time, 3919 ms
Could this be the other issue you were talking about?
// Jonas
More information about the mythtv-dev
mailing list