Recorded TV playback crashing
Added by Dave Travers over 7 years ago
Hi All, I have a bit of a strange one. I'm using Ubuntu 16.04 with 4.1-2409~g4db3eec~wheezy installed through APT.
Recording TV works perfectly
Watching TV on Kodi 17.1 (LibreElec on Rpi 3) works perfectly
Watching TS files through Kodi works perfectly
Trying to watch Recorded TV through the TVHeadend PVR client randomly crashes after a couple of minutes. Restarting Kodi has no effect but if I restart the TVHeadend service on the server it will work fine for several hours.
It's the same with SD and HD DVB-T content.
I have enabled logging on the PVR client but can't find a log file.
Any ideas?
Replies (11)
RE: Recorded TV playback crashing - Added by Mark Clarkstone over 7 years ago
If you can, upgrade to the latest git master, there have been many fixes since 2409. Unfortunately because you're using the apt repo (which has broken) and wheezy (which is old now), you'll have to manually build..
Just git clone the tvh repo & run the Autobuild.sh script
RE: Recorded TV playback crashing - Added by Dave Travers over 7 years ago
Hi Mark,
Thanks for the quick response!
OK. Shall I apt uninstall the current version then clone and build from git?
RE: Recorded TV playback crashing - Added by Mark Clarkstone over 7 years ago
Dave Travers wrote:
Hi Mark,
Thanks for the quick response!
OK. Shall I apt uninstall the current version then clone and build from git?
Yes
RE: Recorded TV playback crashing - Added by Dave Travers over 7 years ago
Thought so. I've used git many times but never swapping an app from apt to git source so thought best to check
RE: Recorded TV playback crashing - Added by Dave Travers over 7 years ago
That seems to have sorted it, thanks for your help.
Is it right that the autobuild doesn't install the Deb files, it just creates them?
Dave
RE: Recorded TV playback crashing - Added by Dave Travers over 7 years ago
Unfortunately i spoke too soon, it's still doing it. Playback of recorded tv just stops randomly and i have to restart the tvheadend service. Recording and watching live TV still works if i don't restart the service.
RE: Recorded TV playback crashing - Added by Mark Clarkstone over 7 years ago
Dave Travers wrote:
Unfortunately i spoke too soon, it's still doing it. Playback of recorded tv just stops randomly and i have to restart the tvheadend service. Recording and watching live TV still works if i don't restart the service.
OK, go into the debugging tab and setup debugging. You'll need to enter a filename to log. something like /tmp/tvh.log will do. Then enter "subscription,dvr,htsp-sub,htsp-ans,htsp-req" in both debug & trace subsystem input boxes & tick "debug trace (low level)".
With any luck you should start seeing the log fill up with info. You should then be able to see what is going on when playback fails.
Note, details entered into the debugging tab are not saved between restarts!
RE: Recorded TV playback crashing - Added by Dave Travers over 7 years ago
Ok done, log created and started playback, it crashed really quickly!
Log attached, I can't really tell what happened!
I was watching from kodi on 172.16.0.37
TVHdbg.log (2.69 MB) TVHdbg.log |
RE: Recorded TV playback crashing - Added by Dave Travers over 7 years ago
My guess would be this bit:-
2017-04-08 17:52:26.843 [ TRACE]:htsp-req: 172.16.0.37 [ dave | Kodi Media Center ] - request '{"id":1,"size":32768,"seq":7049,"method":"fileRead"}'
2017-04-08 17:52:28.531 [ TRACE]:htsp-ans: 172.16.0.37 [ dave | Kodi Media Center ] - answer '{"data":"binary","seq":7049}'
2017-04-08 17:52:28.531 [ TRACE]:dvr: checking free and used disk space for config "Default profile" : OK
2017-04-08 17:52:28.531 [ INFO]:htsp: 172.16.0.37 [ dave | Kodi Media Center ]: Disconnected
2017-04-08 17:52:28.531 [ INFO]:htsp: Got connection from 172.16.0.37
2017-04-08 17:52:28.531 [ TRACE]:htsp-req: 172.16.0.37 - request '{"clientname":"Kodi Media Center","htspversion":25,"seq":1,"method":"hello"}'
2017-04-08 17:52:28.531 [ INFO]:htsp: 172.16.0.37: Welcomed client software: Kodi Media Center (HTSPv25)
2017-04-08 17:52:28.531 [ TRACE]:htsp-ans: 172.16.0.37 [ Kodi Media Center ] - answer '{"htspversion":26,"servername":"Tvheadend","serverversion":"4.1-2523~gd763ef9","challenge":"binary","language":"eng","servercapability":["caclient","tvadapters","satip_client","satip_server","imagecache","timeshift","trace","libav"],"api_version":19,"seq":1}'
It just seems to disconnect and reconnects almost instantly.
I've done a check and I don't loose any pings to the kodi box.
RE: Recorded TV playback crashing - Added by Dave Travers over 7 years ago
and have now got the HTSP client log (attached).
RE: Recorded TV playback crashing - Added by Dave Travers over 7 years ago
Not willing to say I've solved it yet, but it's looking good.
Tried another pi3 client and still hung so i took the "simple" option.
Backed up the .Hts folder
Purged the tvheadend install
Reinstalled and ran through the wizard
Stopped the tvheadend service and replaced the DVR folder from the backup.
Completed the rest of the config.
It's now been over 24 hours with no recorded tv playback crashes, so looking good!
Just wish i knew what the cause was! It seems that every time I have an issue with tvheadend i have to resort to this to resolve it as i cant tell what was happening from the logs