NvBufSurfTransform failed in deepstream

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson)
• DeepStream Version: 6.0
• JetPack Version (valid for Jetson only): 4.6
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)

There is a error when running deesptream. the log is as follows.

2023-02-24 10:50:20,887  **PERF:  10.93 (10.91) 10.79 (10.67)   10.00 (9.89)    10.75 (10.64)    
2023-02-24 10:50:25,887  **PERF:  8.80 (9.69)   8.82 (9.56)     8.39 (9.01)     8.94 (9.69)      
2023-02-24 10:50:30,888  **PERF:  8.41 (9.15)   8.33 (9.13)     8.31 (8.71)     8.36 (9.15)      
2023-02-24 10:50:35,889  **PERF:  8.33 (8.95)   8.32 (8.88)     8.34 (8.62)     8.34 (8.95)      
2023-02-24 10:50:38,220  0:00:27.550979371 31459   0x55c1bcb850 WARN                 nvinfer gstnvinfer.cpp:1418:convert_batch_and_push_to_input_thread:<secondary_gie_1> error: NvBufSurfTransform failed with error -3 while converting buffer 
2023-02-24 10:50:38,220  ERROR from secondary_gie_1: NvBufSurfTransform failed with error -3 while converting buffer 
2023-02-24 10:50:38,220  Debug info: gstnvinfer.cpp(1418): convert_batch_and_push_to_input_thread (): /GstPipeline:pipeline/GstBin:secondary_gie_bin/GstNvInfer:secondary_gie_1 
2023-02-24 10:50:38,233  ---------------------------------- 
2023-02-24 10:50:38,234         transform_flag:7 
2023-02-24 10:50:38,235         transform_flip:0 
2023-02-24 10:50:38,235         transform_filter:6 
2023-02-24 10:50:38,235         src_rect: 1128:352:86:30 
2023-02-24 10:50:38,235         dst_rect: 0:0:94:24 
2023-02-24 10:50:38,236  ---------------------------------- 
2023-02-24 10:50:38,236  Quitting 
2023-02-24 10:50:39,248  App run failed

The NvBufSurfTransformParams struct parameters are as follow when this error happened.

2023-02-24 10:50:38,233  ---------------------------------- 
2023-02-24 10:50:38,234         transform_flag:7 
2023-02-24 10:50:38,235         transform_flip:0 
2023-02-24 10:50:38,235         transform_filter:6 
2023-02-24 10:50:38,235         src_rect: 1128:352:86:30 
2023-02-24 10:50:38,235         dst_rect: 0:0:94:24 
2023-02-24 10:50:38,236  ---------------------------------- 
``

Could anyone give me a advice?
Thank you.

What’s your whole pipeline like and did you run our demo? What is the specific brand of your Jetson?

rtsp–>tracker–>pgie–>plate detect–>plate classification.
The error occured in plate classification.
No specific brand.

  /** Specifies invalid input parameters. */
  NvBufSurfTransformError_Invalid_Params = -3,

There are some parameter setting problems in your code.
1.Did you run our demo app?
2.Our Deepstream 6.2 GA is available now. Could you try to update to the latest version?
3.Maybe you can refer to the link below:https://github.com/NVIDIA-AI-IOT/deepstream_lpr_app

when the error occured, the parameters are as follows.

2023-02-24 10:50:38,233  ---------------------------------- 
2023-02-24 10:50:38,234         transform_flag:7 
2023-02-24 10:50:38,235         transform_flip:0 
2023-02-24 10:50:38,235         transform_filter:6 
2023-02-24 10:50:38,235         src_rect: 1128:352:86:30 
2023-02-24 10:50:38,235         dst_rect: 0:0:94:24 
2023-02-24 10:50:38,236  ---------------------------------- 

Can we judge why this issue happened?

There seems to be no problem with these parameters. There may be a problem with some parameters of your src and dst nvbufersurface. You can set the para DBG_NVBUFSURFTRANSFORM in your env and check the log.

how to set DBG_NVBUFSURFTRANSFORM?

You can just set the para on your terminal:export DBG_NVBUFSURFTRANSFORM=1. Then run your own demo.

OK, but how can I get log?
I can not see any log about src and dst nvbufersurface.

Is there any logs about NvBufSurfTransformAsync on your terminal? Besides, we sugget you update the DeepStream to the latest version(6.2). Even if there are problems in old versions, we may not provide additional fixes for them.

Serial port?
really?
I think the log is in the ssh output.

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

What is your specific Jetson platform, Xavier, Orin or Nano?
Is there any logs about NvBufSurfTransformAsync on your terminal?

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