Arducam Camera (16mp imx519) Drivers not working for Pi4 model B (double free detected in tcache 2)

Hi,

I receive the following log error message when executing the following command:
“/usr/bin/libcamera-jpeg -n --lens-position 10 -o photos/test_10_local.jpg”

[0:16:49.975058750] [8945]  INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4225-74d023d8
[0:16:50.028041247] [8949] ERROR RPI pipeline_base.cpp:818 Failed to load a suitable IPA library
[0:16:50.028157043] [8949] ERROR RPI vc4.cpp:209 Failed to register camera imx519 10-001a: -22
[0:16:50.093378151] [8949]  INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media0 and ISP device /dev/media3
[0:16:50.094399475] [8945]  INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:16:50.095078895] [8949]  INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:16:55.332932113] [8945]  INFO Camera camera.cpp:1028 configuring streams: (0) 4656x3496-YUV420 (1) 4656x3496-SRGGB10_CSI2P
[0:16:55.335072260] [8949]  INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 4656x3496-SRGGB10_1X10 - Selected unicam format: 4656x3496-pRAA
Still capture image received
free(): double free detected in tcache 2
fish: “/usr/bin/libcamera-jpeg -n --le…” terminated by signal SIGABRT (Abort)

Thanks in advance for your help.

@Pi4Ardu

Have you modified libcamera, or manually compiled it yourself?

No haven’t modified anything. Simply running the following bash script

cd /tmp
wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p libcamera
./install_pivariety_pkgs.sh -p libcamera_apps
echo "\ndtoverlay=imx519" >> /boot/config.txt
echo " cma=256M" >> /boot/cmdline.txt

@Pi4Ardu

Before, I need some information

Please reboot your device and execute the following command:

wget -O arducam-camera-bug-report https://github.com/ketai-dhr/arducam-camera-bug-report/releases/download/tools/arducam-camera-bug-report
chmod +x ./arducam-camera-bug-report
./arducam-camera-bug-report

This will output an arducam-bug-report.txt in the current directory.

Please send this file to me via google cloud disk or similar platform or email ([email protected])

And if possible, please send me the hardware connection diagram.

Thank you for your cooperation and have a nice life.