Argus crash, I using the argus sample codes, it can't connect to the camera

Dear Sir,

I use libargus in the tegra_multimedia_api can’t open the camera, but when I use gstream and v4l2-ctl, the camera is opened finelly. Can anyone give me some advice ?

Thanks so much.

$ ./argus_oneshot -d 0

nvidia@tegra-ubuntu:~/tegra_multimedia_api/argus/build/samples/oneShot$ ./argus_oneshot -d 0
Executing Argus Sample: argus_oneshot
Argus Version: UNKNOWN
Failed to get camera devices
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 214)
(Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 289)
(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 306)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 317)
(Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 149)
(Argus) Error EndOfFile:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 101)

$journalctl -u argus-daemon.service

Nov 10 17:46:28 tegra-ubuntu systemd[1]: Started Argus daemon.
Nov 10 17:48:52 tegra-ubuntu argus_daemon[9443]: OFParserEnumerateDriverNode: v4l2_sensor: failed to parse device-tree to driver node
Nov 10 17:48:52 tegra-ubuntu argus_daemon[9443]: OFParserEnumerateDriverNode: v4l2_sensor: failed to parse device-tree to driver node
Nov 10 17:48:52 tegra-ubuntu argus_daemon[9443]: NvPclHwGetModuleList: No module data found
Nov 10 17:48:52 tegra-ubuntu argus_daemon[9443]: NvPclHwGetModuleList: No module data found
Nov 10 17:48:52 tegra-ubuntu argus_daemon[9443]: NvPclHwGetModuleList: No module data found
Nov 10 17:48:52 tegra-ubuntu argus_daemon[9443]: NvPclHwGetModuleList: No module data found
Nov 10 17:48:52 tegra-ubuntu argus_daemon[9443]: NvPclHwGetModuleList: No module data found
Nov 10 17:48:52 tegra-ubuntu argus_daemon[9443]: NvPclHwGetModuleList: No module data found
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: (NvOdmDevice) Error NotInitialized: hDev Table not initialized (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: NvPclStartPlatformDrivers: Failed to start module drivers
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: NvPclDriver_V4L2_Focuser_Stub_Close: Invalid NULL input pPclDriver
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: NvPclStateControllerOpen: Failed ImagerGUID 5. (error 0x3)
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: NvPclOpen: PCL Open Failed. Error: 0xf
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGui
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: SCF: Error BadParameter:  (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 781)
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 276)
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function getSource(), line 439)
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: (Argus) Error BadParameter:  (propagating from src/api/CameraProviderImpl.cpp, function initialize(), line 92)
Nov 10 17:48:54 tegra-ubuntu argus_daemon[9443]: (Argus) Error BadParameter:  (propagating from src/api/GlobalProcessState.cpp, function createCameraProvider(), line 214)
Nov 10 17:48:54 tegra-ubuntu systemd[1]: argus-daemon.service: Main process exited, code=killed, status=11/SEGV
Nov 10 17:48:54 tegra-ubuntu systemd[1]: argus-daemon.service: Unit entered failed state.
Nov 10 17:48:54 tegra-ubuntu systemd[1]: argus-daemon.service: Failed with result 'signal'.
Nov 10 17:48:55 tegra-ubuntu systemd[1]: argus-daemon.service: Service hold-off time over, scheduling restart.
Nov 10 17:48:55 tegra-ubuntu systemd[1]: Stopped Argus daemon.
Nov 10 17:48:55 tegra-ubuntu systemd[1]: Started Argus daemon.

$ v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame0.raw --stream-count=1 --verbose

nvidia@tegra-ubuntu:~/tegra_multimedia_api/argus/build/samples/oneShot$ v4l2-ctl --device /dev/video0  --stream-mmap --stream-to=frame0.raw --stream-count=1 --verbose
VIDIOC_QUERYCAP: ok
VIDIOC_REQBUFS: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_STREAMON: ok
	Index    : 0
	Type     : Video Capture
	Flags    : mapped, done, error
	Field    : None
	Sequence : 0
	Length   : 1843200
	Bytesused: 1843200
	Timestamp: 10691.964105s (Monotonic, End-of-Frame)

	Index    : 1
	Type     : Video Capture
	Flags    : mapped, done, error
	Field    : None
	Sequence : 1
	Length   : 1843200
	Bytesused: 1843200
	Timestamp: 10691.971266s (Monotonic, End-of-Frame)

	Index    : 2
	Type     : Video Capture
	Flags    : mapped, done
	Field    : None
	Sequence : 2
	Length   : 1843200
	Bytesused: 1843200
	Timestamp: 10692.006300s (Monotonic, End-of-Frame)

VIDIOC_STREAMOFF: ok
nvidia@tegra-ubuntu:~/tegra_multimedia_api/argus/build/samples/oneShot$ gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=1280,height=720,format=(string)UYVY' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=(string)NV12' ! nvoverlaysink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:03.684275827
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
nvidia@tegra-ubuntu:~/tegra_multimedia_api/argus/build/samples/oneShot$

Dear All,

I get the message from DaneLLL that Argus can’t work for YUV sensor and only for RAW sensor.