Forums » Descrambling »
[SOLVED] Crash when switching to HD encrypted channel
Added by Davor Komljenovic about 8 years ago
Hello,
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 (maybe slightly different Tvheadend versions) works perfectly on multiple other computers. Unencrypted HD channels work perfectly.
I do see these two errors every time this happens (when running dmesg usb):
Alignment trap: not handling instruction edd10b00 at ...
Unhandled fault: alignment exception (0x001) at ...
Seems like it has something to do with the Smartreader but I can't figure out what and it is strange that SD channels work. Comparing Odroid XU4 to other computers I tested, the USB ports and the operating system (specifically the Debian Jessie server image I am using) are the major differences.
Any thoughts? Since this is going to be my PVR machine, I need this to work.
UPDATE: I installed the debug version and parsed through the dump file. The file is attached. Can anyone look at it and tell me what you see?
Replies (6)
RE: Crash when switching to HD encrypted channel - Added by Mark Clarkstone about 8 years ago
Davor Komljenovic wrote:
Hello,
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 (maybe slightly different Tvheadend versions) works perfectly on multiple other computers. Unencrypted HD channels work perfectly.
I do see these two errors every time this happens (when running dmesg usb):
Alignment trap: not handling instruction edd10b00 at ...
Unhandled fault: alignment exception (0x001) at ...Seems like it has something to do with the Smartreader but I can't figure out what and it is strange that SD channels work. Comparing Odroid XU4 to other computers I tested, the USB ports and the operating system (specifically the Debian Jessie server image I am using) are the major differences.
Any thoughts? Since this is going to be my PVR machine, I need this to work.
Install the debug version of tvheadend (tvheadend_dbg), corekeeper and gdb (sudo apt-get install tvheadend_dbg corekeeper gdb).
Run tvheadend as normal & when it crashes use gdb to parse the dump, dumps are placed in /var/crash.
So..
After a crash check there is a dump in /var/crash (use sudo ls /var/crash) & then start GDB using the tvheadend binary & the core dump.: $ sudo gdb /usr/bin/tvheadend /var/crash/<0>/<dump> Set logging to a temp file: $ set logging on /tmp/gdb.txt Get a full trace: $ thread apply all bt full Exit: $ quit Edit the /tmp/gdb.txt & file to remove any personal info (lines that say password (including 0x.... lines). You may want to do this on another pc rather than via terminal. $ nano /tmp/gdb.txt
Once you have the trace, open a new issue on here and attach the log & include everything you think may be necessary.
RE: Crash when switching to HD encrypted channel - Added by Davor Komljenovic about 8 years ago
Thank you. I am out of town for a week so I will not be able to do this until I get back.
In general, are you aware of issues with the Smartreader and Odroid XU4? Strange that same setup and hardware work on multiple computers.
RE: Crash when switching to HD encrypted channel - Added by Mark Clarkstone about 8 years ago
Davor Komljenovic wrote:
Thank you. I am out of town for a week so I will not be able to do this until I get back.
In general, are you aware of issues with the Smartreader and Odroid XU4? Strange that same setup and hardware work on multiple computers.
Just to let you know, I'm not a dev, I just work on the help docs.
There was someone else with a similar issue on the IRC channel, Pepe his username was, he was using an Odroid C2 though. I think it was determined to be an issue with the hardkernel used on the Odroid & he ended up switching to another device. I can't remember if they fixed it though.
So don't be surprised if you get told by Jaroslav (the main dev at the moment) that the issue is with the kernel & not tvheadend.
RE: Crash when switching to HD encrypted channel - Added by Davor Komljenovic about 8 years ago
Mark,
I did as you suggested and created the dump file. I uploaded it to the first post.
RE: [SOLVED] Crash when switching to HD encrypted channel - Added by Davor Komljenovic about 8 years ago
All,
I simply built version 4.0.9 (latest stable) on my Odroid XU4. Now everything works perfectly. I guess the issue still exists with the version I had before so if anyone wants to tackle the issue, the information in this post should be enough to get started.
RE: Crash when switching to HD encrypted channel - Added by Mark Clarkstone about 8 years ago
Davor Komljenovic wrote:
Mark,
I did as you suggested and created the dump file. I uploaded it to the first post.
You need to open an issue here & not just attach it to this thread :).