Input surface gpu-id doesnt match with configured gpu-id for element

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Xavier nx

• DeepStream Version
6.0

• JetPack Version (valid for Jetson only)
4.6

• TensorRT Version
8.0

• NVIDIA GPU Driver Version (valid for GPU only)
• 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)
I connected a USB camera typed logi HD 1080P to Xavier NX board, and run the command the following command to capture and display the video:
gst-launch-1.0 v4l2src device=/dev/video0 ! capsfilter caps="image/jpeg" ! nvjpegdec DeepStream=1 ! nvvideoconvert ! nvegltransform ! nveglglessink window-width=800 window-height=600

but I got the following error :

Setting pipeline to PAUSED ...

Using winsys: x11
Pipeline is live and does not need PREROLL ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:01.052352557 16938   0x55a4d21630 WARN          nvvideoconvert gstnvvideoconvert.c:3098:gst_nvvideoconvert_transform:<nvvideoconvert0> error: Memory Compatibility Error:Input surface gpu-id doesnt match with configured gpu-id for element, please allocate input using unified memory, or use same gpu-ids OR, if same gpu-ids are used ensure appropriate Cuda memories are used
0:00:01.052487149 16938   0x55a4d21630 WARN          nvvideoconvert gstnvvideoconvert.c:3098:gst_nvvideoconvert_transform:<nvvideoconvert0> error: surface-gpu-id=159,nvvideoconvert0-gpu-id=0
0:00:01.052881357 16938   0x55a4d21630 ERROR         nvvideoconvert gstnvvideoconvert.c:3484:gst_nvvideoconvert_transform: buffer transform failed
ERROR: from element /GstPipeline:pipeline0/Gstnvvideoconvert:nvvideoconvert0: Memory Compatibility Error:Input surface gpu-id doesnt match with configured gpu-id for element, please allocate input using unified memory, or use same gpu-ids OR, if same gpu-ids are used ensure appropriate Cuda memories are used
Additional debug info:
/dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvvideoconvert/gstnvvideoconvert.c(3098): gst_nvvideoconvert_transform (): /GstPipeline:pipeline0/Gstnvvideoconvert:nvvideoconvert0:
surface-gpu-id=159,nvvideoconvert0-gpu-id=0
Execution ended after 0:00:00.852023537
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

If I change the plugin nvjpegdec to jpegdec and delete the attribute named DeepStream, it is OK. But the CPU load is over 50%.
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hi,
For decoding MJPEG in DeepStream SDK, please use nvv4l2decoder:

... ! nvv4l2decoder mjpeg=1 ! ...

Great!
Thank you very much!

I am facing the same error when running the tao facial landmark app. Still not getting proper response. Please help

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