Project

General

Profile

Bug #3034

Bug #2744: Tvheadend/Kodi crashes when ff/skipping to the end of the timeshift buffer

no client can connect after - could not read buffer - restart required - timeshift bug

Added by Eddsch K over 9 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Timeshift
Target version:
-
Start date:
2015-08-03
Due date:
% Done:

0%

Estimated time:
Found in version:
4.2
Affected Versions:

Description

Hey Guys,

I have complied the master git branch this weak with all debug options.

AUTOBUILD_CONFIGURE_EXTRA="--arch=x86_64 --enable-libav --enable-libffmpeg_static --enable-tsdebug --enable-kqueue" ./Autobuild.sh -t debian
dpkg-buildpackage: Quellpaket tvheadend
dpkg-buildpackage: Quellversion 4.1-254~gd93afc9-dirty
dpkg-buildpackage: Quellen geändert durch Andreas Öman <[email protected]>
dpkg-buildpackage: Host-Architektur amd64
 dpkg-source --before-build tvheadend
 debian/rules clean
dh clean
   dh_testdir
   dh_clean
        rm -f debian/tvheadend.substvars
        rm -f debian/tvheadend.*.debhelper
        rm -rf debian/tvheadend/
        rm -f debian/tvheadend-dbg.substvars
        rm -f debian/tvheadend-dbg.*.debhelper
        rm -rf debian/tvheadend-dbg/
        rm -f debian/*.debhelper.log
        rm -f debian/files
        find .  \( \( -type f -a \
                \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
                 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
                 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
                 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
                \) -exec rm -f {} \; \) -o \
                \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) \)
 debian/rules build
dh build
   dh_testdir
   debian/rules override_dh_auto_configure
make[1]: Entering directory `/usr/src/debug/tvheadend'
dh_auto_configure -- --arch=x86_64 --enable-libav --enable-libffmpeg_static --enable-tsdebug --enable-kqueue
        ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=\${prefix}/lib/tvheadend --disable-maintainer-mode --disable-dependency-tracking --arch=x86_64 --enable-libav --enable-libffmpeg_static --enable-tsdebug --enable-kqueue
Checking support/features
  checking for cc execinfo.h ...                    ok
  checking for cc -mmmx ...                         ok
  checking for cc -msse2 ...                        ok
  checking for cc getloadavg ...                    ok
  checking for cc atomic64 ...                      ok
  checking for cc lockowner ...                     ok
  checking for cc qsort_r ...                       ok
  checking for cc stime ...                         ok
  checking for cc recvmmsg ...                      ok
  checking for cc sendmmsg ...                      fail
  checking for cc libiconv ...                      fail
  checking for cc libdvben50221 ...                 fail
  checking for py module gzip ...                   ok
  checking for xgettext ...                         ok
  checking for msgmerge ...                         ok
  checking for gzip ...                             ok
  checking for bzip2 ...                            ok
  checking for pkg openssl  ...                     ok (detected 1.0.1e)
  checking for cc linux/dvb/version.h ...           ok
  checking for cc libhdhomerun/hdhomerun.h ...      fail
  checking for pkg zlib  ...                        ok (detected 1.2.7)
  checking for pkg liburiparser  ...                ok (detected 0.7.5)
  checking for pkg avahi-client  ...                ok (detected 0.6.31)
  checking for cc sys/inotify.h ...                 ok
  fetching dvb-scan files ...                       ok
  checking for pkg dbus-1  ...                      ok (detected 1.6.8)

Compiler:
  Using C compiler:                        cc
  Build for arch:                          x86_64

Binaries:
  Using PYTHON:                            python
  Using GZIP:                              gzip
  Using BZIP2:                             bzip2

Options:
  cwc                                      yes
  capmt                                    yes
  constcw                                  yes
  linuxdvb                                 yes
  satip_server                             yes
  satip_client                             yes
  hdhomerun_client                         no
  hdhomerun_static                         no
  iptv                                     yes
  tsfile                                   yes
  dvbscan                                  yes
  timeshift                                yes
  trace                                    yes
  imagecache                               yes
  avahi                                    yes
  zlib                                     yes
  libav                                    yes
  libffmpeg_static                         yes
  libffmpeg_static_x264                    yes
  inotify                                  yes
  epoll                                    yes
  uriparser                                yes
  ccache                                   no
  tvhcsa                                   yes
  bundle                                   no
  dvbcsa                                   no
  dvben50221                               no
  kqueue                                   yes
  dbus_1                                   yes
  android                                  no
  tsdebug                                  yes
  gtimer_check                             no
  execinfo                                 yes
  mmx                                      yes
  sse2                                     yes
  getloadavg                               yes
  atomic64                                 yes
  lockowner                                yes
  qsort_r                                  yes
  stime                                    yes
  recvmmsg                                 yes
  py_gzip                                  yes
  bin_xgettext                             yes
  bin_msgmerge                             yes
  bin_gzip                                 yes
  bin_bzip2                                yes
  ssl                                      yes
  linuxdvbapi                              yes
  upnp                                     yes
  inotify_h                                yes
  mpegts                                   yes
  mpegts_dvb                               yes

Packages:
  openssl                                  1.0.1e
  zlib                                     1.2.7
  liburiparser                             0.7.5
  avahi-client                             0.6.31
  dbus-1                                   1.6.8

Installation paths:
  Prefix:                                  /usr
  Binaries:                                ${prefix}/bin
  Libraries:                               ${prefix}/lib
  Data files:                              ${prefix}/share
  Man pages:                               /usr/share/man

Final Binary:
  /usr/src/debug/tvheadend/build.linux/tvheadend

Tvheadend Data Directory:
  /usr/share/tvheadend

tvheadend do not "crash" but it hangs, if somebody skip or ff to the end of the buffer. A client can't connect after the "could not read buffer" error but tvheadend runs, because there is a PID of it. The client only can connect after service tvheadend restart (take longer than normal)

Here my timeshift-config:
Enabled: yes
OnDemand: no
OnlyUseRam: yes
Size: 2048

And my DebuggingConfig:
DebugTrace: yes
Debug subsystems: +all
Trace subsystems: htsp,timeshift,subcription,bat,pmt,pat,htsp-req,htsp-ans,htsp-sub

tvheadendlog:
line 264 start
line 18771 pause
line 37298 play
line 46824 ff (2x)
line 48848 ff (4x)
line 9156 play (not the end, working)
line 129649 ff (2x)
line 133637 could not read buffer

kodilog:
line 75173 receive message [subscriptionStop]

I use Tvheadend since Version 3.4 and I love it! With Kodi it's the ultimative HomeCinnemaExperience. The only thing is that since 3.4.XXX timeshift is buggy . Late in the past I used Windows Media Center and there it was no Problem to skip or do fast forward in the buffered TV-stream. It would be awesome to have this feature on an linux system.
Please fix the Bug, i would like to help you. Tell me how I can do that :)

Thanks a lot!
Eddsch


Files

kodi12.log (7.96 MB) kodi12.log Eddsch K, 2015-08-03 13:26
tvheadenddebug12.log (17.6 MB) tvheadenddebug12.log Eddsch K, 2015-08-03 13:27
syslog.log (40.4 KB) syslog.log Eddsch K, 2015-08-03 13:57

History

#1

Updated by Eddsch K over 9 years ago

Out of memory: Kill process 16906 (tvheadend) score 742 or s
#2

Updated by Jaroslav Kysela about 9 years ago

  • Parent task set to #2744
#3

Updated by Jaroslav Kysela about 9 years ago

  • Category changed from Crashes to Timeshift
#4

Updated by Jaroslav Kysela over 8 years ago

I believe it's fixed now.

#5

Updated by Jaroslav Kysela over 8 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF