Kodi freezes --> TVheadend log
Added by James Simpson about 8 years ago
Hi,
I have occasionally been suffering freezes when watching channels. Three freezes cause Kodi to switch to a buffering state, but the buffer never starts to fill up again. If I stop the channel and start it again, it plays fine.
Last night I had 2 Kodi devices watching different channels and the same happened to both devices at the same time. This posted to a problem with TVHeadend rather than Kodi (or could just have been a pure coincidence). Anyway, looking at syslog on the TVHeadend server I found two lines that occurred at the time of the freeze.
Oct 29 22:32:30 tvserver tvheadend1091: tvhdhomerun: tuner_status (-1)
Oct 29 22:32:35 tvserver tvheadend1091: message repeated 5 times: [ tvhdhomerun: tuner_status (-1)]
Can anyone shed some light on what these mean and if they could be the cause of this freeze?
Thanks in advance.
Replies (9)
RE: Kodi freezes --> TVheadend log - Added by James Simpson almost 8 years ago
This seems to have started happening again recently. I am able to just change the channel and then change back again and all is good.
Any ideas on what could be causing that message would be greatly appreciated.
RE: Kodi freezes --> TVheadend log - Added by Poul-Henning Hemberg almost 8 years ago
Hi James,
Did you find a solution to the problem? I'm experiencing something similar right now. Also HDhomerun tuner and also crashing when used with Kodi Or Android TVheadend client.
RE: Kodi freezes --> TVheadend log - Added by James Simpson almost 8 years ago
No solution found as yet. It didn't happen all that often anyway. In the end, I assumed that it may have had something to do with the HDHomeRun device; so I wrote a script which would detect the device and then reboot it. I now have this as a cron job running twice a week. The problem still occasionally occurs, but so infrequently at the moment that I haven't looked into it again.
RE: Kodi freezes --> TVheadend log - Added by Poul-Henning Hemberg almost 8 years ago
Well I'm a bit further in the investigation. I don't know which distro you are using. First I was on Ubuntu 14.04 LTS and everything worked. The my HDD went "down south" and I had to reinstall. So I thought why not upgrade to latest distro (Ubuntu 16.04 LTS). At first everything worked, but then the above mentioned problem came. And it was totally random. I even tried another distro. Linux Mint 18. Same problem. I ended up going back to Ubuntu 14.04. And voila - everything works well again with TVheadend 4.1-2415~ge5f5a42. I think there may be some kind of bug in Xenial version or similar.
RE: Kodi freezes --> TVheadend log - Added by James Simpson almost 8 years ago
I am indeed using Ubuntu Server 16.04 LTS - it's a bhyve virtual machine so I may look at spinning up a 14.04 version and see if that solves the problem then. I've also noticed that Xenial has stopped updating TVH past version 4.1-2405~geb495a0~xenial.
I'm not desperate for an upgrade on TVH as all things that I use seem to be working (apart from this glitch).
Thanks for the heads up though.
RE: Kodi freezes --> TVheadend log - Added by Poul-Henning Hemberg almost 8 years ago
Could you please post the script you wrote to detect the device? I'm not that good with making scripts. And this could come in handy when eventually I have to upgrade (if problem isen't solved).
RE: Kodi freezes --> TVheadend log - Added by James Simpson almost 8 years ago
No problem. This may need to be tweaked a little for your needs.
In my scenario it was being executed on a system that didn't have the hdhomerun_config readily available for it. For that reason, it is set up to SSH into one of the RPis in the house and then execute the required commands from there.
It's written in python and needs the paramiko module installed as well (this is used for the SSH connection).
I'm not sure what your setup is like but all the requirements I mentioned were available already in mine so I didn't have to do anything extra.
It should be easy enough to remove the requirement for SSH.
Hope it helps.
hdhomerun-reboot.py (3.42 KB) hdhomerun-reboot.py |
RE: Kodi freezes --> TVheadend log - Added by Poul-Henning Hemberg almost 8 years ago
Thank you very much.
/Poul-Henning (Denmark)
RE: Kodi freezes --> TVheadend log - Added by James Simpson over 7 years ago
No problem. I've now built an Ubuntu 14.04.5 server and have installed TVH on there, with the same config that was on the 16.04 one. I'll keep an eye on it and see if any freezes happen.