Hi all,
I am trying to use a Realsense D435 and the Jetson onboard camera simultaneously. Whenever the Realsense USB camera is plugged in, I get a crash when trying to use the onboard camera via Argus. This happens even when I just run an Argus sample app and not even trying to use the Realsense camera.
Found some older posts with similar issues. Some patches were provided but only for older L4T versions. I am seeing this problem with Jetpack 4.2 (L4T 32.1). It seems that whenever there is a /dev/videoX is present that is not a MIPI camera this crash happens. Does anyone know a workaround for this issue?
Older post on this topic: https://devtalk.nvidia.com/default/topic/1043277/argus-error-initializing-camera-provider/
Example crash (10_camera_recording):
Set governor to performance before enabling profiler
[65743.893393] audit: type=1701 audit(1565283377.862:6): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4439 comm="nvargus-daemon" exe="/usr/sbin/nvargus-daemon" sig=11
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 266)
(Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 340)
(Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)
(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 357)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 368)
(Argus) Error EndOfFile: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)
(Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)
(Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)
Error generated. main.cpp, execute:486 Failed to create CameraProvider
(Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)
(Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)
journactl -u nvargus-daemon output:
Aug 07 22:40:46 jetson-tx2 systemd[1]: Started NVIDIA Argus daemon.
Aug 08 16:56:17 jetson-tx2 nvargus-daemon[4439]: === NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections...=== camer
a_recording[30707]: Connection established (7F82FEF1C0)OFParserGetVirtualDevice: virtual device driver node not found in proc device-
tree: /proc/device-tree/tegra-virtual-camera-platform/modules/module0/drivernode1
Aug 08 16:56:17 jetson-tx2 nvargus-daemon[4439]: OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree:
/proc/device-tree/tegra-virtual-camera-platform/modules/module1/drivernode0
Aug 08 16:56:17 jetson-tx2 nvargus-daemon[4439]: ---- imager: No override file found. ----
Aug 08 16:56:17 jetson-tx2 nvargus-daemon[4439]: ---- imager: No override file found. ----
Aug 08 16:56:17 jetson-tx2 nvargus-daemon[4439]: initializeDevNode: Failed to open dev node '/dev/camera/video1'; No such file or dir
ectory, trying alternate default location
Aug 08 16:56:17 jetson-tx2 nvargus-daemon[4439]: (NvCamV4l2) Error BadParameter: Control 10094858 not found (in /dvs/git/dirty/git-ma
ster_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findControlById(), line 1874)
Aug 08 16:56:17 jetson-tx2 nvargus-daemon[4439]: (NvCamV4l2) Error BadParameter: (propagating from /dvs/git/dirty/git-master_linux/c
amera/utils/nvcamv4l2/v4l2_device.cpp, function getControlRange(), line 331)
Aug 08 16:56:17 jetson-tx2 nvargus-daemon[4439]: initialize: focus query failed
Aug 08 16:56:17 jetson-tx2 systemd[1]: [[0;1;39m[[0;1;31m[[0;1;39mnvargus-daemon.service: Main process exited, code=killed, status=11
/SEGV[[0m
Aug 08 16:56:17 jetson-tx2 systemd[1]: [[0;1;39m[[0;1;31m[[0;1;39mnvargus-daemon.service: Failed with result 'signal'.[[0m
Aug 08 16:56:18 jetson-tx2 systemd[1]: nvargus-daemon.service: Service RestartSec=100ms expired, scheduling restart.
Aug 08 16:56:18 jetson-tx2 systemd[1]: nvargus-daemon.service: Scheduled restart job, restart counter is at 1.
Aug 08 16:56:18 jetson-tx2 systemd[1]: Stopped NVIDIA Argus daemon.
Aug 08 16:56:18 jetson-tx2 systemd[1]: Started NVIDIA Argus daemon.