MIPI_Camera
MIPI_Camera copied to clipboard
Can not open camera - Jetson nano 4.9.140-tegra-32.4.4
Hey there,
I'm trying to open IMX477 mini HQ camera on my Jetson nano. I installed the driver using this tool and it seems to run OK Tried 2 different Jetson's with 2 different cameras and I got the same issue when trying to display the video using gstreamer example:
gst-launch-1.0 nvarguscamerasrc sensor-id=$SENSOR_ID ! "video/x-raw(memory:NVMM),width=1920,height=1080,framerate=$FRAMERATE/1" ! nvvidconv ! nvoverlaysink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
(Argus) Error FileOperationFailed: Failed socket read: Connection reset by peer (in src/rpc/socket/common/SocketUtils.cpp, function readSocket(), line 79)
(Argus) Error FileOperationFailed: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 215)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 102)
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:551 Failed to create CameraProvider
Got EOS from element "pipeline0".
Execution ended after 0:00:15.166958703
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Using "QT V4L2 test Utility" i'm getting all the right parameters with a black screen. instead of video
I'm using fresh Jetson nano sd-img (nvidia-l4t-kernel on system is 4.9.140-tegra-32.4.4)
Please help me solve this
Hi @galdalali Very strange phenomenon, I cannot reproduce your situation. I tried to google this problem and found a similar situation. Can you try it? https://forums.developer.nvidia.com/t/libargus-fails-on-re-entry-if-killed/82388
I tried to restart the service couple of times, no help.. This error related to the fact that the process enter a timeout:
nvargus-daemon.service - Argus daemon Loaded: loaded (/etc/systemd/system/nvargus-daemon.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2020-11-04 08:06:31 IST; 4min 17s ago Main PID: 16028 (nvargus-daemon) Tasks: 41 (limit: 4182) CGroup: /system.slice/nvargus-daemon.service └─16028 /usr/sbin/nvargus-daemon
Nov 04 08:06:52 nvidia-desktop nvargus-daemon[16028]: SCF: Error Timeout: (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59) Nov 04 08:06:52 nvidia-desktop nvargus-daemon[16028]: Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc Nov 04 08:07:33 nvidia-desktop nvargus-daemon[16028]: === gst-launch-1.0[16078]: Connection closed (7F85C631D0)=== gst-launch-1.0[16078]: WARNING: CameraProvider was not destroyed before client connection Nov 04 08:07:33 nvidia-desktop nvargus-daemon[16028]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function ~EGLStreamProducer(), line 50) Nov 04 08:07:38 nvidia-desktop nvargus-daemon[16028]: === gst-launch-1.0[16078]: WARNING: Cleaning up 1 outstanding stream settings...=== gst-launch-1.0[16078]: WARNING: Cleaning up 1 outstanding sessions Nov 04 08:07:38 nvidia-desktop nvargus-daemon[16028]: waitForIdleLocked remaining request 103 Nov 04 08:07:38 nvidia-desktop nvargus-daemon[16028]: waitForIdleLocked remaining request 102 Nov 04 08:07:38 nvidia-desktop nvargus-daemon[16028]: waitForIdleLocked remaining request 101 Nov 04 08:07:38 nvidia-desktop nvargus-daemon[16028]: SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 920) Nov 04 08:07:38 nvidia-desktop nvargus-daemon[16028]: (Argus) Error Timeout: (propagating from src/api/CaptureSessionImpl.cpp, function destroy(), line 166)
Here is the dmesg log:
[59154.683741] packetv4 coming ,,, [59156.474457] imx477 6-001a: Error updating control ranges -22 [59156.495955] packetv4 coming ,,, [59156.554291] misc tegra_camera_ctrl: tegra_camera_update_isobw: Warning, Requested ISO BW 3281250 has been capped to VI's max BW 1500000 [59156.651456] imx477 6-001a: Error updating control ranges [59156.656912] ------------[ cut here ]------------ [59156.661534] WARNING: CPU: 3 PID: 16330 at drivers/media/v4l2-core/videobuf2-core.c:1350 vb2_start_streaming+0xdc/0x158 [59156.661560] Modules linked in: fuse bnep zram option usb_wwan overlay spidev userspace_alert simcom_wwan(O) nvgpu bluedroid_pm ip_tables x_tables
[59156.661566] CPU: 3 PID: 16330 Comm: qv4l2 Tainted: G W O 4.9.140-tegra #2
[59156.661568] Hardware name: NVIDIA Jetson Nano Developer Kit (DT)
[59156.661570] task: ffffffc0ae6aaa00 task.stack: ffffffc02fdbc000
[59156.661573] PC is at vb2_start_streaming+0xdc/0x158
[59156.661576] LR is at vb2_start_streaming+0x6c/0x158
[59156.661579] pc : [
[59156.661629] ---[ end trace 6e416b2342abf06e ]---
[59156.661631] Call trace:
[59156.661635] [
Hi @galdalali Sorry for the late reply, can you try to flash a new SD?
Hi @galdalali is this solved? Facing the same issue rn 😢
@jung-youjin Di you try to run the automatic script installation? don't quit remember how this is solved but the new one works well - https://www.arducam.com/docs/camera-for-jetson-nano/native-jetson-cameras-imx219-imx477/imx477-how-to-install-the-driver/