[mythtv-users] Mythbackend DB connection Failure on Record From
LiveTV
Jason Mollman
jasonmollman at atlanticbb.net
Sat Oct 29 13:33:06 EDT 2005
This may be an issue similar to the "MythBackend - There but nobodies home"
thread.
I'm seeing a problem on recent svn builds in which an attempt to start a
recording from the Program Guide in LiveTV will result in a frontend freeze,
and the backend loosing its connection to the database. Scheduling a
recording from the "Schedule Recordings" GUI works as it should.
The sequence of events follows. The log entries are from mythbackend.log
Watch Live TV, then access the Program Guide and initiate a recording.
2005-10-28 22:04:05.879 Prog title: Law & Order: Criminal Intent
2005-10-28 22:04:05.994 Started recording: Law & Order: Criminal Intent
"Semi-Detached": channel 1011 on cardid 1, sourceid 1
2005-10-28 22:04:16.583 adding: pvr.home.net as a client (events: 0)
2005-10-28 22:04:16.886 Commercial Flagging Starting for Law & Order:
Criminal Intent "Semi-Detached" recorded from channel 1011 at Fri Oct 28
22:04:00 2005
2005-10-28 22:04:18.248 Using runtime prefix = /usr/local
2005-10-28 22:04:18.457 New DB connection, total: 1
2005-10-28 22:04:18.575 New DB connection, total: 2
2005-10-28 22:04:18.582 Invalid file handle when
opening /video/recordings/1011_20051028220400.mpg. 4 retries remaining.
The above file is created in /video/recordings but remains zero length.
At the end of the recording time the following appears.
2005-10-28 23:00:20.043 adding: pvr.home.net as a client (events: 0)
2005-10-28 23:00:20.917 TVRec(1): Changing from RecordingOnly to None
2005-10-28 23:00:22.611 MainServer::HandleAnnounce Playback
2005-10-28 23:00:22.613 adding: pvr.home.net as a client (events: 0)
2005-10-28 23:00:42.723 GetRecordBasename found no entry
2005-10-28 23:01:52.991 MainServer::HandleAnnounce Playback
2005-10-28 23:01:52.993 adding: pvr.home.net as a client (events: 0)
2005-10-28 23:02:13.001 Waiting for a process request thread..
2005-10-28 23:02:13.006 Waiting for a process request thread..
2005-10-28 23:02:13.010 Waiting for a process request thread..
2005-10-28 23:02:13.016 Adding a new process request thread
2005-10-28 23:02:13.076 GetRecordBasename found no entry
The above repeats constantly until:
2005-10-29 00:51:13.755 Adding a new process request thread QThread::start:
thread creation error: Cannot allocate memory
Mythfilldatabase then starts around 2 a.m. and at the end reports:
2005-10-29 02:26:43.007 Connecting to backend server: 127.0.0.1:6543 (try 1
of 5)
2005-10-29 02:26:43.202 Waiting for a process request thread..
2005-10-29 02:26:43.213 Adding a new process request thread QThread::start:
thread creation error: Cannot allocate memory
2005-10-29 02:27:03.122 ReadStringList timeout (quick).
2005-10-29 02:27:03.276 Unknown socket closing
2005-10-29 02:27:03.286 WriteStringList: Bad socket
2005-10-29 02:27:03.289 ReadStringList: Bad socket
2005-10-29 02:27:03.291 Connection to backend server lost
2005-10-29 02:27:03.295 WriteStringList: Bad socket
2005-10-29 02:27:03.297 ReadStringList: Bad socket
2005-10-29 02:27:03.299 Reconnection to backend server failed QWidget: Cannot
create a QWidget when no GUI is being used
Mythfrontend will then report that mythbackend could not be found, make sure
it is running. It is running however.
Mysql logs do not indicate any sort of problem and nothing interesting appears
in the system logs.
More information about the mythtv-users
mailing list