Project

General

Profile

Bug #3577

TVHeadend soft-cancels recording of show after a certain sequence of events with recording and live TV (explained in description)

Added by Michael Marley almost 8 years ago. Updated almost 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
PVR / DVR
Target version:
-
Start date:
2016-02-19
Due date:
% Done:

100%

Estimated time:
Found in version:
4.1-1533~gff6bf99~wily
Affected Versions:

Description

I have discovered a certain sequence of events that can "soft-cancel" a recording in progress. (TVHeadend still indicates that the recording is in progress, but the tuner is freed and the file size no longer grows.) The sequence of steps, for a two-tuner system, is as follows:

  1. Start watching two channels live. I used Kodi with kodi-pvr-hts 2.2.13, but it may not matter.
  2. Start recording a third channel, which will preempt the tuner for one of the channels you are watching live.
  3. Start recording on the channel that was preempted in step 2. This will preempt the other tuner, leaving both Kodi instances stopped with a static image and both tuners recording.
  4. Press the stop button on the Kodi instance that was playing the channel you began recording in step 3.

You can then see that the recording on the channel from steps 3 and 4 still appears to recording, but the file size no longer grows and one of the tuners is freed. The proper behavior would be to continue recording.

History

#1

Updated by Michael Marley almost 8 years ago

Further testing indicates that after step 3, there are four subscriptions present as I would expect. Two of them are for the channel from steps 3 and 4 that was previously preempted from live TV but is now recording, one for the live TV and one for the recording. When I stop the live TV session, the live TV subscription disappears and the recording subscription stays, but the tuner is freed anyway so the recording stops.

#2

Updated by Jaroslav Kysela almost 8 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|7dec7915136f9ff4aaea164e5dbaa4c01f0e2fc9.

#3

Updated by Jaroslav Kysela almost 8 years ago

Fixed in v4.1-1536-gfb4c72d . Thanks.

#4

Updated by The Troll almost 8 years ago

Hi,

I just got this crash, maybe it's related to the fix ?

2016-02-19 23:39:43.000 [WARNING] subscription: 0032: service instance is bad, reason: No input detected
tvheadend-nc: src/subscriptions.c:342: subscription_reschedule: Assertion `si != ((void *)0)' failed.
2016-02-19 23:39:43.000 [ ALERT] CRASH: Signal: 6 in PRG: /root/.hts/tvheadend-nc/tvheadend-nc (4.1-1675~gefb49d1) [92ef35daf095d978c442de7fc11930ca6dcf61bd] CWD: /root
2016-02-19 23:39:43.000 [ ALERT] CRASH: Fault address 0x74a8 (N/A)
2016-02-19 23:39:43.000 [ ALERT] CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/libdvben50221.so /usr/lib/libdvbapi.so /usr/lib/libucsi.so /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /opt/intel/mediasdk_usr_r6/lib/libavcodec.so.56 /opt/intel/mediasdk_usr_r6/lib/libavutil.so.54 /opt/intel/mediasdk_usr_r6/lib/libavformat.so.56 /opt/intel/mediasdk_usr_r6/lib/libswscale.so.3 /usr/lib/x86_64-linux-gnu/libavresample.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/librt.so.1 /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libvdpau.so.1 /lib/x86_64-linux-gnu/libc.so.6 /opt/intel/mediasdk_usr_r6/lib/libswresample.so.1 /opt/intel/mediasdk_usr_r6/lib64/libva.so.1 /usr/local/lib/libx265.so.74 /usr/lib/x86_64-linux-gnu/libx26
2016-02-19 23:39:43.000 [ ALERT] CRASH: Register dump [23]: fefefefefefefe0000000000096c2d6000000000000000080000000000000202000000000051833900000000005184d00000000000e46d10000000000000000100000000000074a800000000000074a800007f0d5194ece800007f0cb9f730000000000000000006000000000000000000007f0d5181f10700007ffebf89988800007f0d5181f1070000000000000202000000000000003300000000000000000000000000000000fffffffe7ffbba150000000000000000
2016-02-19 23:39:43.000 [ ALERT] CRASH: STACKTRACE
2016-02-19 23:39:43.039 [ ALERT] CRASH: /home/src/tvheadend/tvheadend/src/trap.c:148 0x449b06
2016-02-19 23:39:43.049 [ ALERT] CRASH: ??:0 0x7f0d525f28d0
2016-02-19 23:39:43.049 [ ALERT] CRASH: gsignal+0x37 (/lib/x86_64-linux-gnu/libc.so.6)
2016-02-19 23:39:43.049 [ ALERT] CRASH: abort+0x148 (/lib/x86_64-linux-gnu/libc.so.6)
2016-02-19 23:39:43.061 [ ALERT] CRASH: ??:0 0x7f0d51818226
2016-02-19 23:39:43.072 [ ALERT] CRASH: ??:0 0x7f0d518182d2
2016-02-19 23:39:43.086 [ ALERT] CRASH: /home/src/tvheadend/tvheadend/src/subscriptions.c:342 (discriminator 1) 0x4353ea
2016-02-19 23:39:43.099 [ ALERT] CRASH: /home/src/tvheadend/tvheadend/src/main.c:559 0x40d2dc
2016-02-19 23:39:43.099 [ ALERT] CRASH: __libc_start_main+0xf5 (/lib/x86_64-linux-gnu/libc.so.6)
2016-02-19 23:39:43.104 [WARNING] cwc: Got unexpected ECM reply (seqno: 3066)

#5

Updated by Jaroslav Kysela almost 8 years ago

Fixed in v4.1-1555-g414512d .

#6

Updated by The Troll almost 8 years ago

Thanks!

Also available in: Atom PDF