# DW Error DW\_INTERNAL\_ERROR executing DW function: dwImageStreamer\_producerSend

**URL:** <https://forums.developer.nvidia.com/t/dw-error-dw-internal-error-executing-dw-function-dwimagestreamer-producersend/180597>\
**Category:** DRIVE AGX Xavier General\
**Tags:** driveworks-image-processing\
**Created:** [June 12, 2021, 2:43pm UTC](https://forums.developer.nvidia.com/t/dw-error-dw-internal-error-executing-dw-function-dwimagestreamer-producersend/180597 "2021-06-12T14:43:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aswb](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aswb](https://forums.developer.nvidia.com/u/aswb)\
**Post date:** [June 12, 2021, 2:43pm UTC](https://forums.developer.nvidia.com/t/dw-error-dw-internal-error-executing-dw-function-dwimagestreamer-producersend/180597/1 "2021-06-12T14:43:24Z")

</div>

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:

```auto
[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:

```auto
//Declaration:
	dwImageStreamerHandle_t m_streamerCUDAtoCPU = DW_NULL_HANDLE;
	dwImageProperties rgbaImageProperties{};

//Initialization:
	// 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));

//Returning:
	// 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));
	

//Releasing:
if (m_streamerCUDAtoCPU) {
		dwImageStreamer_release(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  
 other

**Target Operating System**  
 Linux  
 QNX  
 other

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

**SDK Manager Version**  
 1.5.0.7774  
 other

**Host Machine Version**  
 native Ubuntu 18.04  
 other

---

<div class="post-metadata">

**Author:** ![SivaRamaKrishnaNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sivaramakrishnanv/32/14043_2.png) [@SivaRamaKrishnaNV](https://forums.developer.nvidia.com/u/SivaRamaKrishnaNV)\
**Post date:** [June 13, 2021, 5:57am UTC](https://forums.developer.nvidia.com/t/dw-error-dw-internal-error-executing-dw-function-dwimagestreamer-producersend/180597/2 "2021-06-13T05:57:58Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![aswb](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aswb](https://forums.developer.nvidia.com/u/aswb)\
**Post date:** [June 27, 2021, 6:42pm UTC](https://forums.developer.nvidia.com/t/dw-error-dw-internal-error-executing-dw-function-dwimagestreamer-producersend/180597/4 "2021-06-27T18:42:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 8:03pm UTC](https://forums.developer.nvidia.com/t/dw-error-dw-internal-error-executing-dw-function-dwimagestreamer-producersend/180597/6 "2021-10-12T20:03:18Z")

</div>


