You are not logged in.

#1 2014-06-27 15:28:45

boomshalek
Member
Registered: 2007-10-12
Posts: 113

mythtv-0.27.1 crashing after upgrade

Hi folks

I used to compile mythtv-0.27-fixes from git with my own PKGBUILD. Since about 3 months whenever I tried to upgrade it, the frontend always crashed with a segmentation fault and mythwelcome claimed it was not able to connect to the backend which seemed to have started.

I today tried to modify the 0.27-8 package from the community repo (currently marked as "out of date") in order to compile it from sources. Exactly the same result, compiled fine but crashed after starting.

As I am assuming that a lot of you guys are using this neat piece of software I wanted to ask if some of you upgraded to 0.27.1 already without problems?

Offline

#2 2014-06-28 16:52:41

boomshalek
Member
Registered: 2007-10-12
Posts: 113

Re: mythtv-0.27.1 crashing after upgrade

backend crashed after running about 5 minutes from boot:
2014-06-28 18:39:05.590765 C [661/661] CoreContext signalhandling.cpp:305 (handleSignal) - Received Segmentation fault: Code 1, PID 61, UID 0, Value 0x7f9ef4003a50

Offline

#3 2014-06-28 17:13:56

boomshalek
Member
Registered: 2007-10-12
Posts: 113

Re: mythtv-0.27.1 crashing after upgrade

Output from gdb:

[New Thread 0x7f18937fe700 (LWP 2128)]
[Thread 0x7f18b27fc700 (LWP 2044) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f19709a9700 (LWP 2017)]
0x00007f198a6b4855 in ?? () from /usr/lib/libmythtv-0.27.so.0

Offline

#4 2014-07-04 08:36:14

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Re: mythtv-0.27.1 crashing after upgrade

Hi Boomshalek,

I'm getting this too but no problems with what works from April. However, since mythtv 0.27 has gone to 0.27.2 I've been thinking about investigating. There is a reason mythtv package hasn't been upgraded in 2 months.


Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

#5 2014-07-04 12:32:40

boomshalek
Member
Registered: 2007-10-12
Posts: 113

Re: mythtv-0.27.1 crashing after upgrade

wdirksen wrote:

I'm getting this too but no problems with what works from April. However, since mythtv 0.27 has gone to 0.27.2 I've been thinking about investigating. There is a reason mythtv package hasn't been upgraded in 2 months.

This is exactly the reason why I started to "investigate" too. I am constantly switching back and forth between my "April-based" backup (0.27-fixes compiled from git) and recompiled new git versions, but new versions are completely unusable. I am getting segfaults from the backend after about 5minutes uptime (I think it has to do with EIT scanning because of this thread here) and mythwelcome/mythfrontend claims beeing not able to connect to the backend while manual tests (mysql -umythtv -p) are successful. Please check my thread at the mythtv official forum.

Let's try to get into this.

Last edited by boomshalek (2014-07-04 12:35:14)

Offline

#6 2014-07-05 05:41:49

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Re: mythtv-0.27.1 crashing after upgrade

OK, so I have tried the first obvious places to look but still no luck. I can confirm that compiling with gcc 4.8 (current 4.9-5) together with running on linux-lts (3.10) makes no difference. I know that current Debian does run good on 0.27.2 and the very new 0.27.3. So I'm thinking that since ARCH runs very new packages, sometimes beta even, that one of the dependancies of mythtv might be too new and causing the segfaults. I hear the EIT problem was solved in 0.27.2.

I think we should try to compile with no external codecs selected and see what happens.

So MythTV finally got a forum going? I thought hell would freeze over before that happened. It's about time. Up until now the Gossemer threads were the place to be for MythTV. I will write into the MythTV forum after I try a few more things.


Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

#7 2014-07-20 13:15:47

boomshalek
Member
Registered: 2007-10-12
Posts: 113

Re: mythtv-0.27.1 crashing after upgrade

Hi

I have just compiled todays GIT Version of 0.27-fixes and it seems to be working ! First time since 4 months.

Offline

#8 2014-07-21 01:09:19

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Re: mythtv-0.27.1 crashing after upgrade

