Runtime_source_add_delete error

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**Xavier NX
• DeepStream Version5.0
**• JetPack Version (valid for Jetson only)**4.4DP
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)

I build and run the runtime_source_add_delete example from https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/tree/master/runtime_source_add_delete

the programe failed at deleting source, here is the log, what’s the problem? Thanks!

nvidia@nx:/opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream_reference_apps/runtime_source_add_delete$ ./deepstream-test-rt-src-add-del file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
creating uridecodebin for [file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4]
Warn: ‘threshold’ parameter has been deprecated. Use ‘pre-cluster-threshold’ instead.

Using winsys: x11
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
0:00:04.313726464 8497 0x559f16a760 INFO nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger: NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1577> [UID = 4]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-5.0/samples/models/Secondary_VehicleTypes/resnet18.caffemodel_b16_gpu0_int8.engine
INFO: [FullDims Engine Info]: layers num: 2
0 INPUT kFLOAT input_1 3x224x224 min: 1x3x224x224 opt: 16x3x224x224 Max: 16x3x224x224
1 OUTPUT kFLOAT predictions/Softmax 6x1x1 min: 0 opt: 0 Max: 0

0:00:04.313966336 8497 0x559f16a760 INFO nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger: NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1681> [UID = 4]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-5.0/samples/models/Secondary_VehicleTypes/resnet18.caffemodel_b16_gpu0_int8.engine
0:00:04.325669120 8497 0x559f16a760 INFO nvinfer gstnvinfer_impl.cpp:311:notifyLoadModelStatus: [UID 4]: Load new model:dstest_sgie3_config.txt sucessfully
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
0:00:04.396694464 8497 0x559f16a760 INFO nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger: NvDsInferContext[UID 3]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1577> [UID = 3]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-5.0/samples/models/Secondary_CarMake/resnet18.caffemodel_b16_gpu0_int8.engine
INFO: [FullDims Engine Info]: layers num: 2
0 INPUT kFLOAT input_1 3x224x224 min: 1x3x224x224 opt: 16x3x224x224 Max: 16x3x224x224
1 OUTPUT kFLOAT predictions/Softmax 20x1x1 min: 0 opt: 0 Max: 0

0:00:04.396941248 8497 0x559f16a760 INFO nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger: NvDsInferContext[UID 3]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1681> [UID = 3]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-5.0/samples/models/Secondary_CarMake/resnet18.caffemodel_b16_gpu0_int8.engine
0:00:04.405080576 8497 0x559f16a760 INFO nvinfer gstnvinfer_impl.cpp:311:notifyLoadModelStatus: [UID 3]: Load new model:dstest_sgie2_config.txt sucessfully
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
0:00:04.460417824 8497 0x559f16a760 INFO nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger: NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1577> [UID = 2]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-5.0/samples/models/Secondary_CarColor/resnet18.caffemodel_b16_gpu0_int8.engine
INFO: [FullDims Engine Info]: layers num: 2
0 INPUT kFLOAT input_1 3x224x224 min: 1x3x224x224 opt: 16x3x224x224 Max: 16x3x224x224
1 OUTPUT kFLOAT predictions/Softmax 12x1x1 min: 0 opt: 0 Max: 0

0:00:04.460696224 8497 0x559f16a760 INFO nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger: NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1681> [UID = 2]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-5.0/samples/models/Secondary_CarColor/resnet18.caffemodel_b16_gpu0_int8.engine
0:00:04.468921344 8497 0x559f16a760 INFO nvinfer gstnvinfer_impl.cpp:311:notifyLoadModelStatus: [UID 2]: Load new model:dstest_sgie1_config.txt sucessfully
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_mot_klt.so
gstnvtracker: Optional NvMOT_RemoveStreams not implemented
gstnvtracker: Batch processing is OFF
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
0:00:04.726934016 8497 0x559f16a760 INFO nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1577> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-5.0/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine
INFO: [FullDims Engine Info]: layers num: 3
0 INPUT kFLOAT input_1 3x368x640 min: 1x3x368x640 opt: 30x3x368x640 Max: 30x3x368x640
1 OUTPUT kFLOAT conv2d_bbox 16x23x40 min: 0 opt: 0 Max: 0
2 OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40 min: 0 opt: 0 Max: 0

