Mailing List Archive

[MythTV/mythtv] 10b529: Crash in libCEC on mythfrontend GUI rebuild
Branch: refs/heads/master
Commit: 10b5291b832bc89ce726c5b53ac87ef738c2c3cd
Author: Klaas de Waal <>
Date: 2021-02-04 (Thu, 04 Feb 2021)

Changed paths:
M mythtv/libs/libmythui/devices/mythcecadapter.cpp

Log Message:
Crash in libCEC on mythfrontend GUI rebuild

Fix mythfrontend crash in GUI rebuild due to a theme change or due
to a change in the window size. This happens only when mythfrontend
is used with a monitor or a TV that does not support CEC.
In that case the CEC library is closed after startup but due
to a bug in libcec/cecloader.h the handle to is not cleared.
On theme change or window resize the GUI is rebuilt and the CEC
library is opened a second time. This uses the now-invalid handle
and this causes the crash.
The real solution is to fix libcec.
For now the problem is solved by not closing the CEC library so that
the next time the handle is still valid.
See MythTV issue #299 and Pulse-Eight/libcec issue #555 on Github.

Fixes #299

mythtv-commits mailing list