Opened 5 years ago
Closed 4 years ago
Last modified 4 years ago
#12754 closed Bug Report - Hang/Deadlock (fixed)
deadlock at startup with CEC enabled
Reported by: | Owned by: | Stuart Auchterlonie | |
---|---|---|---|
Priority: | minor | Milestone: | 0.28.1 |
Component: | MythTV - General | Version: | 0.28.0 |
Severity: | medium | Keywords: | patch |
Cc: | Ticket locked: | no |
Description
Configuring the TV at startup is done from the main thread. However, when the TV state changes as a result of this, libCEC sends a message to the callback 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 already has the UI lock during startup time.
Instead, run the initial setup activity at the start of the CEC handler thread.
This was missed in the patch applied for #11986 when I did a merge - I've been running this on my 0.27 system for > 1 year.
Attachments (2)
Change History (7)
Changed 5 years ago by
Attachment: | libcec2-deadlock-fix.patch added |
---|
comment:1 Changed 5 years ago by
Milestone: | unknown → 0.28.1 |
---|---|
Version: | Unspecified → 0.28.0 |
Changed 4 years ago by
Attachment: | libcec2-deadlock-fix.v3.patch added |
---|
Patch against latest fixes/0.28
comment:2 Changed 4 years ago by
I've attached a patch against fixes/0.28. I've been running with this for over a year (since it was missed in my upload for #11986) - can this please be applied?
comment:3 Changed 4 years ago by
Owner: | set to Stuart Auchterlonie |
---|---|
Status: | new → accepted |
comment:4 Changed 4 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
patch