Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another Segmenation Fault #39

Open
EMJB opened this issue Aug 13, 2015 · 5 comments
Open

Another Segmenation Fault #39

EMJB opened this issue Aug 13, 2015 · 5 comments

Comments

@EMJB
Copy link

EMJB commented Aug 13, 2015

When I try to run a newly compiled pidvbip with a newly compiled tvheadend both on my Pi2 with latest Raspbian build, I get:

"Using host "127.0.0.1:9982"
host[1]=(null)
Using /dev/input/event0 - PixArt USB Optical Mouse
Connecting to 1 servers
Connecting to server 0 - 127.0.0.1
Starting vcodec_omx_thread
vcodec_omx_thread: next_channel
Connecting to server 0: 127.0.0.1 (127.0.0.1) port 9982...
2015-08-13 13:51:42.664 [ INFO] htsp: Got connection from 127.0.0.1
2015-08-13 13:51:42.664 [ INFO] htsp: 127.0.0.1: Welcomed client software: pidvbip (HTSPv1)
Initial sync completed
Startup stopped 0
Channels_getfirst
2015-08-13 13:51:42.724 [ INFO] htsp: 127.0.0.1 [ pidvbip ]: Disconnected
Segmentation fault"

with timed/dated entries coming from tvheadend rather than pidvbip. There is indeed an optical mouse connected, and tvheadend appears to work correctly because I can watch TV on my PC using VLC and the 9982 port on my Pi.

Any ideas what I am doing wrong?

@EMJB
Copy link
Author

EMJB commented Aug 15, 2015

Further investigation seems to indicate the problem arises when pidvbip tries to load the channel list from tvheadend, as the no startup option defers the fault till you request display of the channel list. Perhaps this is as a result of a change to tvheadend?

@pbosgraaf
Copy link

Don't know the reason behind your error, but compiled it some weeks ago without any problems on the last raspbian. It's been running smooth every since. Here's my buildlog, hope it helps:

BASIC RASPBIAN INSTALL

  1. install raspbian (i'm using 2015-05-05-raspbian-wheezy.img)
  2. after booting the initial setup wizzard apears, choose these options:
    1. expand filesystem
    2. change user password
    3. enable boot to desktop
    4. advanced options
      A2. Set hostname "tv1.domain.local"
      A3. Set 128MB video memory
  3. Back and finish (Let the raspberry reboot)
  4. Login to the raspberry using SSH (username pi, password provided in steps above)
  5. run: apt-get update
  6. run: apt-get upgrade
  7. run: vi /boot/config.txt
    Add your mpeg2 and vc1 license keys, something like:
    decode_MPG2=0x55bfcf0
    decode_WVC1=0x6219bf05
  8. run: reboot

INSTALL PIDVBIP STARS HERE

  1. apt-get update
  2. apt-get install libmpg123-dev libfaad-dev liba52-dev libavahi-client-dev libfreetype6-dev libavformat-dev
  3. cd /usr/src
  4. git clone https://github.com/linuxstb/pidvbip
  5. cd pidvbip
  6. ./configure
  7. make
  8. cp -av pidvbip.conf.example /root/.pidvbip
  9. vim /root/.pidvbip
    Change tvheadend connection details.

@EMJB
Copy link
Author

EMJB commented Aug 15, 2015

Thanks pbosgraaf. I was doing as you suggest but different directories and using the command line instead of the configuration file, but to play safe have repeated using your instructions with no obvious effect if I run pidvbip as a pi user. However if I run with "sudo ./pidvbip" I no longer get the segmentation fault report, but pidvbip seems to exit leaving a prompt which fails to respond to any attempt to enter a command. Starting a separate SSH log in and trying to reboot then fails with:

"[info] will now restart
[..] snmsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wake-up"

though I can reboot with the GUI.

Could you lease clarify what commands you are using to run pidvbip & tvheadend, and which version of tvheadend (I am using version 4.1-373~gcb5f6a1).

TIA,

EMJB

@pbosgraaf
Copy link

Sure no problem, i'm running tvheadend 4.0.5 on ubuntu lts 14.04
For pidvbip i just start it as root without any arguments.

@EMJB
Copy link
Author

EMJB commented Aug 15, 2015

Found the source of my problems - I hadn't mapped any channels in tvheadend, so the channel list was empty. Naughty!

Hope this will help someone else with similar problems.

EMJB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants