Bug #4079
Crash when switching to HD encrypted channel
0%
Description
I am running Tvheadend 4.1-2286~gb15b02c on Odroid XU4 running Debian Jessie with OScam r11279 and watching using Kodi. I am using a Smargo Smartreader v2. Tuner is HDHomeRun Expand (4 tuners).
Watching SD encrypted channels works fine. When switching to any HD encrypted channel, Tvheadend crashes. There is no error message, it just crashes. Same setup (with stable Tvheadend version 4.0.9) works perfectly on multiple other computers. Unencrypted HD channels work perfectly. I did some more troubleshooting and I can say that OScam is not the issue and the Smartreader is not the issue and Odroid hardware is not the issue.
In the mean time I built and installed 4.0.9 and that version works perfectly with all encrypted channels.
Files
History
Updated by Jaroslav Kysela almost 8 years ago
Could you run the backtrace command only in the thread which crashed?
Also try to use the ARM optimized dvbcsa library for descrambling instead the build-in ffdecsa.
Updated by Davor Komljenovic almost 8 years ago
Jaroslav Kysela wrote:
Could you run the backtrace command only in the thread which crashed?
Also try to use the ARM optimized dvbcsa library for descrambling instead the build-in ffdecsa.
I am sorry but I cannot do this now. I just set up the 4.0.9 version and it is a bit of a hassle to install the version that has the problem.
If you really need the additional information, maybe I can find some time during the weekend to back up the current configuration and all of the associated files then install the version with the problem.
How do I "run the backtrace command only in the thread which crashed"?
And how do I use the optimized dvbcsa library? I don't even know how descrambling works with OScam. Do I have to re-build OScam differently or do I make some other changes? Any help is appreciated.
Updated by Davor Komljenovic almost 8 years ago
UPDATE: I figured out how to use dvbcsa library. I re-built the 4.0.9 version with dvbcsa library instead of tvhcsa. Works fine for this version.
However, I still did not try the same with the version that crashed. Once I figure out how to safely back up the current tvheadend configuration, I will build the version that crashed with dvbcsa and test it again. Please just tell me how do I run the backtrace command only in the thread that crashed. I will hopefully do it this weekend.
Updated by Jaroslav Kysela almost 8 years ago
Run tvh in gdb on command line: gdb --args /standard tvh command/ . Then type 'r' (run) and wait for the crash. Then type 'bt' (backtrace).
You may also attach gdb to the running tvh using 'gdb -p <pid> <tvh_binary>' instead 'gdb --args'.
Updated by Jaroslav Kysela almost 8 years ago
But it would be probably nice to fix the tvhcsa, too. If you can reproduce this, provide the backtrace for this config, too.
Updated by Davor Komljenovic almost 8 years ago
I tried building the version that was crashing over the weekend. I keep having build errors when trying to build that version. I'm not sure what the problems are, I will have to keep trying this weekend. Unless I try cross compiling using my x86 laptop running Ubuntu 16.04. Then I can run the building process while the working tvheadend 4.0.9 is running on Odroid XU4. So please give me some more time.
Updated by Davor Komljenovic almost 8 years ago
I finally built 4.1.2286~gb15b02c version but using dvbcsa library instead of tvhcsa. Now I have no problems with encrypted channels. For me this solves the problem.
Honestly, I do not want to go through the effort of rebuilding with tvhcsa and repeating the error. Please let me know if you it is really helpful to fix the tvhcsa. If it is really helpful for the community, I will do it.