boomshalek wrote:

Hi

I have just compiled todays GIT Version of 0.27-fixes and it seems to be working ! First time since 4 months.

Nah, not here. I'm using v0.27.3.107.gf91e18d and still MYTH_PROTO problems:

 2014-07-21 13:03:39.943612 C  Protocol version check failure.
			The response to MYTH_PROTO_VERSION was empty.
			This happens when the backend is too busy to respond,
			or has deadlocked due to bugs or hardware failure. 

Mythbackend seems OK in itself but without connection to a frontend kind of worthless it would seem. Boomshalek, could you provide info over your build config, or do you use vaca's mythtv-git AUR package?

EDIT: However, mythconverg mythplugin tables buggered again as before. This be a mythplugins problem. I will try removing mythplugins from all clients and try again. That might be the culprit.

Last edited by wdirksen (2014-07-21 01:12:47)


Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

#9 2014-07-21 06:34:53

boomshalek
Member
Registered: 2007-10-12
Posts: 113

Re: mythtv-0.27.1 crashing after upgrade

Are you using up to date stable packages? I did not change my PKGBUILD file since it failed running the last time. You might want to try mine and update your system.
Also, I remove all previous mythtv packages (incl. Plugins) before reinstalling.

Last edited by boomshalek (2014-07-21 06:36:13)

Offline

#10 2014-07-21 08:24:21

boomshalek
Member
Registered: 2007-10-12
Posts: 113

Re: mythtv-0.27.1 crashing after upgrade

Here is my PKGBUILD, please note:
              --perl-config-opts=INSTALLDIRS=vendor
as well as NOT using 
              --qmake=qmake4

# Contributor: myself
pkgname=mythtv-git
pkgver=0.27
pkgrel=5
pkgdesc="A Homebrew PVR project 0.27-fixes"
arch=('i686' 'x86_64')
url="http://www.mythtv.org/"
license=('GPL')
depends=('avahi' 'fftw' 'libass' 'libcdio' 'lame' 'libavc1394' 'libiec61883' 'libvdpau' 'libxinerama' 'libxvmc'
         'lirc-utils' 'mesa' 'mariadb-clients' 'mysql-python' 'perl-dbd-mysql'
         'perl-libwww' 'perl-net-upnp' 'perl-io-socket-inet6' 'perl-socket6' 'python-lxml' 'urlgrabber' 'qt4' 'wget' 'yasm' 'x264' 'qtwebkit')
makedepends=('git')
optdepends=('xmltv: to download tv listings' 'avahi' 'libass' 'python2-lxml' 'pulseaudio')
replaces=('mythtv-contrib' 'mythtv')
conflicts=('mythtv-contrib' 'mythtv')
provide=('mythtv')
backup=('usr/lib/systemd/system/mythbackend.service')
install='mythtv.install'
#options=(debug !strip)
source=('mythbackend.service'
        'mythfrontend.desktop')

md5sums=('e17cac243157ad23c549a742e19fcbf4'
        'f29b41c32f64b40742d6208ab3b44fa7')

_gitname="mythtv"
_gitroot="git://github.com/MythTV/mythtv.git"

