#10045 BLOC 1.5-sof: XO-1.5 Record audio/video are out of sync with each other

Zarro Boogs per Child bugtracker at laptop.org
Thu May 27 22:44:06 EDT 2010


#10045: XO-1.5 Record audio/video are out of sync with each other
---------------------------------------+------------------------------------
           Reporter:  wad              |       Owner:  dsd                              
               Type:  defect           |      Status:  new                              
           Priority:  blocker          |   Milestone:  1.5-software-update              
          Component:  record-activity  |     Version:  Development build as of this date
         Resolution:                   |    Keywords:  camera record XO-1.5             
        Next_action:  diagnose         |    Verified:  0                                
Deployment_affected:                   |   Blockedby:                                   
           Blocking:                   |  
---------------------------------------+------------------------------------

Comment(by Quozl):

 Test of theory ''buffer overrun messages are causing more buffer
 overruns''.

 {{{
 class Glive:
     def __init__(self, pca):
         self.bo = {}
         ...
     def log_queue_overrun(self, queue):
         cname = queue.get_name()
         cbuffers = queue.get_property("current-level-buffers")
         cbytes = queue.get_property("current-level-bytes")
         ctime = queue.get_property("current-level-time")
         if cname not in self.bo:
             self.bo[cname] = (1, cbuffers, cbytes, ctime)
         else:
             (oevents, obuffers, obytes, otime) = self.bo[cname]
             self.bo[cname] = (oevents + 1, cbuffers + obuffers, cbytes +
 obytes, ctime + otime)

     def show_overruns(self):
         for oname in self.bo:
             (oevents, obuffers, obytes, otime) = self.bo[oname]
             logger.error("total %d buffer overruns in %s (%d buffers, %d
 bytes, %d time)"
                 % (oevents, oname, obuffers, obytes, otime))
 }}}

 Output in log:
 {{{
 1275014693.006771 ERROR record:glive.py: total 240 buffer overruns in
 videoqueue (12000 buffers, 7372800000 bytes, 1200000000000 time)
 }}}

 Conclusion: logging is not affecting the symptom.

-- 
Ticket URL: <http://dev.laptop.org/ticket/10045#comment:40>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list