Delete channel problems when saving images

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU 2080ti
• DeepStream Version 4.0.2
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only) 10.1
indent preformatted text by 4 spaces
Hi ,
i refer to this https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/blob/master/runtime_source_add_delete/deepstream_test_rt_src_add_del.c to implement add and delete channels. And add a prob in nvtiler to save images. refering to this: How to crop the image and save. But when deleting channels, the following error occurred:

Cuda failure: status=700

nvbufsurface: NvBufSurfaceMemSet: Invalid arguments

nvbufsurface: NvBufSurfaceMemSet: Invalid arguments

nvbufsurface: NvBufSurfaceMemSet: Invalid arguments

nvbufsurface: NvBufSurfaceMemSet: Invalid arguments

nvbufsurface: NvBufSurfaceMemSet: Invalid arguments

nvbufsurface: NvBufSurfaceMemSet: Invalid arguments

nvbufsurface: NvBufSurfaceMemSet: Invalid arguments

nvbufsurface: NvBufSurfaceMemSet: Invalid arguments

NvBufSurfTransform failed with error -3 while converting buffer.
0:00:26.088030072 4498 0x7fffac00fc50 ERROR nvinfer gstnvinfer.cpp:511:gst_nvinfer_logger: NvDsInferContext[UID 1]:queueInputBatch(): cudaMemcpyAsync for output buffers failed (cudaErrorIllegalAddress)
nvbufsurface: invalid argument
nvbufsurface: invalid argument
nvbufsurface: invalid argument
nvbufsurface: invalid argument
nvbufsurface: invalid argument
nvbufsurface: invalid argument
nvbufsurface: invalid argument
nvbufsurface: invalid argument
Cuda failure: status=700
nvbufsurface: NvBufSurfaceMemSet: Invalid arguments
nvbufsurface: NvBufSurfaceMemSet: Invalid arguments
nvbufsurface: NvBufSurfaceMemSet: Invalid arguments
nvbufsurface: NvBufSurfaceMemSet: Invalid arguments
nvbufsurface: NvBufSurfaceMemSet: Invalid arguments
nvbufsurface: NvBufSurfaceMemSet: Invalid arguments
nvbufsurface: NvBufSurfaceMemSet: Invalid arguments
nvbufsurface: NvBufSurfaceMemSet: Invalid arguments
NvBufSurfTransform failed with error -3 while converting buffer
0:00:26.088092363 4498 0x7fffac00fc50 WARN nvinfer gstnvinfer.cpp:1098:gst_nvinfer_input_queue_loop: error: Failed to queue input batch for inferencing

when not adding prob in tiler, no error occurred

Can you give me some useful advice?Thank you very much.

Hi
Could you please share the test code which can build and run in our environments for a repro?