MythTV testing results

Hans Nieser h.nieser at xs4all.nl
Tue Jan 2 04:22:29 PST 2007


Hello,

I've been toying with the multimedia/mythtv port (which incidentaly, 
doesn't show up when I do a 'make search name=mythtv' in /usr/ports) for a 
few days but I'm currently kind of stuck. First of all, when I run 
mtyhtv-setup, it does appear to detect the PVR-150 card I have in my 
machine (using usleepless' pvrxxx driver), or at least, it is able to read 
vendor/device information from it after I enter the device name 
(/dev/cxm0) so I'm guessing at least that part is working (it actually 
failed to read anything from it the first time, but that was possibly 
because I didn't run mythtv-setup as root the first time - if that 
actually matters).

Anyway, mythtv and mythbackend appear to have some trouble talking to each 
other as mythtv seems to be unable to fully connect to the backend. I can 
see (looking at the console output) that they are making contact but some 
odd errors (in both mythtv's and mythbackend's output) appear after a 
short while and mythtv displays an error (on the X output) that goes along 
the lines of "Backend connection has gone away. Is it running?". 
Acknowledging the error message will cause mythtv to shutdown.

When I start the backend (I'm running it manually using just 'mythbackend' 
and not using the RC script) and then mythtv, the following is printed:

mythbackend:

# DISPLAY=":0.0" mythbackend
2007-01-02 12:44:18.852 Using runtime prefix = /usr/local
2007-01-02 12:44:18.870 New DB connection, total: 1
2007-01-02 12:44:18.877 Connected to database 'mythconverg' at host: localhost
2007-01-02 12:44:18.881 Current Schema Version: 1158
Starting up as the master server.
2007-01-02 12:44:18.892 New DB connection, total: 2
2007-01-02 12:44:18.893 Connected to database 'mythconverg' at host: localhost
2007-01-02 12:44:18.897 EITHelper: localtime offset 1:00:00
2007-01-02 12:44:18.905 TVRec(2) Error: Problem finding starting channel, 
setting to default of '3'.
2007-01-02 12:44:18.906 ChannelBase(2) Error: InitializeInputs():
                         Could not get inputs for the capturecard.
                         Perhaps you have forgotten to bind video
                         sources to your card's inputs?
ERROR: no valid capture cards are defined in the database.
Perhaps you should read the installation instructions?
2007-01-02 12:44:18.913 Main::Starting HttpServer
2007-01-02 12:44:18.919 Main::Registering HttpStatus Extension
2007-01-02 12:44:18.928 mythbackend version: 0.20.20060828-3 www.mythtv.org
2007-01-02 12:44:18.928 Enabled verbose msgs:  important general
2007-01-02 12:44:18.930 AutoExpire: Found 0 recorders w/max rate of 0 MiB/min
2007-01-02 12:44:18.931 AutoExpire: Required Free Space: 1.0 GB w/freq: 10 min
Mutex unlock failure: Operation not permitted
2007-01-02 12:44:41.011 MainServer::HandleAnnounce Monitor
2007-01-02 12:44:41.011 adding: mishmash.lan as a client (events: 1)
Mutex unlock failure: Operation not permitted
Mutex unlock failure: Operation not permitted


mythtv:

# DISPLAY=":0.0" mythtv
2007-01-02 12:44:33.508 Using runtime prefix = /usr/local
xscreensaver-command: not found
2007-01-02 12:44:33.524 DPMS is disabled.
2007-01-02 12:44:33.542 New DB connection, total: 1
2007-01-02 12:44:33.548 Connected to database 'mythconverg' at host: localhost
2007-01-02 12:44:33.550 Total desktop dim: 800x600, with 1 screen[s].
2007-01-02 12:44:33.553 Using screen 0, 800x600 at 0,0
2007-01-02 12:44:33.600 max_width: 800 max_height: 600
2007-01-02 12:44:33.602 Total desktop dim: 800x600, with 1 screen[s].
2007-01-02 12:44:33.604 Using screen 0, 800x600 at 0,0
2007-01-02 12:44:33.605 Switching to square mode (blue)
2007-01-02 12:44:33.666 Using the Qt painter
2007-01-02 12:44:33.963 New DB connection, total: 2
2007-01-02 12:44:33.964 Connected to database 'mythconverg' at host: localhost
2007-01-02 12:44:34.002 Connecting to backend server: 127.0.0.1:6543 (try 
1 of 5)
2007-01-02 12:44:34.006 Using protocol version 30
2007-01-02 12:44:41.010 MythSocket(8726500:10): readStringList: Error, 
timeout (quick).
2007-01-02 12:44:41.012 MythSocket(8726500:-1): writeStringList: Error, 
called with unconnected socket.
2007-01-02 12:44:41.012 MythSocket(8726500:-1): readStringList: Error, 
called with unconnected socket.
2007-01-02 12:44:41.012 Connection to backend server lost
2007-01-02 12:44:41.012 Connecting to backend server: 127.0.0.1:6543 (try 
1 of 5)
2007-01-02 12:44:41.014 Using protocol version 30
2007-01-02 12:44:48.017 MythSocket(8726500:12): readStringList: Error, 
timeout (quick).
2007-01-02 12:44:48.018 MythSocket(8726500:-1): writeStringList: Error, 
invalid string list.
2007-01-02 12:44:48.018 MythSocket(8726500:-1): readStringList: Error, 
called with unconnected socket.
2007-01-02 12:44:48.018 Reconnection to backend server failed
Mutex unlock failure: Operation not permitted


I'm running both as root at the moment just to rule out any permission 
issues. Another thing that I noticed is that mythbackend reports "ERROR: 
no valid capture cards are defined in the database." even though I believe 
I have succesfully set one up using mythtv-setup, and I can see it defined 
in the mythconverg MySQL database in the capturecard table. It does seem 
to succesfully connect to the MySQL database though. Also note that I'm 
running everything (MySQL, mythbackend, mythtv) on the same machine.


More information about the freebsd-multimedia mailing list