Project

General

Profile

TvHeadend crashes at start

Added by Akos Sz over 11 years ago

Hi,

I hope it is allowed to repeat my question from Openelec forum here as well.

Tvheadend continously crashes at start in an endless loop. When I start the init script manually I see the followings:

root ~/.xbmc/addons/service.multimedia.tvheadend/bin # tvheadend.start
root ~/.xbmc/addons/service.multimedia.tvheadend/bin # /storage/.xbmc/addons/service.multimedia.tvheadend/bin/tvheadend.start: line 142: 4133 Segmentation fault $ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
/storage/.xbmc/addons/service.multimedia.tvheadend/bin/tvheadend.start: line 142: 4146 Segmentation fault $ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
/storage/.xbmc/addons/service.multimedia.tvheadend/bin/tvheadend.start: line 142: 4160 Segmentation fault $ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE

The service.log content:

root ~/.xbmc/addons/service.multimedia.tvheadend/bin # cat /storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend/service.log
Feb 23 21:03:07 [ INFO]:START: initialising
Feb 23 21:03:07 [ INFO]:charset: 71 entries loaded
Feb 23 21:03:07 [ INFO]:dvb: Found adapter /dev/dvb/adapter0 (TurboSight TBS 6922 DVBS/S2 frontend) via PCI, Reports valid SNR values
Feb 23 21:03:07 [ INFO]:dvb: Adapter /dev/dvb/adapter0 will run in full mux mode
Feb 23 21:03:10 [ ALERT]:CRASH: Signal: 11 in PRG: tvheadend (3.3.485~gf4dda1b) [c68e150051890e17da11b09a98d210c3a207f155] CWD: /storage/.xbmc/addons/service.multimedia.tvheadend/bin
Feb 23 21:03:10 [ ALERT]:CRASH: Fault address (nil) (Address not mapped)
Feb 23 21:03:10 [ ALERT]:CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/libcrypto.so.1.0.0 /usr/lib/libz.so.1 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /usr/lib/libcurl.so.4 /usr/lib/librt.so.1 /usr/lib/libdl.so.2 /usr/lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /usr/lib/libgcc_s.so.1 /usr/lib/libdbus-1.so.3 /usr/lib/libgnutls.so.28 /usr/lib/libhogweed.so.2 /usr/lib/libgmp.so.10 /usr/lib/libnettle.so.4 /usr/lib/librtmp.so.0 /lib/ld-linux-x86-64.so.2 /usr/lib/libssl.so.1.0.0
Feb 23 21:03:10 [ ALERT]:CRASH: Register dump [23]: 0000000000000000 00007f34914e6690 565f303030383535 00007f34914e6698 00000000019fcdb0 0000000000000522 00000000029899e0 0000000000000000 00000000008d4c00 0000000000002487 0000000000002487 0000000001a16d80 0000000000000001 0000000000000000 00007f34917fa2e8 00007fff9ba14230 0000000000458ded 0000000000010297 0000000000000033 0000000000000006 000000000000000e fffffffe7ffbfa17 0000000000000000
Feb 23 21:03:10 [ ALERT]:CRASH: STACKTRACE
Feb 23 21:03:10 [ ALERT]:CRASH: 0x42a906
Feb 23 21:03:10 [ ALERT]:CRASH: 0x7f34917ff650
Feb 23 21:03:10 [ ALERT]:CRASH: 0x458ded
Feb 23 21:03:10 [ ALERT]:CRASH: 0x459472
Feb 23 21:03:10 [ ALERT]:CRASH: 0x4569d1
Feb 23 21:03:10 [ ALERT]:CRASH: 0x4576fd
Feb 23 21:03:10 [ ALERT]:CRASH: 0x4540e4
Feb 23 21:03:10 [ ALERT]:CRASH: 0x405dd4
Feb 23 21:03:10 [ ALERT]:CRASH: __libc_start_main+0xf5 (/lib/libc.so.6)
Feb 23 21:03:10 [ ALERT]:CRASH: 0x40615d

History:
- I tested the my DVB-S card with a simple setup. After some configurations and restarts I could watch channels both on XBMC and my computer.
- I configured the whole satellite setup with 7 LNBs,
- It took hours while tvheadened was scanning muxes (>1k) and channels (>10k). During this process I was not able to watch any channel. The tuner was scanning instead of tuning to selected frequency. Probably this is an intende behavior.
- After finishing the scan I was still not able to receive any channel. The tuner was not tuned to the frequency of the selected channel.
- I tried rebooting the system. Tvheadend has never started since that.

I read that in an earlier release EPG database corruption could case similar crash, however I cannot find EPG database to delete it.

Any help highly appreciated!


Replies (4)

RE: TvHeadend crashes at start - Added by Adam Sutton over 11 years ago

I forget where OE stores stuff for TVH service. Try:

find /storage -name epgdb.v2

Also we'd need a gdb stack trace to help with debugging (I think OE includes gdb by default).

Adam

RE: TvHeadend crashes at start - Added by Akos Sz over 11 years ago

Hi Adam,

Thanks for your response.
I found epgdbv2, but it did not contain too much info. Did not look as a corrupted EPG database hence deletion of it did not solve the problem.

Then I deleted the whole service database (>10k entries). After removal of those files tvheadend started immediatelly. The issue is solved but I lost the service database.

I am not sure if tvheadened is able to handle such big database at all. Probably the database was not corrupted but too big. Now I try to scan satellites one-by-one then merge database.
Currently I have diseqc problems- It seemes as if the switch control does not follow the port settings in satellite setup.

RE: TvHeadend crashes at start - Added by Adam Sutton over 11 years ago

TVH will work with a pretty massive setup of services (inc epg) though the UI can be quite laggy (we're looking to improve that) so I doubt that's the issue.

Though interestingly I've just had another report of crash on startup, and it appears repeatable so I'm following up on that. There is actually a bug report in for it (fairly recent one).

Adam

RE: TvHeadend crashes at start - Added by Akos Sz over 11 years ago

That is a good news. I hope TVH will work after re-building the database.
If you are interested, I have a backup of the database which causes the fault. I cand send you if you are interested. I saw a very similar trouble report at Openelec site. The recovery was the same as in my case. See: http://openelec.tv/forum/79-tvheadend/62664-tvheadend-segfault-on-ion-x86-64-2-99-3-3-0-rc-3#64796

I would like to suggest two simple improvements regarding the GUI:
- Add filtering capability to columns with wildcard support. This would reduce the number of rows to be displayed hence speed up the GUI.
- Let configure multiple selected rows at once. I would mainly appreciate to set channel tags on multiple rows by a single click.

Thanks,

    (1-4/4)