[DeepStream 9.1][dGPU] nvunixfdsrc does not resume streaming after nvunixfdsink producer process replacement

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 / nvunixfdsink plugin 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:

  1. A 5 FPS source stops delivering frames.

  2. After a 60-second stale timeout, the application attempts to reconstruct its source pipeline.

  3. Native teardown does not complete within 5 seconds, so the producer process exits forcibly.

  4. The retained central nvunixfdsrc branch reports Internal data stream error, streaming stopped, reason error (-5). The mux handles EOS for the affected input.

  5. A replacement producer process starts, recreates nvunixfdsink, and reuses the same Unix socket pathname.

  6. The replacement producer begins delivering buffers again.

  7. The existing central receiver branch does not resume frame processing.

  8. After approximately 72 seconds from stale detection, our watchdog requests a central pipeline restart.

  9. 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:

  1. Producer replacement: Is it officially supported to terminate an nvunixfdsink producer process and create a new producer using the same socket pathname while keeping the existing nvunixfdsrc alive?

  2. 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?

  3. Source-local reconstruction: Is there a recommended procedure for rebuilding only the affected nvunixfdsrc branch, including element state transitions, converter state, and nvstreammux request-pad handling, without interrupting other inputs?

  4. Connection properties: Do connection-attempts=-1 and connection-interval support reconnection after an established stream fails, or only initial connection establishment?

  5. CUDA IPC lifecycle: Are there known CUDA IPC buffer-lifetime, surface-sharing, or backpressure limitations when a producer process is abruptly terminated and replaced?

  6. Throughput after restart: In our separate synthetic test, why might nvunixfdsink.sink receive approximately 20 FPS while nvunixfdsrc.src outputs 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.

This is not supported, because nvunixfdsrc only performs a connection when the element READY --> PAUSED.

Once the server (nvunixfdsink) disconnects, nvunixfdsrc does not attempt to reconnect.

The application has to replace the branch: remove the old nvunixfdsrc, release the nvstreammux request pad, then create a new nvunixfdsrc, link it to a newly requested pad and sync its state with the pipeline. The new element connects as soon as the replacement producer’s nvunixfdsink is available.

Only at the beginning. when the element’s state enters READY→PAUSED.

With buffer-copy=true, nvunixfdsink keeps only 8 buffers per receiver; when none are released, new frames are silently dropped.

Unless a multi-process architecture is strictly required, I recommend using nvmultiurisrcbin.

It supports adding and removing URIs at runtime, including HLS, so you no longer need to manage nvstreammux request pads yourself.

Automatic reconnection is only built in for RTSP sources. For HLS sources there is no automatic reconnection: the application can remove and re-add the failed source at runtime, or the reconnection logic in nvurisrcbin needs to be extended.