linuxstb / pidvbip

tvheadend client for the Raspberry Pi
http://www.pidvbip.org
GNU General Public License v2.0
53 stars 22 forks source link

Another Segmenation Fault #39

Open EMJB opened 9 years ago

EMJB commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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