sample_camera_gmsl fails (NvMediaEglStreamWrapperInitializeEgl)

Hi NV,

When running ./sample_camera_gmsl --write-file=/home/nvidia/Desktop/test.h264, I got the error message as follows:

NvMediaEglStreamWrapperInitializeEgl: Cannot find function NvMedianvmEglStProducerCreateCommon:Wrapper Initialization failed
NvMediaEglStreamProducerCreate: Failed to Create Producer
[04-07-2017 16:03:35] StreamProducerNvMediaImage: could not create stream producer!
[04-07-2017 16:03:35] DriveWorks exception thrown: DW_CANNOT not create NvMedia Image stream producer.

Can you help to fix this error?

Thanks!

Dear songwen.huang,

Could you please me know the following?
-. What version of DriveWorks/PDK are you using?
-. What kind of camera are you using?
-. What happens if you just run the ./sample_camera_gmsl command?

I can run the command without any issue with DriveWorks 2.0.

root@tegra-ubuntu:/usr/local/driveworks-2.0/bin# ./sample_camera_gmsl --write-file=/home/ubuntu/test.h264
[01-10-2019 05:46:33] Platform: Detected DDPX - Tegra A
[01-10-2019 05:46:33] Initialize DriveWorks SDK v2.0.2081
[01-10-2019 05:46:33] Release build with GNU 4.9.4 from heads/buildbrain-branch-0-g36b127f against Drive PDK v5.1.0.2
[01-10-2019 05:46:33] TimeSource: monotonic epoch time offset is 1569908470149235
[01-10-2019 05:46:33] PTP Time is available from NVPPS Driver
[01-10-2019 05:46:33] Platform: number of GPU devices detected 2
[01-10-2019 05:46:33] Platform: currently selected GPU device discrete ID 0
[01-10-2019 05:46:33] SDK: Resources mounted from .././data/
[01-10-2019 05:46:33] SDK: Create NvMediaDevice
[01-10-2019 05:46:33] SDK: use EGL display as provided
[01-10-2019 05:46:33] Initialize DriveWorks VisualizationSDK v2.0.2081
[01-10-2019 05:46:33] Initialize DriveWorksGL SDK v2.0.2081
[01-10-2019 05:46:33] SensorFactory::createSensor() -> camera.gmsl, output-format=yuv,fifo-size=3,isp-mode=yuv420-uint8,camera-type=ar0231-rccb-bae-sf3324,camera-group=a,slave=0
[01-10-2019 05:46:33] CameraGMSL: Create NvMediaIPPManager
[01-10-2019 05:46:33] CameraGMSL: required FPS = 30, resolution = 1920x1208
nvmedia isc: IscPwrCtrlInit: 939: Camera power control library: NVCCP
Max96712 Rev 1 detected!
Warning: MAX96712 Rev 1 detected. All features may not be supported. Please use a platform with MAX96712 Rev 2 or higher for fuAnd the below error can be observed
  - FE_FRAME_ID_FAULT on CSIMUX_FRAME : Frame IDs are mismatched between FS and FE packets
MAX96712: Enable periodic AEQ on Link 0
MAX96705: Pre-emphasis set to 0xaa
Sensor AR0231 RCCB Rev7 detected!
[01-10-2019 05:46:34] CameraGMSL: default IPP event callback function set
Successfully initialized camera with resolution of 1920x1208 at framerate of 30.000000 FPS
[01-10-2019 05:46:34] StreamConsumerGL: successfully initialized
[01-10-2019 05:46:34] StreamProducerCUDA: successfully initialized
[01-10-2019 05:46:34] camera params: format=h264,bitrate=8000000,framerate=30,type=disk,file=/home/ubuntu/test.h264,slave=0

Dear SteveNV,

-. What version of DriveWorks/PDK are you using? DriveWorks 2.0
-. What kind of camera are you using? AR0231 RCCB Rev7.
-. What happens if you just run the ./sample_camera_gmsl command? Will try this and keep you posted.

Dear songwen.huang,
Any update on the issue?

Dear SteveNV,

After executing ./sample_camera_gmsl, I got the same error:

NvMediaEglStreamWrapperInitializeEgl: Cannot find function NvMedianvmEglStProducerCreateCommon:Wrapper Initialization failed
NvMediaEglStreamProducerCreate: Failed to Create Producer
[04-07-2017 16:03:35] StreamProducerNvMediaImage: could not create stream producer!
[04-07-2017 16:03:35] DriveWorks exception thrown: DW_CANNOT not create NvMedia Image stream producer.

Do I need to modify any setting in Xavier to fix this?

Dear songwen.huang,

Could you please re-boot(cold re-boot) the system and re-try to run it? Thanks.

Hi songwen.huang,

Have you managed to get the sample running?
Any result can be shared?

Hi kayccc,

The issue was fixed after typing the command:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu