Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other
Target Operating System
Linux
QNX
other
Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other
SDK Manager Version
2.1.0
other
Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other
Issue Description
In both the “camera.gmsl” and “camera.virtual” cases, we want to perform image output using dwSensorCamera_getImage() with the DW_CAMERA_OUTPUT_CUDA_RAW_UINT16 format.
In the case of “camera.gmsl” using Case.1, it completes successfully without any issues.
In the case of “camera.virtual” using Case.2, it crashes with dwSensorCamera_getImage.
According to the interface specifications, there should be no issues, but we would like to know why it crashes.
Case.1: ./sample_camera --rig=rig_gmsl.json --write-file=output.raw --offscreen=0
Case.2: ./sample_camera --rig=rig_virtual.json --offscreen=0
The code for dwSensorCamera_getImage is as follows:
dwCameraOutputType outputType = DW_CAMERA_OUTPUT_CUDA_RAW_UINT16;
dwImageHandle_t tmp[1] = {DW_NULL_HANDLE};
CHECK_DW_ERROR(dwSensorCamera_getImage(&tmp[0], outputType, frame[0]));
rig files.
rig.zip (1.6 KB)
Logs
To investigate the issue of the program crashing without any error message, we added code to output the property information before calling dwSensorCamera_getImage.
The outputted property information includes dwCameraProperties and dwImageProperties.
When comparing the output between Step 1 and Step 2, we noticed a difference in the memoryLayout property, although the reason for this difference is unknown.
—Case.1 property logs—
m_camera[0]->dwCameraProperties
cameraType:99 outputTypes:279 rawFormat:0
m_camera[0]->dwImageProperties->dwImageMetaData
format:4000 height:2160 memoryLayout:1 type:2 width:3840
meta.flags:68 meta.frameSequenceNumber:0 meta.rawProperties.msbPosition:15
meta.rawProperties.rawBitDataType:12 meta.rawProperties.rawFormatDescriptor:33
—Case.2 property logs—
m_camera[0]->dwCameraProperties
cameraType:99 outputTypes:279 rawFormat:0
m_camera[0]->dwImageProperties->dwImageMetaData
format:4000 height:2160 memoryLayout:0 type:2 width:3840
meta.flags:68 meta.frameSequenceNumber:0 meta.rawProperties.msbPosition:15
meta.rawProperties.rawBitDataType:12 meta.rawProperties.rawFormatDescriptor:33