When using argus-daemon, calling v4l2-ctl to shoot fails and VIDIOC_REQBUFS FAILED is displayed

We wanted to use ISP for image processing on a customized board and kernel, and transplanted argus-deamon and the corresponding libraries to the system. However, when using v4l2-ctl for shooting, it failed, and the log is as follows.
V4L2-CTL CMD:v4l2-ctl --set-fmt-video=width=4032,height=3008,pixelfor
mat=NM12 --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=ov5693.raw --verbos
e
LOG:

v4l2_plugin_init: entered
v4l2_plugin_init: glob pattern match 4 libs
v4l2_plugin_init: dlopen 0 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so return (addr:0x49e650)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so call libv4l_dev_ops->init (addr:0x7f840a7ff8)
v4l2_fd_open: entered
v4l2_plugin_init: entered
v4l2_plugin_init: glob pattern match 4 libs
v4l2_plugin_init: dlopen 0 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so return (addr:0x49e650)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so call libv4l_dev_ops->init (addr:0x7f840a7ff8)
v4l2_plugin_init: dlopen 1 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so return (addr:0x4fef30)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so call libv4l_dev_ops->init (addr:0x7f7e9a3d80)
v4l2_plugin_init: dlopen 2 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so return (addr:0x4fef30)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so call libv4l_dev_ops->init (addr:0x7f7e9a3d10)
v4l2_plugin_init: dlopen 3 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so return (addr:0x4fef30)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so call libv4l_dev_ops->init (addr:0x7f7e9a3d80)
Opening in BLOCKING MODE 
Opening in BLOCKING MODE
Available Sensor modes :
Resolution: 4032 x 3008 ; Framerate = 20.000000; Analog Gain Range Min 1.000000, Max 352.000000, Exposure Range Min 109000, Max 32000000

Resolution: 2016 x 1504 ; Framerate = 29.999999; Analog Gain Range Min 1.000000, Max 352.000000, Exposure Range Min 109000, Max 32000000

v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so return 0x49e650-->0x7f840a7ff8
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
VIDIOC_QUERYCAP: ok
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
DEFAULT no IOCTL called
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture Multiplanar:
	Width/Height      : 4032/3008
	Pixel Format      : 'NM12' (YUV 4:2:0)
	Field             : None
	Number of planes  : 2
	Flags             : 
	Colorspace        : Default
	Transfer Function : Default
	YCbCr/HSV Encoding: Default
	Quantization      : Default
	Plane 0           :
	   Bytes per Line : 4096
	   Size Image     : 12128256
	Plane 1           :
	   Bytes per Line : 2048
	   Size Image     : 6064128
DEFAULT no IOCTL called
DEFAULT no IOCTL called
Not Implemented
DEFAULT no IOCTL called
(Argus) Error BadParameter:  (propagating from src/common/ScopedNvGlsiEglImageRef.cpp, function reset(), line 39)
(Argus) Error BadParameter:  (propagating from src/rpc/socket/client/CustomMethods.cpp, function createBuffer(), line 409)
		VIDIOC_REQBUFS returned -1 (Cannot allocate memory)

ARGUS-DAEMON LOG:

=== NVIDIA Libargus Camera Service (0.98.3)=== Listening for connections...=== v4l2-ctl[1729]: Connection established (7FAC402130)Thread 1 getting next capture
Thread 1 is waiting
Thread 2 getting next capture
Thread 2 is waiting
Thread 3 getting next capture
Thread 3 is waiting
Thread 4 getting next capture
Thread 4 is waiting
Thread 5 getting next capture
Thread 5 is waiting
Thread 6 getting next capture
Thread 6 is waiting
Thread 7 getting next capture
Thread 7 is waiting
Thread 8 getting next capture
Thread 8 is waiting
Thread 9 getting next capture
Thread 9 is waiting
Thread 10 getting next capture
Thread 10 is waiting
Thread 11 getting next capture
Thread 11 is waiting
Thread 12 getting next capture
Thread 12 is waiting
Starting services...
Worker thread IspHw statsComplete start
Worker thread IspHw frameComplete start
Worker thread CaptureScheduler checkFramePending start
Worker thread CaptureScheduler frameStart start
Worker thread V4L2CaptureScheduler checkCaptureComplete start
Worker thread V4L2CaptureScheduler issueCaptures start
Worker thread PS handleRequests start
getInstance: s_instance(0x7fa47bf8e0)
getInstance: s_instance(0x7fa47bf8e0)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0x7fa47c1e00)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0x7fa47c7270)
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
Services are started
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module4
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module5
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
=== v4l2-ctl[1729]: CameraProvider initialized (0x7fa4d6d2a0)sourceRegistry[0] assigned

ispRegistry[0] assigned

Using Source GUID 0
Worker thread ViCsiHw frameComplete start
Worker thread ViCsiHw frameStart start
Using ISP A
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=2, m_value=4294967295, m_timeout_ms=1000

