From owner-freebsd-multimedia@FreeBSD.ORG Tue Dec 26 15:01:50 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F7DB16A403 for ; Tue, 26 Dec 2006 15:01:50 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 9D05A13C46E for ; Tue, 26 Dec 2006 15:01:49 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so3165904uge for ; Tue, 26 Dec 2006 07:01:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=br155jtxsTX5X9eSdatkLYYs8ZmtRgXFT0XOx0SlMFAyiu92hxmPq4cNGEzcspLtkJ+8HFOyho/hQPdNKpoqC8roRS7g3+TkCKDpXwk8DiIbzN8Hza7Yc7o/CF8TcyZU3axetbgNk4Nqx8bKJ8EEayJwdaHkJih3R9ikN169uy0= Received: by 10.78.204.20 with SMTP id b20mr801356hug.1167145308170; Tue, 26 Dec 2006 07:01:48 -0800 (PST) Received: by 10.78.124.8 with HTTP; Tue, 26 Dec 2006 07:01:47 -0800 (PST) Message-ID: Date: Tue, 26 Dec 2006 16:01:47 +0100 From: usleepless@gmail.com To: "Torfinn Ingolfsen" In-Reply-To: <20061226023552.7b4ef0c8.torfinn.ingolfsen@broadpark.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> Cc: freebsd-multimedia@freebsd.org Subject: Re: MythTV port - status report X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2006 15:01:50 -0000 Torfinn, On 12/26/06, Torfinn Ingolfsen wrote: > On Tue, 26 Dec 2006 01:34:41 +0100 > Torfinn Ingolfsen 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