[mythtv-commits] Ticket #12754: deadlock at startup with CEC enabled

MythTV noreply at mythtv.org
Mon Dec 5 10:46:27 UTC 2016

#12754: deadlock at startup with CEC enabled
 Reporter:  bbaetz@…                    |          Owner:  stuarta
     Type:  Bug Report - Hang/Deadlock  |         Status:  closed
 Priority:  minor                       |      Milestone:  0.28.1
Component:  MythTV - General            |        Version:  0.28.0
 Severity:  medium                      |     Resolution:  fixed
 Keywords:  patch                       |  Ticket locked:  0

Comment (by Bradley Baetz <bbaetz@…>):

 In [changeset:"2d6466f1aa08c29531f27edd61963d5180186a96/mythtv"]:
 #!CommitTicketReference repository="mythtv"
 Fixes #12754 - Fix deadlock in libcec initialization.

 Configuring the TV at startup is done from the main thread. However, when
 TV state changes as a result of this, libCEC sends a message to the
 handler on its own thread, which tries to get the UI lock to reset the
 screensaver state. This results in a deadlock because the main thread
 has the UI lock during startup time.

 Instead, run the initial setup activity at the start of the CEC handler

 This was missed in the patch applied for #11986.

 Signed-off-by: Stuart Auchterlonie <stuarta at mythtv.org>
 (cherry picked from commit 22ff48d7bafc622246141094b727dab47662bc3f)

Ticket URL: <https://code.mythtv.org/trac/ticket/12754#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center

More information about the mythtv-commits mailing list