[mythtv-users] Scheduled recording causing frontend lockup

gvd gvd at versateladsl.be
Sun Sep 12 09:09:56 EDT 2004


I have the same lockup, using a CVS version of some weeks ago. My feeling is
that the
frontend receives the name of the file from the backend. So it want to open
it. However,
the file is not yet (or being) created by the backend.

In the end the frontend tries to read data from a file that does not yet
exists. For some reason it cannot
recover after that.

The patch below just waits for a second, so that the chance that the file
exists is larger. However, there
should be a check and when it fails it should retry (a maximum number of
times, with a certain delay in between).
If fd2 does not contain a valid filehandle, all future reads from the
ringbuffer will fail. It looks however,
that the nupplevideo player checks whether a file is open (IsOpen). Maybe
this check is not full proof since it
checks on more variables than fd2 only. Have to check this further.

regards,
gvd

----- Original Message ----- 
From: "Blammo[doh]" <blammo at dohboys.com>
To: "Discussion about mythtv" <mythtv-users at mythtv.org>
Sent: Saturday, September 11, 2004 5:57 AM
Subject: Re: [mythtv-users] Scheduled recording causing frontend lockup


> No, but thanks for offering a suggestion.
>
> /myth is on a 160G IDE drive alll by itself for the backend, which is
> mounted on the frontend
>
>
>
>
> ----- Original Message ----- 
> From: "Donavan Stanley" <GeckoFiend at gmail.com>
> To: "Discussion about mythtv" <mythtv-users at mythtv.org>
> Sent: Friday, September 10, 2004 2:09 PM
> Subject: Re: [mythtv-users] Scheduled recording causing frontend lockup
>
>
> > Do you use LVM?  I was able to pin the blame on this on my LVM volume.
> >  It started appearing for me once my multi-disk system filled beyond
> > the capactiy of the first disk.  The following patch should fix it, at
> > the expense of some extra delay in swtiching over from watching TV to
> > watching the recording.  I've not had time to figure out how to
> > properly fix my LVM setup.
> >
> > Begin stupid_lvm_hack.patch
> > ----
> > Index: RingBuffer.cpp
> > ===================================================================
> > RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/RingBuffer.cpp,v
> > retrieving revision 1.103
> > diff -u -r1.103 RingBuffer.cpp
> > --- RingBuffer.cpp 26 Aug 2004 23:57:55 -0000 1.103
> > +++ RingBuffer.cpp 10 Sep 2004 21:03:04 -0000
> > @@ -374,7 +374,12 @@
> >              is_local = true;
> >
> >          if (is_local)
> > +        {
> > +            fd2 = open(filename.ascii(),
> O_RDONLY|O_LARGEFILE|O_STREAMING);
> > +            close(fd2);
> > +            sleep(1);
> >              fd2 = open(filename.ascii(),
> O_RDONLY|O_LARGEFILE|O_STREAMING);
> > +        }
> >          else
> >              remotefile = new RemoteFile(filename);
> >
> > -- 
> > This message has been scanned for viruses and
> > dangerous content, and is believed to be clean.
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 9/3/2004



More information about the mythtv-users mailing list