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

Mailing List Archive: MythTV: Dev

Re: Ticket #7135: multiple [mythfrontend] <defunct>

 

 

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


mtdean at thirdcontact

Nov 5, 2009, 5:36 PM

Post #1 of 3 (278 views)
Permalink
Re: Ticket #7135: multiple [mythfrontend] <defunct>

On 11/05/2009 03:42 PM, MythTV wrote:
> #7135: multiple [mythfrontend] <defunct>
>
>
> Comment(by Bill Meek):
>
> Started wondering why I have 13 defuncts and the report before mine and
> the original had only 2. So, I plugged in an SD card into my card reader,
> restarted the frontend and my defunct count dropped from 13 to 12.
>
> Most of the time, there are no cards plugged into the card reader.
>
> On a roll here, I shutdown and disconnected the USB plug for the card
> reader (which has 5 slots CF/SD/uSD...). Restarting the frontend again,
> I got '''2''' defuncts, (for /dev/sd0?) which I'm guessing match log
> entries:
>
> {{{
> MMUnix::AddDevice() Error: failed to stat /dev/bdi,
> MMUnix::AddDevice() Error: failed to stat /dev/power,
> }}}
>
> When the card reader is plugged in, there are 12 Error entries.
> 2 each for /dev/sd[defgh] and /dev/sr0.
>

It seems Bill is on to something here. Although I can't reproduce the
issue on my system, for those I've talked to on IRC since he mentioned
it, it seems that the number of <defunct>'s is equal to the number of
"MMUnix::AddDevice()" errors.

Robert McNamara is seeing the <defunct>'s, too, and was kind enough to
revert [21118] and [21944], which were the only changes other than
logging changes to mediamonitor-unix.cpp in the last 3 months (going
back about 5 weeks before #7135 was reported), and he still saw the
issue. He was also able to selectively disable some of the media
monitoring settings and reduce the number of messages and <defunct>'s he
saw.

I'm hoping Nigel might have a better idea what could be causing the
issue or where it could be coming from, because I'm stumped.

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv at sky

Nov 6, 2009, 11:16 AM

Post #2 of 3 (243 views)
Permalink
Re: Ticket #7135: multiple [mythfrontend] <defunct> [In reply to]

Michael T. Dean wrote:
> On 11/05/2009 03:42 PM, MythTV wrote:
>> #7135: multiple [mythfrontend] <defunct>
>>
>>
>> Comment(by Bill Meek):
>>
>> Started wondering why I have 13 defuncts and the report before mine and
>> the original had only 2. So, I plugged in an SD card into my card
>> reader,
>> restarted the frontend and my defunct count dropped from 13 to 12.
>>
>> Most of the time, there are no cards plugged into the card reader.
>>
>> On a roll here, I shutdown and disconnected the USB plug for the card
>> reader (which has 5 slots CF/SD/uSD...). Restarting the frontend
>> again,
>> I got '''2''' defuncts, (for /dev/sd0?) which I'm guessing match log
>> entries:
>>
>> {{{
>> MMUnix::AddDevice() Error: failed to stat /dev/bdi,
>> MMUnix::AddDevice() Error: failed to stat /dev/power,
>> }}}
>>
>> When the card reader is plugged in, there are 12 Error entries.
>> 2 each for /dev/sd[defgh] and /dev/sr0.
>>
>
> It seems Bill is on to something here. Although I can't reproduce the
> issue on my system, for those I've talked to on IRC since he mentioned
> it, it seems that the number of <defunct>'s is equal to the number of
> "MMUnix::AddDevice()" errors.
>
> Robert McNamara is seeing the <defunct>'s, too, and was kind enough to
> revert [21118] and [21944], which were the only changes other than
> logging changes to mediamonitor-unix.cpp in the last 3 months (going
> back about 5 weeks before #7135 was reported), and he still saw the
> issue. He was also able to selectively disable some of the media
> monitoring settings and reduce the number of messages and <defunct>'s
> he saw.
>
> I'm hoping Nigel might have a better idea what could be causing the
> issue or where it could be coming from, because I'm stumped.
>
> Mike

Seems to be something to do with having a system with no udevinfo. If
the QProcess in MediaMonitorUnix::GetDeviceFile() fails to start then
that is leaving a <defunc> process hanging around.

Paul H.
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Nov 6, 2009, 12:37 PM

Post #3 of 3 (237 views)
Permalink
Re: Ticket #7135: multiple [mythfrontend] <defunct> [In reply to]

On 11/06/2009 02:16 PM, Paul Harrison wrote:
> Michael T. Dean wrote:
>
>> On 11/05/2009 03:42 PM, MythTV wrote:
>>
>>> #7135: multiple [mythfrontend] <defunct>
>>>
>>>
>>> Comment(by Bill Meek):
>>>
>>> Started wondering why I have 13 defuncts and the report before mine and
>>> the original had only 2. So, I plugged in an SD card into my card
>>> reader,
>>> restarted the frontend and my defunct count dropped from 13 to 12.
>>>
>>> Most of the time, there are no cards plugged into the card reader.
>>>
>>> On a roll here, I shutdown and disconnected the USB plug for the card
>>> reader (which has 5 slots CF/SD/uSD...). Restarting the frontend
>>> again,
>>> I got '''2''' defuncts, (for /dev/sd0?) which I'm guessing match log
>>> entries:
>>>
>>> {{{
>>> MMUnix::AddDevice() Error: failed to stat /dev/bdi,
>>> MMUnix::AddDevice() Error: failed to stat /dev/power,
>>> }}}
>>>
>>> When the card reader is plugged in, there are 12 Error entries.
>>> 2 each for /dev/sd[defgh] and /dev/sr0.
>>>
>>>
>> It seems Bill is on to something here. Although I can't reproduce the
>> issue on my system, for those I've talked to on IRC since he mentioned
>> it, it seems that the number of <defunct>'s is equal to the number of
>> "MMUnix::AddDevice()" errors.
> Seems to be something to do with having a system with no udevinfo. If
> the QProcess in MediaMonitorUnix::GetDeviceFile() fails to start then
> that is leaving a <defunc> process hanging around.

So it's related to http://svn.mythtv.org/trac/ticket/6137 (and explains
why I can't reproduce it--on my way old install with udevinfo :).

And, it's somewhat related to http://svn.mythtv.org/trac/ticket/6435 .

Do we just need to check the exitStatus() in the line:

if (!udevinfo->waitForFinished(2000 /*ms*/))

at mythtv/libs/libmyth/mediamonitor-unix.cpp +239

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.