Bug #2839
pvr.hts: LiveTV freezes on Raspberry Pi2
0%
Description
1. Setup
RPi2 running Openelec 5.0.8. It is connecting to Tvheadend backend server running on a different PC.
The same problem is present with local Tvheadend backup however the reproduction is easier with the setup above.
2. Symptom
LiveTV is very unstable. Picture freezes with sound on then fast forwards, block noise on picture and sound drops. Finally picture and sound completely freezes, free memory is continously decreasing until full system get stuck.
See video here: https://youtu.be/LVYc61zk0Gc
The fault is in the client because the backend runs correctly. The same channel which is freezing on RPi can be watched on another client without any disturbance.
3. Frequency of fault
This is very tricky. Sometimes it occurs after 1-2 or more hours of watching LiveTV. It may occur during watching the TV but more frequent at channel switching. With the setup described in #1 I could reproduce the fault almost immediately after RPI restart with 100% probability.
4. Recovery
Stopping LiveTV streaming recovers for a short time, however the already allocated memory will not be released.
5. Workaround
I was struggling for weeks to locate the trigger of this problem and I think I managed to find something. It seems that the problem is related to EPG data update. If I disable EPG update during playback in the LiveTV menu then the system is stable and the fault does not occur. I think that the more frequent EPG update the more frequent fault occurrence. The default value is 120 minutes and the system was completely unstable with 15 min interval.
6. Log
See attached. It was captured together with the video above.
At 19:00:08 I selected the first channel. It works fine. Then at 19:00:49 another channel was selected. The fault appears immediately. Switching starts with longer black screen, then picture freezes, sound drops and strange buffering information on status display.
For me it seems that EPG update during streaming cause unrecoverable buffering problem in pvr.hts client. The fault is definitely RPi specific since the same client works perfectly on my AMD based HTPC.
I found the same fault report on OSMC also, so I would exclude the fault in OE. http://wetekforums.com/vb5/forum/wetek-play/linux/openelec/618-openelec-5-0-7/page2
Files
History
Updated by Jaroslav Kysela over 9 years ago
- Subject changed from LiveTV freezes on Raspberry Pi2 to pvr.hts: LiveTV freezes on Raspberry Pi2
Updated by Akos Sz over 9 years ago
pvr.tvh-0.9.8 addond has been installed. It seems more stable but the same fault occurred after a while. It is rare, I cannot check what was the exact triggering condition but the consequence was same.
Updated by Jaroslav Kysela over 9 years ago
- Status changed from New to Invalid
Report this here: https://github.com/kodi-pvr/pvr.hts/issues
Updated by B C over 9 years ago
as other client's do not have this problem (I don't even have it on a Pi) and the kodi plugin is not maintained here, it is the wrong place to get this fixed.
Updated by Jaroslav Kysela over 9 years ago
This issue tracker is for tvheadend. Because it looks like a problem with pvr.hts (or maybe the RPi2 decoder only) it should be reported somewhere else.
The new version of pvr.hts plugin is mantained at https://github.com/kodi-pvr/pvr.hts . Not sure about the old version of pvr.hts plugin. It's better to ask on kodi forums.