Jump to content

BUG Live TV recording stopped early when a remote viewer stopped watching the same channel


Recommended Posts

Posted

Synopsis generated by AI.  Raw logs attached. 

Setup
- Emby Server 4.10.0.40, Ubuntu 24.04 (kernel 6.8), Hyper-V guest, Quadro P2000 (NVENC/NVDEC)
- Tuner: HDHomeRun (native HDHomeRun tuner type, stream sharing automatic)
- Recording: "NFL Football - Denver Broncos at San Francisco 49ers", channel 862 KCNC-TV, timer 12b26b50ce49aad1077546b3d18c9c95
- Remote viewer: user "Chuck", Emby for Samsung 2.3.6, watching the same channel live (transcoding, low bitrate cap)

Summary
- 14:00:58 viewer opens KCNC-TV live -> "consumerId added: d635760f..." -> consumer count 1.
- 14:23:01 recording timer fires and attaches to the SAME shared stream ("Will record ... for 246.98 minutes").
  NOTE: logged as "LiveStream consumerId added: " with an EMPTY consumer id -> consumer count 2.
- 14:26 - 15:17 viewer stops/starts repeatedly (failed transcodes on the client side). Every new viewer session
  logs "consumerId added: <PlaySessionId>" / "count is now 2"; every stop logs "consumerId removed" / "now 1".
- 15:17:34 viewer session bb9fc8fb removed -> consumer count 1 (only the recording remains).
- 15:18:04 viewer starts NEW session 0581f67e (PlaybackInfo, AutoOpenLiveStream=true) on the same stream.
  NO "consumerId added" and NO "consumer count is now 2" is logged for this session.
- 16:44:59 viewer stops 0581f67e -> "LiveStream consumerId removed: 0581f67e..." -> "consumer count is now 0"
  -> live stream closed -> "Recording stopped" (~2h22m into a 246.98-minute recording).
- No timer delete/cancel request was made. The recording was terminated only because the shared stream was closed.

Anomalies
1. The recording registers as a consumer with an empty consumer id.
2. A consumer id that was never added (0581f67e) is "removed" and the count is decremented, reaching 0 while
   the recording is still active, which closes the stream out from under the recording.

Expected: a viewer stopping playback must not close a live stream that an active recording is still consuming.

emby-livetv-consumer-count-bug.txt

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...