Preview not autofocusing, error during make photo


A have Raspberry V4B 8GB Ram, a camera module 64MP Hawkeye (all bought 14 days ago). After installing the drivers, the camera works without errors using the libcamera library (make photo, preview working).

However, when I download ( from GIT and run the program, I get two errors:

  • first mistake, autofocus doesn’t work in the preview
  • second, if I am can get photo program generate errors and do not create photo

I see these messages under the running program:

[1:02:13.199294046] [2413] INFO Camera camera_manager.cpp:297 libcamera v0.0.0+4367-ad9428b4
[1:02:13.218777233] [2416] WARN CameraSensorProperties camera_sensor_properties.cpp:261 No static properties available for ‘arducam_64mp’
[1:02:13.218837269] [2416] WARN CameraSensorProperties camera_sensor_properties.cpp:263 Please consider updating the camera sensor properties database
[1:02:13.288450314] [2416] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/arducam_64mp@1a to Unicam device /dev/media1 and ISP device /dev/media2
[1:02:13.289325821] [2416] INFO RPI pipeline_base.cpp:1101 Using configuration file ‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’
[1:02:13.299327152] [2413] INFO Camera camera.cpp:1033 configuring streams: (0) 800x600-XBGR8888 (1) 1280x720-SRGGB10_CSI2P
[1:02:13.300107086] [2416] INFO RPI vc4.cpp:572 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 1280x720-SRGGB10_1X10 - Selected unicam format: 1280x720-pRAA qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 192, resource id: 0, major code: 140 (Unknown), minor code: 20
[1:02:17.061091798] [2413] INFO Camera camera.cpp:1033 configuring streams: (0) 9152x6944-BGR888 (1) 9152x6944-SRGGB10_CSI2P
[1:02:17.062698776] [2416] INFO RPI vc4.cpp:572 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 9152x6944-SRGGB10_1X10 - Selected unicam format: 9152x6944-pRAA
[1:02:17.393812463] [2416] ERROR V4L2 v4l2_videodevice.cpp:1241 /dev/video0[18:cap]: Unable to request 1 buffers: Cannot allocate memory
[1:02:17.393902072] [2416] ERROR RPI pipeline_base.cpp:681 Failed to allocate buffers
Traceback (most recent call last):
File “/home/administrator/”, line 33, in capture_done
File “/usr/lib/python3/dist-packages/picamera2/”, line 1181, in wait
return job.get_result()
File “/usr/lib/python3/dist-packages/picamera2/”, line 77, in get_result
return self._future.result()
File “/usr/lib/python3.9/concurrent/futures/”, line 433, in result
return self.__get_result()
File “/usr/lib/python3.9/concurrent/futures/”, line 389, in _get_result
raise self.exception
File “/usr/lib/python3/dist-packages/picamera2/”, line 47, in execute
done, result = self.functions0
File “/usr/lib/python3/dist-packages/picamera2/”, line 1235, in switch_mode

File “/usr/lib/python3/dist-packages/picamera2/”, line 1023, in start
RuntimeError: Failed to start camera: Cannot allocate memory

Process ended with exit code -6.

Can anyone advise what the problem is?