SCF: Error BadValue: NvPHSSendThroughputHints (in src/common/CameraPowerHint.cpp, function sendCameraPowerHint(), line 56)
LSC: LSC surface is not based on full res!
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
No library found, disabling AC plugin.
Worker thread CaptureDispatcher start
ViCsi capture path not initialized

Worker thread CaptureDispatcher stop
ViCsi capture path not initialized

Worker thread ViCsiHw frameComplete stop
Worker thread ViCsiHw frameStart stop
=== v4l2-ctl[1729]: CameraProvider destroyed (0x7fa4d6d2a0)Stopping services...
Worker thread CaptureScheduler frameStart stop
Worker thread CaptureScheduler checkFramePending stop
Worker thread IspHw statsComplete stop
Worker thread IspHw frameComplete stop
Worker thread V4L2CaptureScheduler issueCaptures stop
Worker thread V4L2CaptureScheduler checkCaptureComplete stop
Worker thread PS handleRequests stop
unsubscribe: SensorType(gyroscope)
unsubscribe: gyroscope sensor(0x7fa47c1e00)
unsubscribe: SensorType(accelerometer)
unsubscribe: accelerometer sensor(0x7fa47c7270)
Services are stopped
closeInstance: ms_instance((nil))
FiberScheduler: shutting down; 0 fibers still in map

FiberScheduler: thread 3 exiting
FiberScheduler: thread 4 exiting
FiberScheduler: thread 5 exiting
FiberScheduler: thread 6 exiting
FiberScheduler: thread 7 exiting
FiberScheduler: thread 8 exiting
FiberScheduler: thread 9 exiting
FiberScheduler: thread 10 exiting
FiberScheduler: thread 11 exiting
FiberScheduler: thread 12 exitingFiberScheduler: thread 11 has been joined
FiberScheduler: thread 10 has been joined

FiberScheduler: thread 9 has been joined
FiberScheduler: thread 2 exiting
FiberScheduler: thread 12 has been joined
FiberScheduler: thread 8 has been joined
FiberScheduler: thread 1 exiting
FiberScheduler: thread 6 has been joined
FiberScheduler: thread 5 has been joined
FiberScheduler: thread 4 has been joined
FiberScheduler: thread 3 has been joined
FiberScheduler: thread 7 has been joined
FiberScheduler: thread 2 has been joined
FiberScheduler: thread 1 has been joined
=== v4l2-ctl[1729]: Connection closed (7FAC402130)=== v4l2-ctl[1729]: Connection cleaned up (7FAC402130)

It is no problem to use v4l2-ctl directly to shoot without using argus-deamon. The log is as follows.

v4l2_fd_open: entered
v4l2_plugin_init: entered
v4l2_plugin_init: glob pattern match 4 libs
v4l2_plugin_init: dlopen 0 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so return (addr:0x49e650)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so call libv4l_dev_ops->init (addr:0x7faf684ff8)
v4l2_fd_open: entered
v4l2_plugin_init: entered
v4l2_plugin_init: glob pattern match 4 libs
v4l2_plugin_init: dlopen 0 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so return (addr:0x49e650)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvargus.so call libv4l_dev_ops->init (addr:0x7faf684ff8)
v4l2_plugin_init: dlopen 1 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so return (addr:0x4fef30)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so call libv4l_dev_ops->init (addr:0x7fa9f80d80)
v4l2_plugin_init: dlopen 2 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so return (addr:0x4fef30)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so call libv4l_dev_ops->init (addr:0x7fa9f80d10)
v4l2_plugin_init: dlopen 3 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so return (addr:0x4fef30)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so call libv4l_dev_ops->init (addr:0x7fa9f80d80)
Opening in BLOCKING MODE 
Opening in BLOCKING MODE
(Argus) Error FileOperationFailed: Connecting to nvargus-daemon failed: Connection refused (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 205)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 106)
ArgusV4L2_Open failed: Connection refused
v4l2_plugin_init: dlopen 1 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so return (addr:0x4a9a00)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvcuvidvideocodec.so call libv4l_dev_ops->init (addr:0x7faf691d80)
v4l2_plugin_init: dlopen 2 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so return (addr:0x53e230)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvvidconv.so call libv4l_dev_ops->init (addr:0x7faf691d10)
v4l2_plugin_init: dlopen 3 --> /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so
v4l2_plugin_init: dlopen /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so return (addr:0x531e00)
v4l2_plugin_init: /realsee/lib/libv4l/plugins/nv/libv4l2_nvvideocodec.so call libv4l_dev_ops->init (addr:0x7faf691d80)
Opening in BLOCKING MODE 
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
The pixelformat 'NM12' is invalid
		VIDIOC_REQBUFS returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_STREAMON returned 0 (Success)
cap dqbuf: 0 seq:      0 bytesused: 24256512 ts: 318380.418338 delta: 318380418.338 ms (ts-monotonic, ts-src-eof)

Can anyone help me solve this problem? Or do I need to provide any additional information?