DW Error DW_INTERNAL_ERROR executing DW function: dwImageStreamer_producerSend

Hi ,

I am trying to capture an image with GMSL camera and stream the image to CPU,
The camers is initialized successfully and frame capture is also okay
but the image streamer is failing with error:

[12-06-2021 16:32:26] Driveworks exception thrown: DW_INTERNAL_ERROR: ImageStreamer: cannot send image over stream
[2021-06-12 16:32:26] DW Error DW_INTERNAL_ERROR executing DW function:
 dwImageStreamer_producerSend(frameCUDA, m_streamerCUDAtoCPU)

This is my work flow:

	dwImageStreamerHandle_t m_streamerCUDAtoCPU = DW_NULL_HANDLE;
	dwImageProperties rgbaImageProperties{};

	// In order to stream we prepare the properties of the image
	CHECK_DW_ERROR(dwSensorCamera_getImageProperties(&rgbaImageProperties, DW_CAMERA_OUTPUT_CUDA_RAW_UINT16, m_camera));
	// Initializing the streamer to stream from CUDA to CPU
	CHECK_DW_ERROR(dwImageStreamer_initialize(m_streamerCUDAtoCPU, &rgbaImageProperties, DW_IMAGE_CPU, m_sdk));

//Sending and Receiving:
	// stream the CUDA image to the CPU domain
	CHECK_DW_ERROR(dwImageStreamer_producerSend(frameCUDA, m_streamerCUDAtoCPU));
	dwImageHandle_t frameCPU;
	// receive the streamed image as a handle
	CHECK_DW_ERROR(dwImageStreamer_consumerReceive(&frameCPU, timeout, m_streamerCUDAtoCPU));

	// returned the consumed image
    CHECK_DW_ERROR(dwImageStreamer_consumerReturn(&frameCPU, m_streamerCUDAtoCPU));
	// notify the producer that the work is done
	CHECK_DW_ERROR(dwImageStreamer_producerReturn(frameCUDA, timeout, m_streamerCUDAtoCPU));

if (m_streamerCUDAtoCPU) {

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version

Target Operating System

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version

Host Machine Version
native Ubuntu 18.04

Dear @aswb,
May I know the camera model? Have you checked Image Streamer samples as reference ? It is difficult to give suggestion with the above code snippet. Is it possible to share reproducible code snippet?

I figured out the problem, the image format was wrongly configured.