Nvcompostitor causes segmentation faults

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): Jetson
• DeepStream Version: 7.1
• JetPack Version (valid for Jetson only): 6.1
• TensorRT Version: 10.3.0.31
• Issue Type( questions, new requirements, bugs): questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

I use nvcompositor to composite RTSP videos and process them with deepstream.
However, executing the following pipeline results in a segmentation fault.
The following pipeline is a simplified version of the pipeline that causes a segmentation fault.
Adding caps with width and height set to the nvcompositor source pad prevents segmentation faults.

Does nvcompositor require caps with width and height set to be added to the source pad?
Or is there another way to prevent a correct segmentation fault?

I run this command in the docker container.

Pipeline causing segmentation faults.

export USE_NEW_NVSTREAMMUX=yes
gst-launch-1.0 \
        rtspsrc location="rtsp://192.168.130.26:554/test.mpeg4" protocols=tcp latency=100 drop-on-latency=1 ! rtph264depay ! h264parse ! tee ! queue ! h264parse ! "video/x-h264, stream-format=byte-stream, alignment=au, parsed=true" ! nvv4l2decoder drop-frame-interval=0 num-extra-surfaces=1 enable-max-performance=1 mjpeg=1 ! queue ! tee ! nvvideoconvert copy-hw=VIC ! "video/x-raw(memory:NVMM)" ! tee ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! comp.sink_0 \
        nvcompositor name=comp sink_0::zorder=1 sink_0::width=960 sink_0::height=540 ! \
        fakesink sync=0 async=0 enable-last-sample=0

The following is the backtrace log when executed in gdb.
gdb_log.txt (3.7 KB)

Pipeline without segmentation faults.
A pipeline configured for the nvcmpositor source pad with caps set to video/x-raw(memory:NVMM), width=960, height=540.

export USE_NEW_NVSTREAMMUX=yes
gst-launch-1.0 \
        rtspsrc location="rtsp://192.168.130.26:554/test.mpeg4" protocols=tcp latency=100 drop-on-latency=1 ! rtph264depay ! h264parse ! tee ! queue ! h264parse ! "video/x-h264, stream-format=byte-stream, alignment=au, parsed=true" ! nvv4l2decoder drop-frame-interval=0 num-extra-surfaces=1 enable-max-performance=1 mjpeg=1 ! queue ! tee ! nvvideoconvert copy-hw=VIC ! "video/x-raw(memory:NVMM)" ! tee ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! comp.sink_0 \
        nvcompositor name=comp sink_0::zorder=1 sink_0::width=960 sink_0::height=540 ! "video/x-raw(memory:NVMM), width=960, height=540" ! \
        fakesink sync=0 async=0 enable-last-sample=0

The “nvcompositor” is not a DeepStream plugin. Your pipeline is not supported.

DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks.