sample_camera_gmsl does not display image

We are using a Drive PX2 Autochauffeur with the Sekonix SF3321 “Promotion Rev 04” RGB GMSL camera. We are currently running Driveworks v0.2.0 with the corresponding version (Alpha 2.0) of Vibrante Linux. I am aware that there is a newer version, but because we have spent a lot of time installing software on this unit, it is not convenient at this time to upgrade.

Right now, I am trying to use the stock binary sample_camera_gmsl sample to view the GMSL camera output. The result is some errors on the console, but it seems the application is running. However, it opens a window which remains pure black, and never displays anything. Invocation and console output are below. In particular, this error of “NvMediaEglStreamWrapperInitializeEgl: Cannot load EGL library” (line 55 below) has been consistent no matter what I try, and the source code where this command is invoked does not appear to be available.

How can I debug and fix this? This is a high priority problem for our team. Thanks,
-Michael

nvidia@tegra-ubuntu:/usr/local/driveworks-0.2.0/bin$ ./sample_camera_gmsl --camera-type-ar0231
Options:
--camera-type=c-ov10640-b1
--csi-port=ab
--offscreen=0
--serialize=false
--serialize-bitrate=8000000
--serialize-framerate=30
--serialize-type=h264
--slave=0
--write-file=

nvidia@tegra-ubuntu:/usr/local/driveworks-0.2.0/bin$ ./sample_camera_gmsl --camera-type=ar0231
Program Arguments:
--camera-type=ar0231
--csi-port=ab
--offscreen=0
--serialize=false
--serialize-bitrate=8000000
--serialize-framerate=30
--serialize-type=h264
--slave=0
--write-file=

nvrm_gpu: Bug 1781434 workaround enabled.
nvrm_gpu: Bug 1778448 workaround enabled.
nvrm_gpu: Bug 1780185 workaround enabled.
Initialize DriveWorks SDK v0.2.0
Release build with GNU 4.9.2 from v0.2.0-rc8-0-gf0835b8 against PDK v4.1.2.0
SDK: no resource mounted
SDK: Create NvMediaDevice
SDK: use EGL display as provided
SAL: identified board as DrivePX2-TegraA
SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231,csi-port=ab,offscreen=0,serialize=false,serialize-bitrate=8000000,serialize-framerate=30,serialize-type=h264,slave=0,write-file=,output-format=yuv+data
CameraGMSL: required FPS = 30, resolution = 1920x1208
***** aurix state *****
 CAM_PWR_ON: 0x0
 TEGRA_GMSL: TEGRA B
 TEGRA_FPDL: TEGRA B
 TEGRA_A_HDMI: MXM
 TEGRA_B_HDMI: MXM
 TEGRA_PCI: TEGRA B
 FAN_STATE: UNKNOWN
***********************
***** aurix state *****
 CAM_PWR_ON: 0x1
 TEGRA_GMSL: UNKNOWN
 TEGRA_FPDL: UNKNOWN
 TEGRA_A_HDMI: UNKNOWN
 TEGRA_B_HDMI: UNKNOWN
 TEGRA_PCI: UNKNOWN
 FAN_STATE: UNKNOWN
***********************
Camera image with 1920x1208 at 30 FPS
NvMediaEglStreamWrapperInitializeEgl: Cannot load EGL library
NvMediaEglStreamProducerCreate: Wrapper initialization failed
StreamProducerNvMediaImage: could not create NvMedia Image stream producer!
Driveworks exception thrown: DW_CANNOT_CREATE_OBJECT: could not create NvMedia Image stream producer
Driveworks exception thrown: DW_BAD_CAST: Given handle is NULL
Exposure Time (s): 2.25e-05
 ERROR postNvMedia: DW_BAD_CAST
Driveworks exception thrown: DW_BAD_CAST: Given handle is NULL
Driveworks exception thrown: DW_BAD_CAST: Given handle is NULL
Exposure Time (s): 2.25e-05
 ERROR postNvMedia: DW_BAD_CAST
Driveworks exception thrown: DW_BAD_CAST: Given handle is NULL
Driveworks exception thrown: DW_BAD_CAST: Given handle is NULL
Exposure Time (s): 2.25e-05
 ERROR postNvMedia: DW_BAD_CAST
Driveworks exception thrown: DW_BAD_CAST: Given handle is NULL
Driveworks exception thrown: DW_BAD_CAST: Given handle is NULL
Exposure Time (s): 0.000201955
 ERROR postNvMedia: DW_BAD_CAST
Driveworks exception thrown: DW_BAD_CAST: Given handle is NULL
CameraGMSL: Frame: 837 CaptureTimestamp: 117931202 - ICP DROP
CameraGMSL: Frame: 838 CaptureTimestamp: 117964553 - ICP DROP
CameraGMSL: Frame: 839 CaptureTimestamp: 117997899 - ICP DROP
CameraGMSL: Frame: 887 CaptureTimestamp: 119597845 - ICP DROP
CameraGMSL: Frame: 888 CaptureTimestamp: 119631163 - ICP DROP
CameraGMSL: Frame: 889 CaptureTimestamp: 119664508 - ICP DROP
CameraGMSL: Frame: 890 CaptureTimestamp: 119697834 - ICP DROP
CameraGMSL: Frame: 891 CaptureTimestamp: 119731157 - ICP DROP
CameraGMSL: Frame: 3798 CaptureTimestamp: 216632591 - ICP DROP
***** aurix state *****58334141
 CAM_PWR_ON: 0x0
 TEGRA_GMSL: UNKNOWN
 TEGRA_FPDL: UNKNOWN
 TEGRA_A_HDMI: UNKNOWN
 TEGRA_B_HDMI: UNKNOWN
 TEGRA_PCI: UNKNOWN
 FAN_STATE: UNKNOWN
***********************
SDK: Release NvMediaDevice
Driveworks SDK released

Hello Michael,

Could you execute the following command then try the app? Thanks.
export LD_LIBRARY_PATH=/usr/lib

Thanks, that solved the problem for me- sample_camera_gmsl now works correctly. I’m still having trouble with multiple cameras; I’ll post a new topic for that.