Hello NVIDIA DeepStream Team,
We are developing a multi-process video analytics application using DeepStream Service Maker on an NVIDIA dGPU.
Our application processes multiple independent live video streams. Each stream is decoded in a separate producer process and sends GPU buffers to a central DeepStream pipeline through nvunixfdsink and nvunixfdsrc.
We are experiencing a recovery issue: when a producer process is forcibly terminated and replaced, the new producer may resume sending buffers, but the existing central receiver does not resume processing frames. The affected stream only recovers after we reconstruct the entire central pipeline, interrupting other healthy streams.
We would like to understand the officially supported recovery procedure.
1. Hardware Platform (Jetson / GPU)
-
Platform: x86_64, NVIDIA dGPU
-
GPU: NVIDIA GeForce RTX 5080, 16 GB
-
Compute capability: 12.0
-
Host OS: Ubuntu 26.04.1 LTS
-
Kernel: 7.0.0-38-generic
-
Container OS: Ubuntu 24.04.4 LTS
-
Deployment: GPU-enabled Docker container
2. DeepStream Version
-
DeepStream SDK: 9.1.0
-
DeepStream Service Maker: bundled with SDK 9.1
-
Service Maker Python package: 0.0.1
-
GStreamer: 1.24.2
-
nvunixfdsrc/nvunixfdsinkplugin version: 0.0.1
3. JetPack Version
N/A — this is a discrete GPU platform.
4. TensorRT Version
10.16.0.72
5. NVIDIA GPU Driver Version
-
NVIDIA driver: 595.99.02 (open kernel module)
-
CUDA runtime: 13.2
-
NVIDIA Container Runtime: 1.20.1
-
Docker: 29.8.2
6. Issue Type
Bug investigation / Question about supported CUDA IPC recovery lifecycle
We want to recover a single failed video source without reconstructing the central pipeline and interrupting other healthy sources.
7. How to Reproduce the Issue
Application architecture
Our application uses separate producer processes and one central receiver pipeline.
Producer process (per source):
HLS source
↓
nvurisrcbin / NVIDIA decoder
↓
clocksync
↓
bounded leaky queue
↓
nvvideoconvert (NVMM/NV12)
↓
nvunixfdsink
Central DeepStream process:
Source A → nvunixfdsrc ─┐
│
Source B → nvunixfdsrc ─┼→ Converter
│ ↓
Source C → nvunixfdsrc ─┘ NVMM caps
↓
nvstreammux
↓
Video analytics
↓
Output
Our normal stream frame rates are:
-
Source A: 5 FPS (native source rate)
-
Source B: 5 FPS (native source rate)
-
Source C: 20 FPS (native source rate)
All three run normally at their respective source rates. The 5 FPS streams are not expected to deliver 20 FPS.
Natural production failure
The issue occurs during automatic recovery following a real source stall, not a manually injected fault.
Observed sequence:
-
A 5 FPS source stops delivering frames.
-
After a 60-second stale timeout, the application attempts to reconstruct its source pipeline.
-
Native teardown does not complete within 5 seconds, so the producer process exits forcibly.
-
The retained central
nvunixfdsrcbranch reportsInternal data stream error,streaming stopped, reason error (-5). The mux handles EOS for the affected input. -
A replacement producer process starts, recreates
nvunixfdsink, and reuses the same Unix socket pathname. -
The replacement producer begins delivering buffers again.
-
The existing central receiver branch does not resume frame processing.
-
After approximately 72 seconds from stale detection, our watchdog requests a central pipeline restart.
-
Reconstructing the central pipeline restores the affected stream, but also temporarily interrupts healthy streams.
During a 50-second observation of the replacement producer:
| Measurement | Result |
|---|---|
nvunixfdsink.sink input counter |
Increased by 74 buffers |
| Central ingress after converter | 0 |
| Downstream output progress | 0 |
The 74 buffers represent intermittent delivery, not stable 5 FPS.
The source-side counter is measured before nvunixfdsink processes the buffer, so we cannot confirm that these buffers were successfully transported through CUDA IPC.
During producer replacement, the application retains the existing nvunixfdsrc, converter, and nvstreammux connection.
Relevant plugin configuration
nvunixfdsink:
buffer-copy: true
buffer-timestamp-copy: false
compute-hw: 2
sync: false
async: false
qos: false
nvunixfdsrc:
connection-attempts: -1
connection-interval: 1000000
buffer-timestamp-copy: false
do-timestamp: true
automatic-eos: false
gpu-id: 0
Both plugins use the same per-source Unix socket pathname. The replacement producer recreates its sink using that pathname.
Additional synthetic observation
We also performed a separate controlled experiment using a synthetic 20 FPS HLS source.
In this experiment, the entire central process and its workers were reconstructed, rather than replacing only the producer.
After restart, we measured:
| Buffer measurement | Before | After |
|---|---|---|
nvunixfdsink.sink input |
~20 FPS | ~20 FPS |
nvunixfdsrc.src output |
~20 FPS | 9.47 FPS |
| Post-converter ingress | ~20 FPS | 9.47 FPS |
| Independent decoded output | ~20 FPS | 9.42 FPS |
The reduction persisted for approximately 99 seconds.
This suggests the throughput reduction is visible before the converter. However, downstream backpressure or scheduling could still contribute.
We do not assume this synthetic half-rate behavior shares the same root cause as the production zero-ingress issue.
These observations use our custom DeepStream application and test harness. We do not yet have a validated standalone gst-launch-1.0 reproducer.
8. Requirement Details
Relevant modules:
-
nvunixfdsink -
nvunixfdsrc -
nvstreammux -
DeepStream Service Maker / GStreamer lifecycle
Our requirement is to recover one producer/receiver connection without restarting healthy source branches in the same central pipeline.
We would appreciate clarification on the following questions:
-
Producer replacement: Is it officially supported to terminate an
nvunixfdsinkproducer process and create a new producer using the same socket pathname while keeping the existingnvunixfdsrcalive? -
Recovery after ERROR/EOS: If the receiver reports a streaming ERROR or EOS, should it reconnect automatically, or must the application reset or recreate the receiver?
-
Source-local reconstruction: Is there a recommended procedure for rebuilding only the affected
nvunixfdsrcbranch, including element state transitions, converter state, andnvstreammuxrequest-pad handling, without interrupting other inputs? -
Connection properties: Do
connection-attempts=-1andconnection-intervalsupport reconnection after an established stream fails, or only initial connection establishment? -
CUDA IPC lifecycle: Are there known CUDA IPC buffer-lifetime, surface-sharing, or backpressure limitations when a producer process is abruptly terminated and replaced?
-
Throughput after restart: In our separate synthetic test, why might
nvunixfdsink.sinkreceive approximately 20 FPS whilenvunixfdsrc.srcoutputs approximately 9.47 FPS after central reconstruction? Which diagnostics would NVIDIA recommend?
Our main question is whether the receiver can safely recover after producer replacement, and if not, what NVIDIA recommends as the supported source-local recovery architecture.
We can provide sanitized pipeline configuration, GStreamer logs, process lifecycle timelines, and diagnostic counter evidence if needed.
Thank you for your guidance.