TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid
Added by Adam W over 9 years ago
Hi everyone,
Just wondered if anyone could help with this.
Recently I've had to upgrade my Media Centre PC from Ubuntu 14.04 Trusty to 15.04 Vivid. I was happy on 14.04 until my DVBSky DVB-S2 card stopped working with the third party drivers. It works again in 15.04, with the other positive of the third party media_build drivers from DVBSky now also supporting my DVB-T2 USB stick properly.
As there's no TVHeadend build for Vivid, I added the Trusty repo and installed from there. All the channels have scanned in fine, and I can watch/record TV up to a point, but after a bit of use (especially after changing channels a few times or doing a few operations in the web interface) TVHeadend crashes. If I then run:
service tvheadend restart
TVHeadend will refuse to restart, and I have to reboot to get it running again. When the computer has booted, TVH doesn't start properly and I have to run the above command which in this case does work (until the first crash!)
I've had a look in the error log and this is what I get:
Up until crash:
Apr 27 19:11:05 mediacentre tvheadend[1714]: mpegts: 12418V in Eutelsat 13 - tuning on Montage DS3103/TS2022 : DVB-S #0
Apr 27 19:11:06 mediacentre tvheadend[1714]: subscription: 01C0: "scan" subscribing to mux "12418V", weight: 5, adapter: "Montage DS3103/TS2022 : DVB-S #0", network: "Eutelsat 13", service: "Raw PID Subscription"
Apr 27 19:11:24 mediacentre tvheadend[1714]: mpegts: 12418V in Eutelsat 13 scan complete
Apr 27 19:11:24 mediacentre tvheadend[1714]: subscription: 01C0: "scan" unsubscribing
Apr 27 19:11:24 mediacentre tvheadend[1714]: mpegts: 12465.91V in Eutelsat 13 - tuning on Montage DS3103/TS2022 : DVB-S #0
Apr 27 19:11:25 mediacentre tvheadend[1714]: subscription: 01C5: "scan" subscribing to mux "12465.91V", weight: 5, adapter: "Montage DS3103/TS2022 : DVB-S #0", network: "Eutelsat 13", service: "Raw PID Subscription"
Apr 27 19:11:44 mediacentre tvheadend[1714]: mpegts: 12465.91V in Eutelsat 13 scan complete
Apr 27 19:11:44 mediacentre tvheadend[1714]: subscription: 01C5: "scan" unsubscribing
This is the last I see before the crash, there's nothing else until my restart:
Apr 27 20:24:25 mediacentre tvheadend[10096]: * Stopping Tvheadend tvheadend
Apr 27 20:25:00 mediacentre tvheadend[10096]: ...fail!
Apr 27 20:25:00 mediacentre systemd[1]: Starting (null)...
Apr 27 20:25:00 mediacentre tvheadend[10178]: * Starting Tvheadend tvheadend
Apr 27 20:25:00 mediacentre tvheadend[10178]: ...done.
Apr 27 20:25:00 mediacentre tvheadend[10186]: main: Log started
Apr 27 20:25:00 mediacentre tvheadend[10186]: tcp: bind: *:9981: Address already in use
Apr 27 20:25:00 mediacentre tvheadend[10186]: tcp: bind: *:9982: Address already in use
Apr 27 20:25:00 mediacentre systemd[1]: Started (null).
Apr 27 20:25:00 mediacentre tvheadend[10186]: config: loaded
Apr 27 20:25:00 mediacentre tvheadend[10186]: scanfile: DVB-T - loaded 43 regions with 729 networks
Apr 27 20:25:00 mediacentre tvheadend[10186]: scanfile: DVB-S - loaded 1 regions with 92 networks
Apr 27 20:25:00 mediacentre tvheadend[10186]: scanfile: DVB-C - loaded 16 regions with 51 networks
Apr 27 20:25:00 mediacentre tvheadend[10186]: scanfile: ATSC - loaded 2 regions with 14 networks
Apr 27 20:25:01 mediacentre tvheadend[10186]: linuxdvb: adapter added /dev/dvb/adapter2
Apr 27 20:25:01 mediacentre kernel: [ 5677.695659] cx23885 0000:03:00.0: DVB: adapter 2 frontend 0 frequency 0 out of range (950000..2150000)
Apr 27 20:25:03 mediacentre tvheadend[10186]: linuxdvb: unable to open /dev/dvb/adapter1/frontend0
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (3.9.2747~g3049486~trusty) [0ecf949b64b9272a63def791e18a43d97bb2207e] CWD: /
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: Fault address 0x88 (Address not mapped)
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-gnu/libnss_files.so.2
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: Register dump [23]: 000000000074594000000000000000000000000000000001000000000000020200007ffca7c39940000000000000000000007ffca7c39ec00000000001c6d76000000000000000010000000000000000000000000000002000007ffca7c38dc000000000000000000000000000000000000000000000000000007ffca7c38ae000000000004aa4c1000000000001020600000000000000330000000000000004000000000000000efffffffe7ffbfa170000000000000088
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: STACKTRACE
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: ??:0 0x43d619
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: ??:0 0x7f71569c6d10
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: ??:0 0x4aa4c1
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: ??:0 0x4aacbc
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: ??:0 0x4853c9
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: ??:0 0x4086a9
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: __libc_start_main+0xf0 (/lib/x86_64-linux-gnu/libc.so.6)
Apr 27 20:25:03 mediacentre tvheadend[10186]: CRASH: ??:0 0x409b1f
Does anyone have any idea what's wrong?
Will there be a build for 15.04 any time soon?
Thanks!
Replies (10)
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by Prof Yaffle over 9 years ago
Are you building from source? If so, can you install the dbg .deb as well - I'm not sure that stack trace is much use otherwise, but the dbg debug symbols will translate it... given that, perex is pretty good at finding crashes.
I see no immediate reason why running the Trusty deb on Vivid would fail, but it's quite possible that a library has changed and perhaps there's an invalid call now.
(as an aside, you could probably have just run the newer kernel on 14.04 and got the new drivers that way, without changing the rest of the system - probably...).
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by c128 m over 9 years ago
Not directly related, but I'm happily using the Trusty .deb with Vivid using 2xDvbSky T9580s.
I'm currently on 3.9.2747~g3049486~trusty too, and have been "up" for about 5 days.
That was a clean install, mind you, using the drivers supplied by the 3.19 kernel and just dropping in the firmware...
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by Adam W over 9 years ago
I'm not building from source, just downloading the latest Trusty deb from the unstable repo. How can I get extra debug info from this? Would it be better to build from source?
c128, that's interesting about your system. I'm unsure whether the DVBSky drivers could be my issue then. I initially tried with the 3.19 Kernel drivers, but while the DVBSky S952's two tuners are recognised, I couldn't tune anything in. TVHeadend reported issues with setting the DiSEqC. Everything I've read seems to suggest that the Kernel drivers should work but I've never been able to get them to with this card.
With every issue I get closer to trying to find a different dual tuner DVB-S2 card that will just work and not cause me compatibility issues. Does anyone have any recommendations?
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by Mark Clarkstone over 9 years ago
Adam Wisher wrote:
I'm not building from source, just downloading the latest Trusty deb from the unstable repo. How can I get extra debug info from this? Would it be better to build from source?
c128, that's interesting about your system. I'm unsure whether the DVBSky drivers could be my issue then. I initially tried with the 3.19 Kernel drivers, but while the DVBSky S952's two tuners are recognised, I couldn't tune anything in. TVHeadend reported issues with setting the DiSEqC. Everything I've read seems to suggest that the Kernel drivers should work but I've never been able to get them to with this card.
With every issue I get closer to trying to find a different dual tuner DVB-S2 card that will just work and not cause me compatibility issues. Does anyone have any recommendations?
Install tvheadend-dbg, gdb & corekeeper & add the -D option to the startup script, tvheadend should then drop the core & corekeeper will catch it & place it in /var/crash, you can then run gdb [sudo gdb /usr/bin/tvheadend /var/crash/<uid>/hash-core.file] while in gdb enter [set logging on /home/hts/debug.log] then type bt full for the trace.
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by c128 m over 9 years ago
Adam Wisher wrote:
c128, that's interesting about your system. I'm unsure whether the DVBSky drivers could be my issue then. I initially tried with the 3.19 Kernel drivers, but while the DVBSky S952's two tuners are recognised, I couldn't tune anything in. TVHeadend reported issues with setting the DiSEqC. Everything I've read seems to suggest that the Kernel drivers should work but I've never been able to get them to with this card.
Ah, now I'm not using DiSEqC with my current T9580s - their DVB-S2 tuners are used directly for 28.2E. I do have another T9580 coming on the weekend though - that will be a replacement for an HVR4000 and be used for 13.0E and 19.2E. I'll post back success/failure when I have it set up.
FWIW I moved to DVBSky from TBS cards that were fine on Windows, but awful under Linux. TBH the T9850s have been great (so far) under Linux, I've yet to have a card/driver issue since switching. Ehh, personally, I wouldn't go TBS again - so I guess that's a non-recommendation rather than a recommendation :-) .
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by Adam W over 9 years ago
Thanks for the debug details, I'll have a go at that tonight and report back.
Well, it reports DiSEqC problems when connected to my 19.2°E/13°E setup but reported tone setting issues when connected to just one LNB so it seems like you've got further with the T9580 than I did at all!
Two of those cards may be the best way to go for me then, I want to keep 2 DVB-S2 tuners for Eutelsat 13 and Astra 1, and use DVB-T/2 for the UK terrestrial digital services. Is the DVB-T2 tuner on the T9580 sensitive? I only ask because our terrestrial reception where I am is only just over the threshold.
The only other thing my setup includes is linking to OSCam to read a French BIS Televisions card in a Smargo smartreader, and DOSCam on a Raspberry Pi.
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by c128 m over 9 years ago
Adam Wisher wrote:
Two of those cards may be the best way to go for me then, I want to keep 2 DVB-S2 tuners for Eutelsat 13 and Astra 1, and use DVB-T/2 for the UK terrestrial digital services.
mmm...you might have a bit of an issue with that - does that mean you'll effectively be wanting to tie one T9580 DVB-S2 tuner to Eutelsat 13 and another T9580 DVB-S2 tuner to Astra 1, or have both T9580 DVB-S2 tuners using DiSEqC and covering both locations? I'm thinking of the (re)-ordering of adapters on reboot here... If it's the latter, I think that'll be fine - if the DVB-S2 tuners re-order themselves, if won't matter. However, if it's the former, then I think you'll be hitting this issue: https://tvheadend.org/boards/5/topics/16122 i.e. your DVB-S2 adapters are liable to switch between Eutelsat/Astra.
Is the DVB-T2 tuner on the T9580 sensitive? I only ask because our terrestrial reception where I am is only just over the threshold
Tricky to comment on that. What I can say is that I have a crap aerial, and it picks up all the Freeview services it should do. However, I'm in a pretty strong reception area.
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by Adam W over 9 years ago
I have a dual output monoblock LNB so both tuners have both satellites.
Hopefully it won't come to changing cards though and I can get my current set-up working in the end!
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by c128 m over 9 years ago
c128 m wrote:
Ah, now I'm not using DiSEqC with my current T9580s - their DVB-S2 tuners are used directly for 28.2E. I do have another T9580 coming on the weekend though - that will be a replacement for an HVR4000 and be used for 13.0E and 19.2E. I'll post back success/failure when I have it set up.
Just as a follow-up to this, in case it helps - the new T9580 seems fine on my system using DiSEqC with the 3.19 kernel supplied drivers - I've a 4-port switch but I'm just using AA and AB for 13.0E and 19.2E at the moment.
Comparing the DVB-S2 components for the T9580 and the S952:
Demodulator: Montage M88DS3103 (both the same)
Tuner: Montage M88TS2022 (T9580), Montage M88TS2020 (S952)
...seems like things ought to be fine with the S952 too, as I suspect we'd be using largely the same drivers?
I ought to mention, I'm now on 3.9.2772~g8dbc38d~trusty; I've been just taking the unstable APT updates as they come - probably not that wise, but nothing's broken yet ;-) .
RE: TVHeadend 3.9 Crashing on Ubuntu 15.04 Vivid - Added by Frédéric Bernard over 9 years ago
Same problem, I'm using 2 DVB-T cards with ngene driver, detected as "DVB: registering adapter 0 frontend 0 (Micronas DRXD DVB-T)"
No problem on Ubuntu 14.10