App stopped working after DS 5 migration: nvjpegdec: Can not get HW buffer from FD

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): Jetson AGX
• DeepStream Version: 5.0
• JetPack Version (valid for Jetson only) 4.4
• TensorRT Version: 7.0
• NVIDIA GPU Driver Version (valid for GPU only)

After migration to DS 5 my app stopped working throwing the following issue:

nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
nvbuf_utils: Can not get HW buffer from FD... Exiting...

When replacing nvjpegdec with jpegdec everything works fine (but slow). Setting the “DeepStream” property to nvjpegdec does not make a difference.

At one point i was able to reproduce the issue with gst-launch-1.0 which throws an error like “gpu does not match … x is using gpu 372 … y is using gpu 0”.

The source is multfilesrc with location to a directory of jpegs.

What am i missing?

Please replace nvjpegdec with nvv4l2decoder mjpeg=1 and try again. We support MJPEG decoding in nvv4l2decoder.