# CSI camera not reading

**URL:** <https://forum.theavr.org/t/csi-camera-not-reading/806>\
**Category:** Technical Support (Official)\
**Created:** [November 28, 2023, 1:27am UTC](https://forum.theavr.org/t/csi-camera-not-reading/806 "2023-11-28T01:27:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Ewing](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/jack_ewing/32/29_2.png) [@Jack\_Ewing](https://forum.theavr.org/u/Jack_Ewing)\
**Post date:** [November 28, 2023, 1:27am UTC](https://forum.theavr.org/t/csi-camera-not-reading/806/1 "2023-11-28T01:27:50Z")

</div>

The jetson is not reading the CSI camera. what is weird is that when running ls /dev/video0 I get a positive result, however when running start.py run apriltag I get one of two error messages, as far as I can tell they are compleatly random. I have also tried differnt ribbon cables, CSI camera, jetson nanos, and sd cards. any help would be awsome  
error 1

> apriltag\_1 | Connecting…  
> apriltag\_1 | …OK  
> apriltag\_1 | (Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 219)  
> apriltag\_1 | (Argus) Error Timeout: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 106)  
> apriltag\_1 | (Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 219)  
> apriltag\_1 | (Argus) Error Timeout: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 106)  
> apriltag\_1 | Error generated. /dvs/git/dirty/git-master\_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:735 Failed to create CameraProvider  
> apriltag\_1 | made it past cap device  
> apriltag\_1 | [WARN:0] global /opt/opencv/modules/videoio/src/cap\_gstreamer.cpp (935) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1  
> apriltag\_1 | terminate called after throwing an instance of ‘cv::Exception’  
> apriltag\_1 | what(): OpenCV(4.5.0) /opt/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !\_src.empty() in function ‘cvtColor’  
> apriltag\_1 |

error 2

> apriltag\_1 | Connecting…  
> apriltag\_1 | …OK  
> apriltag\_1 | GST\_ARGUS: Creating output stream  
> apriltag\_1 | CONSUMER: Waiting until producer is connected…  
> apriltag\_1 | GST\_ARGUS: Available Sensor modes :  
> apriltag\_1 | GST\_ARGUS: 3264 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;  
> apriltag\_1 |  
> apriltag\_1 | GST\_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;  
> apriltag\_1 |  
> apriltag\_1 | GST\_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;  
> apriltag\_1 |  
> apriltag\_1 | GST\_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;  
> apriltag\_1 |  
> apriltag\_1 | GST\_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;  
> apriltag\_1 |  
> apriltag\_1 | GST\_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;  
> apriltag\_1 |  
> apriltag\_1 | GST\_ARGUS: Running with following settings:  
> apriltag\_1 | Camera index = 0  
> apriltag\_1 | Camera mode = 5  
> apriltag\_1 | Output Stream W = 1280 H = 720  
> apriltag\_1 | seconds to Run = 0  
> apriltag\_1 | Frame Rate = 120.000005  
> apriltag\_1 | GST\_ARGUS: Setup Complete, Starting captures for 0 seconds  
> apriltag\_1 | GST\_ARGUS: Starting repeat capture requests.  
> apriltag\_1 | CONSUMER: Producer has connected; continuing.  
> apriltag\_1 | nvbuf\_utils: dmabuf\_fd -1 mapped entry NOT found  
> apriltag\_1 | nvbuf\_utils: Can not get HW buffer from FD… Exiting…  
> apriltag\_1 | CONSUMER: ERROR OCCURRED  
> apriltag\_1 | [WARN:0] global /opt/opencv/modules/videoio/src/cap\_gstreamer.cpp (1761) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module nvarguscamerasrc0 reported: CANCELLED

---

<div class="post-metadata">

**Author:** ![HPT1-Row\_Dyer](https://avatars.discourse-cdn.com/v4/letter/h/ce7236/32.png) [@HPT1-Row\_Dyer](https://forum.theavr.org/u/HPT1-Row_Dyer)\
**Post date:** [November 28, 2023, 2:08am UTC](https://forum.theavr.org/t/csi-camera-not-reading/806/2 "2023-11-28T02:08:55Z")

</div>

im not 100% sure, but have you tried running the ./start.py build apriltags command yet, just to see if perhaps there is a dependency that it isnt grabbing?
