[mythtv] Comm flagging not working CVS 18.20050409-1

Petter Gundersen pettergundersen at gmail.com
Tue Apr 26 20:13:46 UTC 2005


On 4/26/05, Chris Pinkham <cpinkham at bc2va.org> wrote:
> Something doesn't look right.  When I startup "mythbackend -v commflag"
> and a ~realtime flagging job fires off, I see the same debug output
> that you show below from your manual flag.  I have had ~realtime
> flagging turned on since the day I added the ~realtime ability and
> I normally run with -v commflag just in case I find a bug.  A couple
> things you can try are:
> 
> 1) Edit libs/libmythtv/jobqueue.cpp and search for "mythcommflag".  Try
>         changing this:
> 
>         QString("mythcommflag -j -V %1 --chanid %2 --starttime %3 --force")
> 
>         to this:
> 
>         QString("mythcommflag -j -v commflag --chanid %2 --starttime %3 --force")
> 
>         That will force mythcommflag to be executed with the -v commflag
>         option.  Normally the "-V %1" sets mythcommflag's verbose value to
>         the same as mythbackend.
> 
> 2) After the declaration of QString cmd for the above line, you can
>         print out the command executed with a simple:
> 
>         VERBOSE(VB_JOBQUEUE, QString("JobQueue running app: '%1').arg(cmd));
> 

I have changed the jobqueue.cpp code, see results below. I then
started mythcommflag with the same options from the command line, and
noticed that mythcommflag segfaults when used with the -l option. So
unless it's obvious that mythcommflag should segfault when used this
way from the command line, I guess the next step is debugging with
GDB? I'll try to look into that in a couple of days if you're
interested.


Log:
2005-04-26 21:50:01.468 Started recording "Seinfeld" on channel: 1006
on cardid: 1, sourceid 1
2005-04-26 21:50:01.603 New DB connection, total: 4
2005-04-26 21:50:02.561 Changing from None to RecordingOnly
2005-04-26 21:50:17.379 JobQueue currently set at 1 job(s) max and to
run new jobs from 00:00 to 23:59
2005-04-26 21:50:17.457 JobQueue::GetJobsInQueue: findJobs search
bitmask 4, found 1 total jobs
2005-04-26 21:50:17.512 JobQueue::GetJobsInQueue: Found 'Flag
Commercials' Job for 1006 @ 20050426215000 in Queued state.
2005-04-26 21:50:17.513 JobQueue: Currently Running 0 jobs.
2005-04-26 21:50:17.517 JobQueue: Processing 'Flag Commercials' job
for chanid 1006 @ 20050426215000, current status is 'Queued'
2005-04-26 21:50:17.566 Starting Commercial Flagging for "Seinfeld"
recorded from channel 1006 at Tue Apr 26 21:50:00 2005.
2005-04-26 21:50:17.572 JobQueue running app: mythcommflag -j -v
commflag --chanid 1006 --starttime 20050426215000 --force -l
2005-04-26 21:50:17.894 New DB connection, total: 1
2005-04-26 21:50:18.002 New DB connection, total: 2
2005-04-26 21:50:18.060 Using protocol version 15
2005-04-26 21:50:18.091 MainServer::HandleAnnounce Playback
2005-04-26 21:50:18.092 adding: lithium as a client (events: 0)
2005-04-26 21:50:18.164 unknown socket
2005-04-26 21:50:18.171 Finished, 0 break(s) found.

Command line:
mythtv at lithium mythtv $ mythcommflag -j -v commflag --chanid 1006
--starttime 20050426215000 --force -l
2005-04-26 21:50:40.821 New DB connection, total: 1
2005-04-26 21:50:40.835 New DB connection, total: 2
2005-04-26 21:50:40.860 Using protocol version 15
Segmentation fault

Regards,
Petter


More information about the mythtv-dev mailing list