Segmentation fault, Arducam 16MP IMX519

Hi, I recently received a 16MP autofocus ArduCam and followed the steps from the start guide:

I am currently using a fresh install of the RaspberryPi OS Bullseye on a Rpi4.

After installing the necessary software, I run the command:

libcamera-still -t 5000 -o test.jpg

A segmentation fault occurs after the command:

$ libcamera-still -t 5000 -o test.jpg
Made X/EGL preview window
[1:28:52.639912929] [1448]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[1:28:52.659079620] [1449]  WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 'imx519'
[1:28:52.659144563] [1449]  WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[1:28:52.659182803] [1449] ERROR CameraSensor camera_sensor.cpp:551 'imx519 10-001a': Camera sensor does not support test pattern modes.
[1:28:52.685383713] [1449]  WARN RPI raspberrypi.cpp:1233 Mismatch between Unicam and CamHelper for embedded data usage!
[1:28:52.686247827] [1449] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[1:28:52.686696577] [1449]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media3 and ISP device /dev/media0
[1:28:52.687732706] [1448]  INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[1:28:52.688238326] [1449]  INFO RPI raspberrypi.cpp:751 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[1:28:52.738417614] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Saturation = 1.000000
[1:28:52.738623388] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Contrast = 1.000000
[1:28:52.738698127] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Brightness = 0.000000
[1:28:52.738754071] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AwbMode = 0
[1:28:52.738806736] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Sharpness = 1.000000
[1:28:52.738861050] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: ExposureValue = 0.000000
[1:28:52.738930475] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AeExposureMode = 0
[1:28:52.738977214] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: FrameDurationLimits = [ 33333, 33333 ]
[1:28:52.739040602] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AeMeteringMode = 0
[1:28:52.739090509] [1454]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: NoiseReductionMode = 3
[1:28:58.022442746] [1448]  INFO Camera camera.cpp:1028 configuring streams: (0) 4656x3496-YUV420 (1) 4656x3496-SRGGB10_CSI2P
[1:28:58.023081253] [1449]  INFO RPI raspberrypi.cpp:751 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 4656x3496-SRGGB10_1X10 - Selected unicam format: 4656x3496-pRAA
Segmentation fault

Does anybody know how to solve this error?

If live preview command is used, it does not cause error:

libcamera-still -t 0

Can you provide this information?

Also you can try to turn off the preview:
libcamera-still -t 5000 -o test.jpg -n
Most likely it’s a preview issue.

Turning off the preview allowed the image to be saved and no segmentation fault was shown. Thanks!

A customer said before that Glamor graphic acceleration doesn’t work on Pi4, maybe you can try turning it off.
https://forums.raspberrypi.com/viewtopic.php?t=323547

I have the same problem where ‘libcamera-hello --list-cameras’ returns a list of cameras and then ‘segmentation fault’.
But I also have my own libcamera-app, so I can run it in a debugger. And there I found that my app can’t read the image-buffer returned by mmap. “error: Cannot access memory at address …”
But, if I run ‘sudo libcamera-hello --list-cameras’ then no segmentation fault occur.
So there seems to be some access-right problem assosiated with sharing memory