0:00:04.727294752 8497 0x559f16a760 INFO nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1681> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-5.0/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine
0:00:04.744009920 8497 0x559f16a760 INFO nvinfer gstnvinfer_impl.cpp:311:notifyLoadModelStatus: [UID 1]: Load new model:dstest_pgie_config.txt sucessfully
decodebin child added source
decodebin child added decodebin0
Now playing: file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
Running…
decodebin child added qtdemux0
decodebin child added multiqueue0
decodebin child added h264parse0
decodebin child added capsfilter0
decodebin child added aacparse0
decodebin child added faad0
decodebin child added nvv4l2decoder0
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
decodebin new pad video/x-raw
Decodebin linked to pipeline
decodebin new pad audio/x-raw
KLT Tracker Init
Calling Start 3
creating uridecodebin for [file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4]
decodebin child added source
decodebin child added decodebin1
STATE CHANGE ASYNC

decodebin child added qtdemux1
decodebin child added multiqueue1
decodebin child added h264parse1
decodebin child added capsfilter1
decodebin child added aacparse1
decodebin child added faad1
decodebin child added nvv4l2decoder1
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
decodebin new pad video/x-raw
Decodebin linked to pipeline
decodebin new pad audio/x-raw
KLT Tracker Init
Calling Start 2
creating uridecodebin for [file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4]
decodebin child added source
decodebin child added decodebin2
STATE CHANGE ASYNC

decodebin child added qtdemux2
decodebin child added multiqueue2
decodebin child added h264parse2
decodebin child added capsfilter2
decodebin child added aacparse2
decodebin child added faad2
decodebin child added nvv4l2decoder2
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
decodebin new pad video/x-raw
Decodebin linked to pipeline
decodebin new pad audio/x-raw
KLT Tracker Init
Calling Start 1
creating uridecodebin for [file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4]
decodebin child added source
decodebin child added decodebin3
STATE CHANGE ASYNC

decodebin child added qtdemux3
decodebin child added multiqueue3
decodebin child added h264parse3
decodebin child added capsfilter3
decodebin child added aacparse3
decodebin child added faad3
decodebin child added nvv4l2decoder3
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
decodebin new pad video/x-raw
Decodebin linked to pipeline
decodebin new pad audio/x-raw
KLT Tracker Init
Calling Stop 3
STATE CHANGE SUCCESS

NvRmChannelSubmit: NvError_IoctlFailed with error code 22
NvRmPrivFlush: NvRmChannelSubmit failed (err = 196623, SyncPointIdx = 42, SyncPointValue = 0)
fence_set_name ioctl failed with 22
gstnvtracker: NvBufSurfTransform failed with error -2 while converting buffergstnvtracker: Failed to convert input batch.
0:00:44.778782208 8497 0x559f163540 WARN nvinfer gstnvinfer.cpp:1946:gst_nvinfer_output_loop: error: Internal data stream error.
0:00:44.778838720 8497 0x559f163540 WARN nvinfer gstnvinfer.cpp:1946:gst_nvinfer_output_loop: error: streaming stopped, reason error (-5)
NvRmChannelSubmit: NvError_IoctlFailed with error code 22
NvRmPrivFlush: NvRmChannelSubmit failed (err = 196623, SyncPointIdx = 46, SyncPointValue = 0)
fence_set_name ioctl failed with 22
[NvTiler::Composite] ERROR: 349; NvBufSurfTransformComposite failed(-2)
0:00:44.870001472 8497 0x559eebd400 WARN nvinfer gstnvinfer.cpp:1946:gst_nvinfer_output_loop: error: Internal data stream error.
0:00:44.870049440 8497 0x559eebd400 WARN nvinfer gstnvinfer.cpp:1946:gst_nvinfer_output_loop: error: streaming stopped, reason error (-5)
STATE CHANGE SUCCESS 0x7ed4079660

ERROR from element nvtracker: Failed to submit input to tracker
Error details: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvtracker2/gstnvtracker.cpp(551): gst_nv_tracker_submit_input_buffer (): /GstPipeline:dstest-pipeline/GstNvTracker:nvtracker
Returned, stopping playback
NvRmPrivFlush: NvRmChannelSubmit failed (err = 196623, SyncPointIdx = 42, SyncPointValue = 0)
fence_set_name ioctl failed with 22
gstnvtracker: NvBufSurfTransform failed with error -2 while converting buffergstnvtracker: Failed to convert input batch.
Deleting pipeline

Please do apt-update and install nvgstreamer