build() {
  cd ${srcdir}
  msg "Connecting to GIT server...."

if [ -d $_gitname/.git ]; then
    cd $_gitname
    git pull && git pull origin
    msg "The local files are updated."
else
    git clone -b fixes/0.27 "$_gitroot" "$_gitname"
#    git clone -b devel/027candidates "$_gitroot" "$_gitname"
    cd $_gitname
fi

msg "GIT checkout done or server timeout"
msg "Starting make..."

rm -rf "$srcdir/$_gitname-build"

git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build/$_gitname"

find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'

#patch -Np2 -i "$srcdir/eithelper.patch"
#patch -Np2 -i "$srcdir/upc.027-fixes.patch"
#patch -Np2 -i "$srcdir/mythtv_fix_broken_providers_with_gui.3.diff"
#patch -Np2 -i "$srcdir/ticket12098-dont-load-lib-when-opengles-disabled.diff"

#             --compile-type=debug \

  ARCH="${CARCH/_/-}"
  ./configure --prefix=/usr --cpu="$ARCH" \
              --disable-altivec \
              --enable-mmx \
              --disable-audio-oss \
              --disable-audio-jack \
              --disable-audio-pulse \
              --disable-distcc \
              --disable-ccache \
              --disable-libcec \
              --disable-libdns-sd \
              --disable-dxva2 \
              --disable-hdhomerun \
              --disable-mheg \
              --disable-quartz-video \
              --dvb-path=/usr/include \
              --disable-ivtv \
              --disable-hdpvr \
              --disable-firewire \
              --disable-crystalhd \
              --disable-ceton \
              --disable-mythlogserver \
              --enable-nonfree \
              --enable-libfaac \
              --enable-libfftw3 \
              --enable-libmp3lame \
              --enable-libvpx \
              --enable-libx264 \
              --enable-libxvid \
              --enable-sdl \
              --with-bindings=perl,python \
              --perl-config-opts=INSTALLDIRS=vendor \
              --python=python2

#sed -i "32 i #include <sys/types.h>" external/FFmpeg/libavdevice/alsa-audio.h
#sed -i "30 i #include <sys/types.h>" external/FFmpeg/libavdevice/alsa-audio-common.c
#sed -i "47 i #include <sys/types.h>" external/FFmpeg/libavdevice/alsa-audio-dec.c
#sed -i "39 i #include <sys/types.h>" external/FFmpeg/libavdevice/alsa-audio-enc.c

  make
}

package() {
  cd ${srcdir}/$_gitname-build/$_gitname
  make INSTALL_ROOT="$pkgdir" install

  install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
  install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
  install -D -m644 "$srcdir/mythfrontend.desktop" "$pkgdir/usr/share/applications/mythfrontend.desktop"
  mkdir -p "$pkgdir/var/log/mythtv"
  mkdir -p "$pkgdir/usr/share/mythtv"
  cp -R 'contrib' "$pkgdir/usr/share/mythtv"
}

Offline

#11 2014-07-23 02:43:28

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Re: mythtv-0.27.1 crashing after upgrade

Thanks boomshalek. The only true difference I'm seeing between your PKGBUILD and mine is the qmake=qmake4 which I removed from mine but I'm still getting the Mythproto error. I am going to try your exact PKGBUILD with a new mythconverg db and see if it works that way.


Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

#12 2014-07-25 07:30:00

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Re: mythtv-0.27.1 crashing after upgrade

Well I'm still out of luck here. No build variation from mythtv GIT works as I'm always getting MYTHPROTO errors when mythfrontend attempts to connect. I've also tried with a virgin new mythconverg as well. No idea.
I'm quitting this for awhile and will wait for a new mythtv ARCH package to show up one day.

Last edited by wdirksen (2014-07-25 07:34:30)


Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

#13 2014-07-25 09:52:56

robin67
Member
From: the Netherlands
Registered: 2012-02-18
Posts: 45

Re: mythtv-0.27.1 crashing after upgrade

wdirksen wrote:

Well I'm still out of luck here. No build variation from mythtv GIT works as I'm always getting MYTHPROTO errors when mythfrontend attempts to connect. I've also tried with a virgin new mythconverg as well. No idea.
I'm quitting this for awhile and will wait for a new mythtv ARCH package to show up one day.

I guess that won't take that long anymore. The latest Mythtv package for archlinux was uploaded yesterday in the testing community repo.
It probably will end up in the commuity repo soon

If you can't wait that long:  check here

Offline

#14 2014-07-27 09:31:15

robin67
Member
From: the Netherlands
Registered: 2012-02-18
Posts: 45

Re: mythtv-0.27.1 crashing after upgrade

0.27.3 has already hit the community repo by now. I just installed it, and had no problems doing so.
Al seems to be working fine and is stable. Changing channels feels much faster .....

I shutdown my frontend and backend first, to be save made a backup and then only then performed the upgrade.
After this I first started mythtv-setup for possible database changes to be applied, and exited it again before restarting the backend and frontend.

Offline

Board footer

Powered by FluxBB