OV2311 Capture suddenly stopped working

1.Which seller did you purchase the product(s) from?
UCTRONICS
2.The Model number of the product(s) you have purchased?
Arducam 2MP OV2311 Global Shutter NoIR Mono Camera Modules for Raspberry Pi
3.Which Platform are you using the product(s) on?
Raspberry Pi 4B
4.Which instruction are you following?
https://www.arducam.com/docs/pi/ov2311/tutorial/#18-3run-demo-through-the-arducamstill-command
5.Has your product ever worked properly?
Worked for a few single frame capture tests then suddenly stopped working
6.What problems are you experiencing?
I just started playing with an Arducam OV2311 camera by running through the demo listed in the link above. I had some initial success pulling a few images using the arducamstill routine and also the python script ‘capture.py’. All of a sudden I am unable to capture images and there has not been any change to the hardware configuration.

Here’s the current output from arducamstill:

pi@spectrometer:~/MIPI_Camera/RPI $ ./arducamstill -t 5000 -m 0 -o testimage.jpg
Open camera…
Hardware platform: b03112
Found sensor ov2311 at address 60
mode: 0, width: 1600, height: 1300, pixelformat: GREY, desc: (null)
mode: 1, width: 1600, height: 1300, pixelformat: BA81, desc: (null)
mode: 2, width: 1600, height: 1080, pixelformat: GREY, desc: (null)
mode: 3, width: 1600, height: 1080, pixelformat: BA81, desc: (null)
mode: 4, width: 1920, height: 1080, pixelformat: GREY, desc: (null)
mode: 5, width: 1920, height: 1080, pixelformat: BA81, desc: (null)
mode: 6, width: 1600, height: 1300, pixelformat: Y10P, desc: 1600x1300 RAW 10 mode
mode: 7, width: 1600, height: 1300, pixelformat: GREY, desc: Used for ov2311 2lane raw8 1600x1300 external trigger mode
mode: 8, width: 1600, height: 1080, pixelformat: GREY, desc: Used for ov2311 2lane raw8 1600x1080 external trigger mode
mode: 9, width: 1920, height: 1080, pixelformat: GREY, desc: Used for ov2311 2lane raw8 1920x1080 external trigger mode
mode: 10, width: 1600, height: 1300, pixelformat: Y10P, desc: Used for ov2311 2lane raw10 1600x1300 external trigger mode
index: 0, CID: 0x00980914, desc: V4L2_CID_HFLIP, min: 0, max: 1, default: 0, current: 0
index: 1, CID: 0x00980915, desc: V4L2_CID_VFLIP, min: 0, max: 1, default: 0, current: 0
index: 2, CID: 0x00980911, desc: V4L2_CID_EXPOSURE, min: 0, max: 65535, default: 1466, current: 7936
index: 3, CID: 0x00980913, desc: V4L2_CID_GAIN, min: 0, max: 255, default: 0, current: 0
index: 4, CID: 0x00981901, desc: V4L2_CID_ARDUCAM_EXT_TRI, min: 0, max: 1, default: 0, current: 0
mmal: Failed to fix lens shading, use the default mode!
Failed to set focus, the camera may not support this control.
Failed to set focus, the camera may not support this control.
Start preview…
Current mode: 0, width: 1600, height: 1300, pixelformat: GREY, desc: (null)
Mono camera does not support automatic white balance.
mmal: Enable JPEG encoder.

Here’s the current output from capture.py:

pi@spectrometer:~/MIPI_Camera/RPI/python $ python capture.py
Open camera…
Hardware platform: b03112
Found sensor ov2311 at address 60
Setting the resolution…
mmal: Failed to fix lens shading, use the default mode!
Current resolution is (1920, 1080)
Reset the focus…
reset_control: Unexpected result.
The camera may not support this control.
Enable Auto Exposure…
Enable Auto White Balance…
software_auto_white_balance: Unexpected result.
mmal: Enable JPEG encoder.

NULL pointer access

 

 
7.What attempts at troubleshooting have you already made?
I tried reinstalling/rebuilding the SDK but saw no changes to the issue stated above. Found a post from another user about the ‘NULL pointer access’ and it looks like it may be from damaged hardware
8.How would you like us to help you?
The camera + RPI are mounted and there was no physical change between successful image captures and when it stopped working. Likewise, there were no changes to the RPI environment, so it’s hard to assign this issue to software. Are there any tests I can do to confirm the hardware is fully functional?

Dear Jsavee,

 

I do share the same challenge with you. However, for my case the image is captured and saved

I would like to know how to clear the error message.

 

pi@raspberry:~ $ /MIPI_Camera/RPI/python $ python capture.py

Open camera…
Found sensor ov2311 at address 60
Setting the resolution…
mmal: Failed to fix lens shading, use the default mode!
Current resolution is (1600, 1300)
Reset the focus…
reset_control: Unexpected result.
The camera may not support this control.
Enable Auto Exposure…
Enable Auto White Balance…
software_auto_white_balance: Unexpected result.
mmal: Enable JPEG encoder.

Setting the resolution…
mmal: Failed to fix lens shading, use the default mode!
Reset the focus…
reset_control: Unexpected result.
The camera may not support this control.
Enable Auto Exposure…
Enable Auto White Balance…
software_auto_white_balance: Unexpected result.
Current resolution is (1600, 1300)
mmal: Enable JPEG encoder.

Close camera…

Please, share tips on how to clear the errors.

Thank you!