Bug #4026
Tvheadend restarts at processing XMLTV grabber
0%
Description
I have been using an internal XMLTV grabber called epg.gravi.hu. Today I observed that Tvheaend is continously restarting after 1-2 minutes of watching TV. I concluded that the restart occurs when internal XMLTV grabber is triggered. The workaround was that I disabled the grabber. Now tvheadend works fine.
Tvheadend is running on a wetek play, with Libreelec 7.0.2. The addon version is 7.0.444 -> Tvheadend 4.1-2267, the same fault is present with 4.1-2278
The only log available is service.log these were the last line before the restart (crash):
2016-10-16 19:52:35.000 [ INFO] xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_gravi.sh: grab /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_gravi.sh
2016-10-16 19:52:35.029 [ INFO] spawn: Executing "/storage/.kodi/addons/service.tvheadend42/bin/tv_grab_gravi.sh"
2016-10-16 19:52:35.958 [ INFO] xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_gravi.sh: grab took 1 seconds
I attached the XML file which is provided by the grabber. I had a quick look into it but saw nothing suspicious. Probabyl the XML file is corrupt however Tvheadend should not crash due to corrupt input.
Files
History
Updated by Jaroslav Kysela about 8 years ago
Show the crash (backtrace). https://tvheadend.org/projects/tvheadend/wiki/Debugging
Updated by Akos Sz about 8 years ago
- File tv_grab_gravi.sh tv_grab_gravi.sh added
I am afraid I cannot provide more logs due to limitationa in Libreelec. In case of issue #3307 https://tvheadend.org/issues/3307 we already discussed.
Now, I am pretty sure that the attached xml file triggers the fault. The grabber works fine today, however if I modify the script and emit this killer xml file content to tvheadend it immediatelly restarts.
The grabber script is very simple. I attached it with my modifications. You can see my changes to force the stored killer xml file.
Could not you try to reproduce the fault on your system and collect the needed logs? Sorry for the inconvenience but I cannot provide you the requested information.
Updated by Akos Sz about 8 years ago
I talked to the author of the grabber and he confirmed that the xml is corrupted due to a change on the web page parsed by the grabber.
If you look into the file the "display-name" elements contain truncated information or sometimes empty. I guess this causes the trouble.
I would like Tvheadend to be improved to prevent crash in case of corrupt XML input.