Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #1275: Close and reopen PVR card on select() timeout

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


mythtv at cvs

Feb 13, 2006, 3:38 PM

Post #1 of 3 (902 views)
Permalink
Ticket #1275: Close and reopen PVR card on select() timeout

#1275: Close and reopen PVR card on select() timeout
------------------------------+---------------------------------------------
Reporter: derek [at] battams | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium |
------------------------------+---------------------------------------------
Pasting thread from dev mailing list:

{{{
Quoting Derek Battams <derek [at] battams>:
> Quoting George Nassas <gnassas [at] mac>:
>
>> On 9-Feb-06, at 4:47 PM, Derek Battams wrote:
>>
[snip]
[Hide Quoted Text]
>>> For me, recordings start, but in the middle of the recording it stops
>>> and
>>> then my log fills with the 'select timeout' error until the scheduled
>>> end of the recording.
>>>
>>> Whatever was recorded up until the error is saved and I can watch the
>>> partial recording. The error is produced by the select() call on line
>>> 475 of libs/libmythtv/mpegrecorder.cpp returning 0, which signals a
>>> timeout.
[snip]
>
> Unfortunately, all my profiles were already set to PS and I still
> haven't had a reoccurence since I added my attempted fix. Of course, I
> can also say I haven't had a reoccurence since I upgraded to SVN 8906
> so perhaps that's the reason (fingers crossed)? I'll continue to
> monitor this.

Ok, this finally happened again today while watching live tv. And my
fix worked. On the select timeout, the device was closed, reopened,
and recording continued. I only lost about 1-2 seconds of the
recording, but then it continued with no problems until the end of the
program. I'd like some feedback on this before I go opening a ticket
for this. I think the more interesting issue is why this timeout
occurs during a recording in the first place. I wasn't able to find an
explanation for this so this patch is the next best thing I could come
up with and, most importantly, it works by allowing an in-progress
recording to continue instead of just dumping the printf over and over
until the program ends.
}}}

Isaac's response to my patch:

{{{
Patch looks fine. Don't really need the long comment, though. =)

Basically, when this happens, the ivtv driver has stopped giving us data.
Nothing much we _can_ do aside from close + reopen the device like you're
making it.
}}}

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/1275>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Feb 27, 2006, 11:13 PM

Post #2 of 3 (829 views)
Permalink
Re: Ticket #1275: Close and reopen PVR card on select() timeout [In reply to]

#1275: Close and reopen PVR card on select() timeout
------------------------------+---------------------------------------------
Reporter: derek [at] battams | Owner: ijr
Type: patch | Status: closed
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium | Resolution: fixed
------------------------------+---------------------------------------------
Changes (by cpinkham):

* resolution: => fixed
* status: new => closed

Comment:

(In [9192]) Close and reopen the video device when the select() times out
because the ivtv
driver quit responding. Closes #1275 by applying patch from Derek
Battams.

--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/1275>
MythTV <http://www.mythtv.org/>
MythTV


mythtv at cvs

Feb 27, 2006, 11:14 PM

Post #3 of 3 (837 views)
Permalink
Re: Ticket #1275: Close and reopen PVR card on select() timeout [In reply to]

#1275: Close and reopen PVR card on select() timeout
------------------------------+---------------------------------------------
Reporter: derek [at] battams | Owner: ijr
Type: patch | Status: closed
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium | Resolution: fixed
------------------------------+---------------------------------------------
Comment (by cpinkham):

(In [9193]) Close and reopen the video device when the select() times out
because the ivtv driver quit responding. References #1275 and [9192].

--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/1275>
MythTV <http://www.mythtv.org/>
MythTV

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.