[mythtv-commits] Ticket #10837: Script using System class of python bindings python process runs at 100% CPU while performing task

MythTV noreply at mythtv.org
Fri Jun 15 22:38:03 UTC 2012


#10837: Script using System class of python bindings python process runs at 100%
CPU while performing task
------------------------------------------+------------------------
     Reporter:  djo <david.osguthorpe@…>  |      Owner:  wagnerrp
         Type:  Bug Report - General      |     Status:  new
     Priority:  minor                     |  Milestone:  unknown
    Component:  Bindings - Python         |    Version:  0.25-fixes
     Severity:  medium                    |   Keywords:
Ticket locked:  0                         |
------------------------------------------+------------------------
 The calling python process runs at 100% while performing a task via the
 System class[[BR]]
 Script is based on transcode_stub.py[[BR]]
 [[BR]]
 Issue appears to be in the _PollingThread subclass of DequeBuffer in the
 run function[[BR]]
 The timeout in the poll call of the for loop is given as 0.1 (0.25-fixes
 update) but this poll function parameter is in milliseconds (python 2.7
 online documentation). Probably 0.1 seconds was meant, ie 100
 milliseconds[[BR]]
 Changing the line
 {{{
 for fd,event in poller.poll(0.1):
 }}}
 to
 {{{
 for fd,event in poller.poll(100.0):
 }}}
 fixes problem

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10837>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list