[mythtv-users] More on the ReadStringList timeout issue

Andrew Dodd atd7 at cornell.edu
Sat Feb 7 20:48:14 EST 2004


I added some code that would print when ReadStringList was started, and in
addition print out the actual number for elapsed that triggered the timeout in
ReadStringList in libs/libmyth/util.cpp

I'm also recording the time that the timer was started and printing it, and when
it times out, printing the time that the function was started.

Here's the following log:

-------------------
2004-02-07 20:25:10 mythfrontend version: 0.14.20040123-1 www.mythtv.org
2004-02-07 20:25:10 Enabled verbose msgs :all
2004-02-07 20:25:10 Registering Internal as a media playback plugin.
2004-02-07 20:25:26 Connecting to backend server: 192.168.2.100:6543 (try 1 of 5)
2004-02-07 20:25:26 20      MYTH_PROTO_VERSION 1
2004-02-07 20:25:26 ReadStringList Started at 20:25:26.
2004-02-07 20:25:26 Using protocol version 1
2004-02-07 20:25:26 27      ANN Playback dt-adodddell 0
2004-02-07 20:25:26 ReadStringList Started at 20:25:26.
2004-02-07 20:25:26 21      QUERY_RECORDINGS Play
2004-02-07 20:25:26 ReadStringList Started at 20:25:26.
2004-02-07 20:25:26 ReadStringList timeout, 20:25:26, 86399998.
Connection to backend server lost
2004-02-07 20:25:26 20      MYTH_PROTO_VERSION 1
2004-02-07 20:25:26 ReadStringList Started at 20:25:26.
2004-02-07 20:25:26 Using protocol version 1
2004-02-07 20:25:26 27      ANN Playback dt-adodddell 1
2004-02-07 20:25:41 Connecting to backend server: 192.168.2.100:6543 (try 1 of 5)
2004-02-07 20:25:41 20      MYTH_PROTO_VERSION 1
2004-02-07 20:25:41 ReadStringList Started at 20:25:41.
2004-02-07 20:25:41 Using protocol version 1
2004-02-07 20:25:41 27      ANN Playback dt-adodddell 0
2004-02-07 20:25:41 ReadStringList Started at 20:25:41.
2004-02-07 20:25:41 ReadStringList timeout (quick), 20:25:41, 86399996.
2004-02-07 20:25:41 45      []:[]QUERY_IS_ACTIVE_BACKEND[]:[]dt-adodddell
2004-02-07 20:25:41 Error writing stringlist
Connection to backend server lost
2004-02-07 20:25:41 20      MYTH_PROTO_VERSION 1
2004-02-07 20:25:41 ReadStringList Started at 20:25:41.
2004-02-07 20:25:41 Using protocol version 1
2004-02-07 20:25:41 27      ANN Playback dt-adodddell 1
---------------
So for some reason, the timer is now thinking that I'm a few milliseconds short
of one day in the future...  Despite the fact that less than a second has passed.

WEIRD.

Anyone know what could be causing this???

I added the following code in the loop that checks for timeouts:

----
if(elapsed > 43200000)
{
  VERBOSE(VB_GENERAL,"Elapsed > 12h? I think not!");
  elapsed = 0;
  timer.restart();
}
----

It's a quick and ugly hack, but it works for now.



More information about the mythtv-users mailing list