[QST] dwcgf CameraNode outputPort buffer not available

Required Info:

  • Software Version
    DRIVE OS 6.0.6
  • Target OS
  • SDK Manager Version
  • Host Machine Version
    native Ubuntu Linux 20.04 Host installed with DRIVE OS DOCKER Containers

Describe the bug

with a gmsl camera connected to orin-devkit, a cgf CameraNode is started.

the definition of CameraNode is in nv_driveworks_demo/CameraNodeImpl.cpp at df2b4a522a6589f00fb3044bdc62cd4d9c4baa01 · ZhenshengLee/nv_driveworks_demo · GitHub

some of key lines is

    // init output ports with ref
    dwImageProperties imageProps{};
    imageProps.width = 1920;
    imageProps.height = 1536;
    imageProps.type = DW_IMAGE_NVMEDIA;
    imageProps.memoryLayout = DW_IMAGE_MEMORY_TYPE_PITCH;
    imageProps.format = DW_IMAGE_FORMAT_YUV420_UINT8_SEMIPLANAR;
    FRWK_CHECK_DW_ERROR(dwImage_create(&m_image_raw, imageProps, m_ctx));

    auto& raw_outport = NODE_GET_OUTPUT_PORT("IMAGE_NATIVE_RAW"_sv);
    if (raw_outport.isBufferAvailable())
        *raw_outport.getBuffer() = m_image_raw;
        DW_LOGD << "[Epoch " << m_epochCount << "] Sent raw_output." << Logger::State::endl;
        // outPort0.send();
        DW_LOGD << "raw_outport.buffer not available." << Logger::State::endl;

To Reproduce

cd target/aarch64/install/bin
sudo rm -rf ./LogFolder/ framesync_*
sudo ./dwcgf_image_pipe/run_cgf.sh 

Expected behavior

The image is captured from gmsl camera and send to the output port of the CameraNode.

Actual behavior

the log is in the follow nv_driveworks_demo/pilotPipe_process_0.log at df2b4a522a6589f00fb3044bdc62cd4d9c4baa01 · ZhenshengLee/nv_driveworks_demo · GitHub

<13>1 2023-01-30T21:39:43.850004Z - pilotPipe_process 7742 - - [1675114783849988us][DEBUG][tid:13][CameraClient.cpp:1076][NO_TAG] SIPLClient: Acquisition started
<12>1 2023-01-30T21:39:43.850108Z - pilotPipe_process 7742 - - [1675114783850093us][WARN][tid:73][CameraClient.hpp:427][NO_TAG] CameraClient: raw bit type is missing or unexpected in virtual channel info, meta info might be incomplete
<13>1 2023-01-30T21:39:43.850425Z - pilotPipe_process 7742 - - [1675114783850416us][DEBUG][tid:73][CameraNodeImpl.cpp:180][gwCameraNode] gwCameraNodeImpl::raw_output() get imageProp: width: 1920 height: 1536 type: 3 memoryLayout: 1 format: 3001.
<13>1 2023-01-30T21:39:43.850461Z - pilotPipe_process 7742 - - [1675114783850453us][DEBUG][tid:73][CameraNodeImpl.cpp:196][gwCameraNode] raw_outport.buffer not available.
<13>1 2023-01-30T21:39:43.850503Z - pilotPipe_process 7742 - - [1675114783850495us][DEBUG][tid:73][CameraNodeImpl.cpp:200][gwCameraNode] [Epoch 0] Greetings from gwCameraNodeImpl: Hello !

Additional context

  1. how to resolve the warning of raw bit type is missing or unexpected in virtual channel info, meta info might be incomplete report by CameraClient
  2. how to resolve the issue of raw_outport.buffer not available.

Which camera module are you using? Does it work with DriveWorks SDK Reference: Camera Sample?

  1. The camera is a sony based module which is work with [DriveWorks SDK Reference: Camera Sample]
  2. I think it’s a cgf-related issue rather than camera-related issue

building a valid and fully connected graph resolve the issue.
see f172b8c

1 Like

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