Arducam 12MP IMX477 causing error while running

I have integrated the camera with jetson nano 2gb, And i have launched
Where i can perform all actions from zoom, focus etc…,

But when i am trying to press enter for autofocus, after successful completion of autofocus the program getting crashed at the end. With the following error.

Then if i try to run the again, i am getting this error.


Error generated.
[ WARN: 0] gLobal /hone/nvidia/host/butld_opencv/nv_opencv/nodules/videoto/src/cap_gstreamer.cpp(933)openOpencv|GStreamerwarning:Cannotqueryvideoposition:status-0,va
Exception in thread :
Traceback (most recent call last):
File “/usr/lib/python3.6/”, line 916, in _bootstrap_inner
File " /hone/atum_x/MIPI_Camera/Jetson/JetsonNano_PTZ/",line95,inrun
CV2. Imshow(selF. window_nane, self, camera-getFrame (2000))
ev2.error: OpenCu(4.1.1) /hone/nvidia/host/build_opencv/nv_opencv/modules/highgut/src/window.cpp:3523error: (-215:Assertion fatled) size.width»o 88 stze. hetght»0 in funetton 4
Focus value = 8070
End Point: 19620
Starting Point: 8070
init time = 5.499954
iLmage None
Traceback (most recent call last):
File “AutofocusExample-py”, line 47, in «module»
max_index,max value = auto focus.startFocus ()
File " /home /atun_x/MIPI_Camera/Jetson/JetsonNano_PTZ/",line 186, in startfocus
max_index,max_value = self. focusing(300,1,1)
“/hone /atun_x/MIPI_Canera/Jetson/JetsonNano_PTZ/”,line107,infocusing val - self.calculation(self canera)
File " /hone/atum_x/MIPI_Camera/Jetson/JetsonNano_PTZ/",line87,incalculation
width = image. shape[11
"NoneType’ object has no attribute ’ shape’
terminate called without an active exception


The sad part is I need to restart the system each time to run the autofocus now, so it’s really hard to find the cause. Someone please help me with this


What is your camera sku number?