Mailing List Archive

[MythTV/mythtv] 0680b3: Crash in libCEC on mythfrontend GUI rebuild
Branch: refs/heads/fixes/31
Home: https://github.com/MythTV/mythtv
Commit: 0680b37c6841e10f494cf836862c6d0879e573b0
https://github.com/MythTV/mythtv/commit/0680b37c6841e10f494cf836862c6d0879e573b0
Author: Klaas de Waal <kdewaal@mythtv.org>
Date: 2021-06-10 (Thu, 10 Jun 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 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

Refs #299


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits