Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2006 16:01:47 +0100
From:      usleepless@gmail.com
To:        "Torfinn Ingolfsen" <torfinn.ingolfsen@broadpark.no>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: MythTV port - status report
Message-ID:  <c39ec84c0612260701v33f61d1cjdb11f0bd6ed876de@mail.gmail.com>
In-Reply-To: <20061226023552.7b4ef0c8.torfinn.ingolfsen@broadpark.no>
References:  <20061224230155.fc0a6c6a.torfinn.ingolfsen@broadpark.no> <20061225000044.6670e21f.torfinn.ingolfsen@broadpark.no> <20061226013441.9dc242e3.torfinn.ingolfsen@broadpark.no> <20061226023552.7b4ef0c8.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Torfinn,

On 12/26/06, Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> wrote:
> On Tue, 26 Dec 2006 01:34:41 +0100
> Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> wrote:
>
> > Currently installing mythtv on an i386 machine, just to see if I get
> > the same troubles there. It haven't got a TV card (and no space for
>
> Aha, this is interesting.
> tingo@kg-work$ uname -a
> FreeBSD kg-work.kg4.no 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Sat Nov 18
> 13:59:20 CET 2006     root@kg-work.kg4.no:/usr/obj/usr/src/sys/SS51G  i386
>
> The last part of 'mythfilldatabase --manual':
> ===============================================================
> | Attempting to contact the master backend for rescheduling.  |
> | If the master is not running, rescheduling will happen when |
> | the master backend is restarted.                            |
> ===============================================================
> 2006-12-26 02:27:12.798 Connecting to backend server: 127.0.0.1:6543 (try 1
> of 5)
> 2006-12-26 02:27:12.809 Using protocol version 30
> 2006-12-26 02:27:19.815 MythSocket(8129000:21): readStringList: Error,
> timeout (quick).
> 2006-12-26 02:27:19.823 MythSocket(8129000:-1): writeStringList: Error,
> called with unconnected socket.
> 2006-12-26 02:27:19.823 MythSocket(8129000:-1): readStringList: Error,
> called with unconnected socket.
> 2006-12-26 02:27:19.823 Connection to backend server lost
> 2006-12-26 02:27:19.824 Connecting to backend server: 127.0.0.1:6543 (try 1
> of 5)
> 2006-12-26 02:27:19.830 Using protocol version 30
> 2006-12-26 02:27:26.832 MythSocket(8129000:23): readStringList: Error,
> timeout (quick).
> 2006-12-26 02:27:26.833 MythSocket(8129000:-1): writeStringList: Error,
> invalid string list.
> 2006-12-26 02:27:26.834 MythSocket(8129000:-1): readStringList: Error,
> called with unconnected socket.
> 2006-12-26 02:27:26.835 Reconnection to backend server failed
> 2006-12-26 02:27:26.835 Error rescheduling id -1 in
> ScheduledRecording::signalChange
> 2006-12-26 02:27:26.838 Connecting to backend server: 127.0.0.1:6543 (try 1
> of 5)
> 2006-12-26 02:27:26.842 Using protocol version 30
> 2006-12-26 02:27:33.845 MythSocket(8129000:23): readStringList: Error,
> timeout (quick).
> 2006-12-26 02:27:33.846 MythSocket(8129000:-1): writeStringList: Error,
> called with unconnected socket.
> 2006-12-26 02:27:33.847 MythSocket(8129000:-1): readStringList: Error,
> called with unconnected socket.
> 2006-12-26 02:27:33.847 Connection to backend server lost
> 2006-12-26 02:27:33.848 Connecting to backend server: 127.0.0.1:6543 (try 1
> of 5)
> 2006-12-26 02:27:33.852 Using protocol version 30
> 2006-12-26 02:27:40.855 MythSocket(8129000:23): readStringList: Error,
> timeout (quick).
> 2006-12-26 02:27:40.856 MythSocket(8129000:-1): writeStringList: Error,
> invalid string list.
> 2006-12-26 02:27:40.856 MythSocket(8129000:-1): readStringList: Error,
> called with unconnected socket.
> 2006-12-26 02:27:40.857 Reconnection to backend server failed
> 2006-12-26 02:27:40.866 mythfilldatabase run complete.
> ICE default IO error handler doing an exit(), pid = 32935, errno = 32
>
>
> I'm using mysql 5.0 with this (also using mysql 5.0 on the amd64 machine):
> root@kg-work# portversion -v | grep mysql
> mysql-client-5.0.27         =  up-to-date with port
> mysql-server-5.0.27         =  up-to-date with port
> qt-mysql-plugin-3.3.5       =  up-to-date with port
>
> are you people using the same version of mysql? Or are you using another
> version?
> Any hints welcome.

i am using postgresql, but that won't work with stock-mythtv.

i would'nt be surprised if the ReadStringList errors are caused by
mythtv relying on usleep doing a context-switch. the "backend" is the
mythtv-backend.

patch mythcontext.h to undefine usleep:

int mythsleep2(unsigned int microsec,char *file,int line);
#undef usleep
#define usleep(x)       mythsleep2(x,__FILE__,__LINE__)

and mythcontext.cpp:

int mythsleep2(unsigned int microsec, char *file, int line)
{
        fprintf(stderr,"sleep: %s : %d\n", file,line);

/*      sync(); */
QWaitCondition qw_sleep;

/* pthread_yield(); geen RTC voor normale pthreads!!! */

qw_sleep.wait(microsec / 1000 + 1);
}

or any other yield you can think of.

you might try different treading style as well.

regards,

usleep



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c39ec84c0612260701v33f61d1cjdb11f0bd6ed876de>