[mythtv-users] Mythbackend dies while using two tuner cards

Aran Cox spin at avalon.net
Fri Nov 14 13:37:46 EST 2003


On Tue, Nov 11, 2003 at 07:43:40PM +1100, Graeme Woollett wrote:
> mythtvbackend is dying on me when I try to use 2 tuner
> cards simultaneously.  I've tried spreading my
> peripherals across the interrupts more thinly, and
> made sure that the HDD DMA was turned on.  One card
> operation is great.
> Two operation card crashes the backend after about 4-5
> seconds

I have had this problem since I upgraded to 0.12.  I also
upgraded a lot of other packages as well.  Basically when I
use the one bt878 card, everything works fine.  When the second
one comes into use mythbackend dies within a few seconds, but does
work for those few seconds.

I run mythbackend in gdb and it was dieing in a lame function 
AnalyzeFrames (I think that's what it was called.)  It appeared
that the num_chan paramater to that function call was anything
from -14000 to over 14 million.  But the the lame API was getting
called with the correct number of channels, so I don't know 
what the deal is/was.  I yanked the card out and put it in another
system (where I have different problems) and just haven't had time
to look into further.  

Try running gdb mythfrontend and when it dies see where it left off.
You should try getting a backtrace as well, if you can:

http://www.mythtv.org/docs/mythtv-HOWTO-20.html#ss20.8

I will try and get a back trace myself but I haven't had time to 
monkey with it recently.  I also ordered a PVR-250 so maybe I won't
care so much about that second card after that.

My mythbackend.log looks almost the same as yours when this happens.

> mythtv-backend-0.12-46.rh9.at
> alsa-driver-0.9.8-13.rh9.at
> kernel-2.4.20-20_29.rh9.at
> nvidia 4496 driver
> video0 bt878 Flyvideo 98
> video1 saa7134 Flyvideo 3000
> dsp SBLive
> dsp1 ALC650 AC97
> Athlon XP2500+ CPU

My system is similar to yours, athlon using an sblive and intel8x0
built in audio with two bt878 capture cards.  Same mythtv software
and it's an Athlon 2100.  What version of lame do you have installed?
Are you capturing to mp3 audio?  Try using Raw PCM instead of MP3 and
see if it changes.

Aran
 
> root at mercury /]# mythbackend
> Starting up as the master server.
> 2003-11-11 21:22:21 Enabled verbose msgs : important
> general
> 2003-11-11 21:22:23 Found changes in the todo list.
> 2003-11-11 21:22:23 Started recording "Road Wars" on
> channel: 1003 on cardid: 1, sourceid 1
> DB Error (WriteRecordedToDB):
> Query was:
> INSERT INTO recorded
> (chanid,starttime,endtime,title,subtitle,description,hostname,category,autoexpire)
> VALUES(1003,"20031111203000","20031111213000","Road
> Wars","","A reality series that follows an elite group
> of traffic police as they patrol the increasingly
> dangerous streets and motorways of
> England.","mercury.localdomain","",1);
> Driver error was [2/-1]:
> QMYSQL3: Unable to execute query
> Database error was:
> Duplicate entry '1003-20031111203000' for key 1
> 
> 2003-11-11 21:22:23 Changing from None to
> RecordingOnly
> Unknown video codec: ioctl VIDIOC_G_FMT: Invalid
> argument
> 2003-11-11 21:22:43 MainServer::HandleAnnounce
> Playback
> 2003-11-11 21:22:43 adding: mercury.localdomain as a
> player 1
> 2003-11-11 21:22:47 MainServer::HandleAnnounce
> Playback
> 2003-11-11 21:22:47 adding: mercury.localdomain as a
> player 0
> 2003-11-11 21:23:06 MainServer::HandleAnnounce
> Playback
> 2003-11-11 21:23:06 adding: mercury.localdomain as a
> player 0
> 2003-11-11 21:23:06 MainServer::HandleAnnounce
> Playback
> 2003-11-11 21:23:06 adding: mercury.localdomain as a
> player 0
> 2003-11-11 21:23:06 adding: mercury.localdomain as a
> remote ringbuffer
> 2003-11-11 21:23:06 Changing from None to
> WatchingLiveTV
> strange error flushing buffer ...
> 
> And sometimes it gives a Segmentation fault error
> 
> http://personals.yahoo.com.au - Yahoo! Personals
> New people, new possibilities. FREE for a limited time.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20031114/da6db04b/attachment.pgp


More information about the mythtv-users mailing list