[mythtv-commits] [MythTV/mythtv] 0680b3: Crash in libCEC on mythfrontend GUI rebuild
noreply at github.com
Thu Jun 10 21:28:42 UTC 2021
Author: Klaas de Waal <kdewaal at mythtv.org>
Date: 2021-06-10 (Thu, 10 Jun 2021)
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 libcec.so 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 zeroing the handle ourselves, but this
requires accessing the handle which should be internal to the CEC library.
See also Pulse-Eight/libcec issue #555 on Github.
This bug can also cause mythtv-setup to crash.
This fix is backported from master.
See commit 10b5291
See commit e787645
More information about the mythtv-commits