NvBufSurfTransform failed with error -3 while converting buffer

deepstream use classification tlt model as second model and get error :
ERROR from element thr-nvinfer: NvBufSurfTransform failed with error -3 while converting buffer
or
ERROR from element thr-nvinfer: NvBufSurfTransform failed with error -2 while converting buffer

**• Hardware Platform (Jetson / GPU)**NX
• DeepStream Version5.0
**• JetPack Version (valid for Jetson only)**4.4
• TensorRT Version7.1.3
• 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)

you need set batch size =1, or creat new list frame from batch_meta, after that you loop over fram in list frame and creta new surface with batch size =1 and set data frame to surface data