[mythtv-commits] Ticket #8053: QObject::timer/thread problem in PlaybackBoxHelper

MythTV mythtv at cvs.mythtv.org
Tue Feb 9 18:53:19 UTC 2010


#8053: QObject::timer/thread problem in PlaybackBoxHelper
----------------------------------------+-----------------------------------
 Reporter:  Jeff Lu <jll544@…>          |       Owner:  ijr    
     Type:  defect                      |      Status:  new    
 Priority:  minor                       |   Milestone:  unknown
Component:  MythTV - General            |     Version:  head   
 Severity:  medium                      |     Mlocked:  0      
----------------------------------------+-----------------------------------
 While a PlaybackBox is active on an FE, the console prints
 "QObject::startTimer: timers cannot be started from another thread" and
 "QObject::killTimer: timers cannot be stopped from another thread".  More
 precisely, for me start/killTimer prints an error in Windows but fails
 silently in Linux (verified by watching for free space queries with "-v
 network").

 Error is caused by PlaybackBoxHelper::UpdateFreeSpace attempting to
 manipulate timers while called from PBHEventHandler::event.  The helper
 was created in a different thread than the event handler, so
 PBHEventHandler cannot start/kill timers belonging to PlaybackBoxHelper.

 Attached patch is one way to fix this problem: move the free space timer
 from PlaybackBoxHelper to PBHEventHandler.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8053>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list