TVHeadend client (pvr.hts) causing Kodi system crashes

I am having problems with Kodi and TVHeadend. Everything was working fine up until about a week ago. Then all of a sudden Kodi would crash regularly. In the top right hand corner the following message appears and stays on for 10 seconds and then Kodi crashes and restarts.

PVR Manager is starting up 0%
Loading channels from clients

Most of the time Kodi will crash over and over again and eventually CoreElec would restart in safe mode. However since the Kodi crash happens about 80%-90% of the time eventually after some crashes things would work. Once Kodi is up and running everything works and I can play all the audio and video channels defined on my tvheadend server. The crash is always the same with a SIGSEGV in in PVR::CPVRTimers::UpdateEntries(int)

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/kodi/kodi.bin --standalone -fs'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0077cbb4 in PVR::CPVRTimers::UpdateEntries(int) ()
[Current thread is 1 (Thread 0xc5625280 (LWP 5794))]

I am able to mitigate the problem by deleting all series timers (i.e. delete all tvheadend Autorecs). Once I do that Kodi restarts fast and there is never a crash. However as soon as I set up a new timer recording a series (autorec) the problem reoccurs during Kodi restarts. If I add each individual episode of a series individually I do not have a problem. The problem does not occur right when I add the series timer, it occurs when Kodi is restarted.

I tried reverting to a previous CoreElec version (RC2) and I had the same problem. I also tried using the CoreElec nightly and also had the problem (I did this a few of days ago so I used the nightly from a few days ago).

I deleted the tvheadend addon and cleared its configuration data. Then reinstalled it and set it up again. This did not help

I completely wiped my tvheadend server and configured everything from scratch. The problem reoccurred again as soon as I added a series timer.

I am having the same problem on two Odroid boxes. One is a N2 and the other is a N2+

Odroid N2+ (also have same problem on Odroid N2)
CoreElec: 19.2-Matrix_rc3
pvr.hts: v8.3.4.1
tvheadend:HTS Tvheadend 4.3-1975~g23754f9a6 (running in a docker container)
image: linuxserver/tvheadend:latest
Docker Hub

Here is my crash log http://ix.io/3xan

If anyone is able to help it would be greatly appreciated.

Thanks

BTW: Here is the tvheadend log when Kodi crashed twice and on the 3rd time it worked.

2021-08-27 16:06:52.353 htsp: Got connection from 10.8.8.101
2021-08-27 16:06:52.354 htsp: 10.8.8.101: Welcomed client software: Kodi Media Center (HTSPv34)
2021-08-27 16:06:52.357 htsp: 10.8.8.101 [ Kodi Media Center ]: Identified as user 'nick2'
2021-08-27 16:06:52.357 htsp: 10.8.8.101 [ nick2 | Kodi Media Center ]: Privileges updated
2021-08-27 16:06:53.066 htsp: 10.8.8.101 [ nick2 | Kodi Media Center ]: Write error -- Connection reset by peer
2021-08-27 16:06:53.067 htsp: 10.8.8.101 [ nick2 | Kodi Media Center ]: Disconnected
2021-08-27 16:07:01.772 htsp: Got connection from 10.8.8.101
2021-08-27 16:07:01.774 htsp: 10.8.8.101: Welcomed client software: Kodi Media Center (HTSPv34)
2021-08-27 16:07:01.781 htsp: 10.8.8.101 [ Kodi Media Center ]: Identified as user 'nick2'
2021-08-27 16:07:01.781 htsp: 10.8.8.101 [ nick2 | Kodi Media Center ]: Privileges updated
2021-08-27 16:07:02.483 htsp: 10.8.8.101 [ nick2 | Kodi Media Center ]: Disconnected
2021-08-27 16:07:02.483 htsp: 10.8.8.101 [ nick2 | Kodi Media Center ]: Write error -- Broken pipe
2021-08-27 16:07:10.573 htsp: Got connection from 10.8.8.101
2021-08-27 16:07:10.574 htsp: 10.8.8.101: Welcomed client software: Kodi Media Center (HTSPv34)
2021-08-27 16:07:10.577 htsp: 10.8.8.101 [ Kodi Media Center ]: Identified as user 'nick2'
2021-08-27 16:07:10.577 htsp: 10.8.8.101 [ nick2 | Kodi Media Center ]: Privileges updated

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.