Error “CUDA error at nvbufsurftransform.cpp:3238 code=-57”when running secondary inference in Deepstream7.0

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
4070ts
• DeepStream Version
deepstream 7.0
• JetPack Version (valid for Jetson only)
• TensorRT Version
In Deepstream7.0 Container
• NVIDIA GPU Driver Version (valid for GPU only)
550
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I use custom qat quantitative classification. When there are many objects in secondary inference, the system fails and exits automatically. The error message is as follows:

CUDA error at nvbufsurftransform.cpp:3238 code=-57(NPP_RECTANGLE_ERROR) "nppiResizeSqrPixel_8u_C4R ( src_ptr + src_offset, jnppSrcSize, jsrc_pitch, jnppSrcROI, intermediate_buffer + dst_offset, jdst_pitch, jnppDstROI, scale_x, scale_y, jdx, jdy, nppInterFlag)" 
0:03:51.765842913  6773 0x7ec460000d80 WARN                 nvinfer gstnvinfer.cpp:1477:convert_batch_and_push_to_input_thread:<secondary_gie_0> error: NvBufSurfTransform failed with error -2 while converting buffer
ERROR from secondary_gie_0: NvBufSurfTransform failed with error -2 while converting buffer
Debug info: gstnvinfer.cpp(1477): convert_batch_and_push_to_input_thread (): /GstPipeline:pipeline/GstBin:secondary_gie_bin/GstNvInfer:secondary_gie_0
准备退出...
(2025-05-20 08:41:18) [INFO    ] Exiting.
Quitting
0:03:51.799642686  6773 0x5f0e9dcdb730 WARN                 nvinfer gstnvinfer.cpp:2420:gst_nvinfer_output_loop:<primary_gie> error: Internal data stream error.
0:03:51.799742314  6773 0x5f0e9dcdb730 WARN                 nvinfer gstnvinfer.cpp:2420:gst_nvinfer_output_loop:<primary_gie> error: streaming stopped, reason error (-5)
ERROR from primary_gie: Internal data stream error.
Debug info: gstnvinfer.cpp(2420): gst_nvinfer_output_loop (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInfer:primary_gie:
streaming stopped, reason error (-5)

How to fix it?

Seems the SGIE failed to generate the objects to tensor. Maybe your PGIE provides wrong bboxes. The gst-nvinfer is open source, you can debug with the source code.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.