[mythtv-users] Re:RE:Waited 2 seconds... Still... Any more ideas?

Mark Frey markfrey at fastmail.fm
Sun Dec 28 20:47:39 EST 2003


Well, for the cases where you see the ReadStringList timeout (quick).
messages, that explains the endless "waiting 2 seconds" messages. That is
the one code path I could see that would cause that. Essentially you are
hitting timeouts on the sockets through which the frontend and backend
communicate. This is more or less unrecoverable as the code currently
stands. I am a little suprised that it is unstable after you exit back to
the menu with escape though. I would expect things to revert back to normal,
since when you start watching live tv the sockets etc. are recreated. I am
not familiar with the audio buffering code, but it looks from the output
like that also is a result of the sockets timing out.

So the question is why the timeouts for your setup. What settings are you
using for live tv? Resolution, encoding, etc.

-Mark

Tony Maro wrote:
>Mark Frey wrote:
>
>>Tony Maro wrote:
>>
>>
>>>Keep in mind when I say freeze... I mean the video freezes and the
>>>console is scrolling "Waited 2 seconds"...
>>>
>>>
>>
>>Right before the series of "Waited 2 seconds" messages do you see a
>>"ReadStringList timeout (quick)." message in the console?
>>
>>
>Well I did some testing tonight and came up with three different
>"freezes". I didn't capture the text of one of them, unfortunately,
>because I had forgotten to dump the output to a file.
>
>Here's one:
>
>2003-12-28 06:31:21 Changing from None to WatchingLiveTV
>2003-12-28 06:33:50 prebuffering pause
>2003-12-28 06:33:52 prebuffering pause
>2003-12-28 07:45:25 prebuffering pause
>2003-12-28 07:45:42 ReadStringList timeout (quick).
>2003-12-28 07:45:42 RemoteFile::Read(): No response from control socket.
>2003-12-28 07:45:42 RemoteFile::Read() failed in RingBuffer::safe_read().
>2003-12-28 07:45:42 Error writing stringlist
>2003-12-28 07:45:42 RemoteFile::Read() failed in RingBuffer::safe_read().
>2003-12-28 07:45:42 Error writing stringlist
>... Repeat last 2 lines ad infinitum (I finally fell asleep)
>
>Here's another. This time I was compiling MythTV in the background to
>trigger a crash earlier. From the timestamp you can see it worked:
>2003-12-28 05:34:49 Changing from None to WatchingLiveTV
>2003-12-28 05:35:50 prebuffering pause
>2003-12-28 05:36:23 prebuffering pause
>2003-12-28 05:36:36 prebuffering pause
>2003-12-28 05:36:53 prebuffering pause
>2003-12-28 05:37:25 prebuffering pause
>2003-12-28 05:37:35 prebuffering pause
>2003-12-28 05:37:39 prebuffering pause
>Audio buffer overflow, audio data lost!
>ASSERT: "i <= nodes" in /usr/lib/qt3/include/qvaluelist.h (372)
>QSocketDevice::writeBlock: Invalid socket
>Audio buffer overflow, audio data lost!
>ASSERT: "i <= nodes" in /usr/lib/qt3/include/qvaluelist.h (372)
>QSocketDevice::writeBlock: Invalid socket
>Audio buffer overflow, audio data lost!
>ASSERT: "i <= nodes" in /usr/lib/qt3/include/qvaluelist.h (372)
>QSocketDevice::writeBlock: Invalid socket
>Audio buffer overflow, audio data lost!
>ASSERT: "i <= nodes" in /usr/lib/qt3/include/qvaluelist.h (372)
>QSocketDevice::writeBlock: Invalid socket
>Audio buffer overflow, audio data lost!
>ASSERT: "i <= nodes" in /usr/lib/qt3/include/qvaluelist.h (372)
>QSocketDevice::writeBlock: Invalid socket
>
>And then (notice, no complaint of audio data lost...):
>2003-12-28 16:45:32 Changing from None to WatchingLiveTV
>2003-12-28 17:00:23 prebuffering pause
>2003-12-28 17:00:40 ReadStringList timeout (quick).
>2003-12-28 17:00:40 RemoteFile::Read(): No response from control socket.
>2003-12-28 17:00:40 RemoteFile::Read() failed in RingBuffer::safe_read().
>2003-12-28 17:00:40 Error writing stringlist
>2003-12-28 17:00:40 RemoteFile::Read() failed in RingBuffer::safe_read().
>2003-12-28 17:00:40 Error writing stringlist
>
>
>The fourth (actually the first, which is why I missed capturing the
>output) had three "prebuffering pause" followed by about 15 "waited 2
>seconds" followed by a repeating pattern of:
>Audio buffer overflow, audio data lost!
>ASSERT: "i <= nodes" in /usr/lib/qt3/include/qvaluelist.h (372)
>QSocketDevice::writeBlock: Invalid socket



More information about the mythtv-users mailing list