LinHES Forums
http://forum.linhes.org/

Weird backend crashing when both tuners, frontend
http://forum.linhes.org/viewtopic.php?f=6&t=1640
Page 1 of 1

Author:  jpainter99 [ Fri Jun 04, 2004 6:19 pm ]
Post subject:  Weird backend crashing when both tuners, frontend

I am having a wierd problem with my setup (.15.1, knoppmyth backend with 2 pvr250).

If both pvr's are recording, and I am watching a previous recording on the xbox frontend, and it hits a time on a hour or half hour where the recordings need to complete, the backend crashes.

It doesn't crash if the frontend isn't watching a recording. I'm at a loss for what to do next. If there is a way to get more debug information or logging tell me how and I'll do it!

I have attached my mythbackend log, if there is something else that would help diagnose I would appreciate it!!

2004-06-03 18:21:26 MainServer::HandleAnnounce FileTransfer
2004-06-03 18:21:26 adding: xbox.localdomain.local as a remote file transfer
2004-06-03 18:30:00 Changing from RecordingOnly to None
2004-06-03 18:30:00 Changing from RecordingOnly to None
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
Starting up as the master server.
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
QSettings: error creating /.qt
QSettings::sync: filename is null/empty
Attempting to initialize DCT
Attempting to initialize DCT
Reading current channel
2004-06-03 18:32:59 mythbackend version: 0.15.20040525-1 www.mythtv.org
2004-06-03 18:32:59 Enabled verbose msgs : important general
Changing from channel 12 to channel 38
Reading current channel
Changing from channel 47 to channel 361
2004-06-03 18:33:01 Found changes in the todo list.
Success!
361
Success!
38

Author:  snaef999 [ Fri Jun 04, 2004 8:12 pm ]
Post subject: 

I dont know if this applies to you or not, but when I have commercial flagging turned on and have two tuners that just finished a recording, the backend will crash everytime when the flagging operation starts. I think there is a conflict when more than one tuner is in the box.

Try disabling commercial flagging. Like I said, it may not apply to your problem, but it worked for me.

-S

Author:  jpainter99 [ Fri Jun 04, 2004 9:03 pm ]
Post subject: 

Ok, I turned it off, will report back if it clears the problem or not.

Author:  Eric W [ Mon Jun 07, 2004 1:59 am ]
Post subject: 

Same problem here. With two tuners (on .14 .15 and .15.1) mythbackend sometimes crashes after two programs finish recording at the same time. With commercial flagging turned off, the problem is fixed. I'm thinking that with flagging turned on (and with two cards) there are two flagging processes going at the same time and perhaps they load the system too much.

However, I love the commercial flagging so I setup a cron job to run the commercial flagging program.

Here is what I've done:

As root: crontab -e
Added this line to the end: 10,40 * * * * /usr/bin/mythcommflag --quiet --sleep
Quit and Save ("ESC" ":" "wq")

mythcommflag checks for all unflagged files and flags them sequentially. I have this running on the 10s and 40s of the hour as I seem to have a lot of things going on at the 5s and 35s of the hour.
I'll post after a week or so to see is this fixes the stability issue.

HTH

Author:  jpainter99 [ Mon Jun 07, 2004 6:51 am ]
Post subject: 

I turned off my commercial flagging also and have not had a crash since. I just went and added the mythcommflag to the cron.daily but this is a much more elegant solution!

Author:  snaef999 [ Mon Jun 07, 2004 8:30 am ]
Post subject: 

Eric,

Thanks for that cron job suggestion, I will be trying this tonight for sure!

Perhaps this should be added to the commercial flagging options screen? I'm sure many people have had this same problem in the past.

Cheers,
-S

Author:  Eric W [ Mon Jun 07, 2004 3:12 pm ]
Post subject: 

snaef999 wrote:
Eric,

Thanks for that cron job suggestion, I will be trying this tonight for sure!

Perhaps this should be added to the commercial flagging options screen? I'm sure many people have had this same problem in the past.

Cheers,
-S


No problem, I hope it works for you. I don't know that they would add it as an option to the mythtv UI as I think the crashing is just a bug. Perhaps not enough testing is happening with dual cards...but I don't really know.

My assumption is that the recording processes don't know about each other. And since the flagging takes a bit of CPU power, when two or more are running, they may cause some problems. I am totally guessing though as I don't know how this function really works.

By running mythcommflag, I do know that the flagging of files is happening one file at a time and perhaps the problem can be avoided this way.

Author:  scottf [ Wed Jun 09, 2004 7:31 am ]
Post subject: 

I'm experiencing something similar to what's described in this thread and am going to try this solution as well..

Out of curiosity, how many backend processes do you guys normally see?

I'm seeing ~ 14 on my box and wonder if that's normal... (I see the same number of mysql processes as well)

Author:  Eric W [ Wed Jun 09, 2004 8:03 am ]
Post subject: 

scottf wrote:
I'm experiencing something similar to what's described in this thread and am going to try this solution as well..

Out of curiosity, how many backend processes do you guys normally see?

I'm seeing ~ 14 on my box and wonder if that's normal... (I see the same number of mysql processes as well)


Sounds about right, I have 13 going when I just checked

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/