Nvbufsurface: mapping of buffer (0) failed

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) - Jetson Xavier
• DeepStream Version - 4.0.1
• JetPack Version (valid for Jetson only) -4.2.2
• TensorRT Version -
• NVIDIA GPU Driver Version (valid for GPU only)

I am running the deepstream-app for 10 cameras connected to a NVR through RTSP(h264) and the app stops randomly with the following error.

nvbufsurface: error in mapping
nvbufsurface: NvBufSurfaceMap function failed
nvbufsurface: mapping of buffer (0) failed 

However, the **PERF** metrics are reported properly and the app works once restarted. How to avoid this error or is there any bypass to restart app automatically ? Does the nvbuf-memory-type=0 make a difference?

Hey, is it possible to use DS 5.0 and give a try?

It isnt possible to try now as this is not a developer kit and so we have to wait for the carrier board manufacturer to release their os image with Jetpack 4.4. Is there anything we could do with the current setup? Any workaround?