- Where did you get the camera module(s)?
Roboshop in NL - Model number of the product(s)?
16mp Autofocus imx519 - UC-873 Rev C. - What hardware/platform were you working on?
Pi 4 Model B Rev 1.2 4MB - Instructions you have followed. (link/manual/etc.)
How To Use Arducam 16MP Camera On Raspberry Pi - Arducam
- Running BullsEye
- Lib camera version (apps/dev) 0.0.10
Using --autofocus
in the command crashes libcamera(-vid/still/etc) function with a segmentation fault.
Created logging with LIBCAMERA_LOG_LEVELS=*:DEBUG
I tried several libcamera functions and they all crash when the --autofocus option is added.
This is only the 2nd day that I worked with the camera and to my knowledge nothing changed. The 1st day I didn’t have this problem and it seemed to start of of nowhere…
There is an image when the autofocus
is skipped but the image is not in focus. Manual focus option don’t seem to work…
Not sure the camera itself may be broken??
[I seem to be unable to attach the full log]
LIBCAMERA_LOG_LEVELS=*:DEBUG libcamera-vid -t 0 --width 1920 --height 1080 --codec h264 -n -l -o tcp://0.0.0.0:5001 --autofocus
.......
0:13:12.919639723] [1721] DEBUG RPiAgc agc.cpp:729 after AWB, target dg 1 gain 119.811 target_Y 0.20001
[0:13:12.919670297] [1721] DEBUG RPiAgc agc.cpp:744 Digital gain 1 desaturate? 0
[0:13:12.919695946] [1721] DEBUG RPiAgc agc.cpp:746 Target totalExposureNoDG 263043.64us
[0:13:12.919725075] [1721] DEBUG RPiAgc agc.cpp:793 After filtering, totalExposure 263043.64us no dg 263043.64us
[0:13:12.919758983] [1721] DEBUG RPiAgc agc.cpp:833 Divided up shutter and gain are 32880.45us and 8
[0:13:12.919791261] [1721] DEBUG RPiAgc agc.cpp:872 Output written, total exposure requested is 263043.64us
[0:13:12.919820687] [1721] DEBUG RPiAgc agc.cpp:874 Camera exposure update: shutter time 32880.45us analogue gain 8
[0:13:12.919852206] [1721] DEBUG RPiAlsc alsc.cpp:403 frame_phase 1
[0:13:12.919874465] [1721] DEBUG RPiAlsc alsc.cpp:331 Starting ALSC calculation
[0:13:12.919897243] [1721] DEBUG RPiAlsc alsc.cpp:308 AWB results found, using 4000
[0:13:12.919956132] [1716] DEBUG RPiAlsc alsc.cpp:452 ct is 4000, interpolating between 3000 and 6000
[0:13:12.919997206] [1716] DEBUG RPiAlsc alsc.cpp:452 ct is 4000, interpolating between 3000 and 6000
[0:13:12.920084799] [1716] DEBUG RPiAlsc alsc.cpp:727 Stop after 1 iterations
[0:13:12.920124577] [1716] DEBUG RPiAlsc alsc.cpp:727 Stop after 1 iterations
[0:13:12.920184189] [1721] DEBUG RPiContrast contrast.cpp:111 Move histogram point 5.15967 to 983.04
[0:13:12.920215800] [1721] DEBUG RPiContrast contrast.cpp:115 Final values 983.04 -> 983.04
[0:13:12.920244726] [1721] DEBUG RPiContrast contrast.cpp:132 Move histogram point 490.203 to 62259.2
[0:13:12.920273115] [1721] DEBUG RPiContrast contrast.cpp:136 Final values 60259.2 -> 62259.2
[0:13:12.920328356] [1721] DEBUG IPARPI raspberrypi.cpp:1278 Applying AGC Exposure: 32880.45us (Shutter lines: 2328, AGC requested 32880.45us) Gain: 8 (Gain Code: 896)
Segmentation fault
Last bit of DMESG
6.175705] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[ 6.176104] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[ 6.285478] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 6.301720] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 6.423640] usbcore: registered new interface driver brcmfmac
[ 6.586893] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 6.603757] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[ 6.662040] rtc-ds1307: probe of 1-0068 failed with error -121
[ 7.215949] imx519 10-001a: Device found is imx519
[ 7.216544] imx519 10-001a: Consider updating driver imx519 to match on endpoints
[ 7.848274] uart-pl011 fe201000.serial: no DMA platform data
[ 7.968169] 8021q: 802.1Q VLAN Support v1.8
[ 8.039289] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 8.419328] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 8.878428] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 8.879806] bcmgenet fd580000.ethernet eth0: Link is Down
[ 13.115472] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.115531] MAI: soc_pcm_open() failed (-19)
[ 13.116192] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.116230] MAI: soc_pcm_open() failed (-19)
[ 13.116761] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.116793] MAI: soc_pcm_open() failed (-19)
[ 13.126616] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.126695] MAI: soc_pcm_open() failed (-19)
[ 13.127960] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.128010] MAI: soc_pcm_open() failed (-19)
[ 13.128495] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.128530] MAI: soc_pcm_open() failed (-19)
[ 13.306900] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.306964] MAI: soc_pcm_open() failed (-19)
[ 13.307556] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.307594] MAI: soc_pcm_open() failed (-19)
[ 13.308120] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.308152] MAI: soc_pcm_open() failed (-19)
[ 13.316098] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.316185] MAI: soc_pcm_open() failed (-19)
[ 13.316590] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.316632] MAI: soc_pcm_open() failed (-19)
[ 13.316908] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 13.316939] MAI: soc_pcm_open() failed (-19)
[ 13.982089] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 15.912586] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
[ 15.987448] Bluetooth: Core ver 2.22
[ 15.987618] NET: Registered PF_BLUETOOTH protocol family
[ 15.987627] Bluetooth: HCI device and connection manager initialized
[ 15.987643] Bluetooth: HCI socket layer initialized
[ 15.987652] Bluetooth: L2CAP socket layer initialized
[ 15.987669] Bluetooth: SCO socket layer initialized
[ 16.001772] Bluetooth: HCI UART driver ver 2.3
[ 16.001797] Bluetooth: HCI UART protocol H4 registered
[ 16.001871] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 16.002235] Bluetooth: HCI UART protocol Broadcom registered
[ 16.252741] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 16.252764] Bluetooth: BNEP filters: protocol multicast
[ 16.252780] Bluetooth: BNEP socket layer initialized
[ 16.272501] NET: Registered PF_ALG protocol family
[ 16.351036] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[ 16.391049] Bluetooth: RFCOMM TTY layer initialized
[ 16.391081] Bluetooth: RFCOMM socket layer initialized
[ 16.391105] Bluetooth: RFCOMM ver 1.11
[ 31.710902] cam-dummy-reg: disabling
[ 4817.808456] ieee80211 phy0: brcmf_run_escan: error (-52)
[ 4817.808493] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)
[ 5117.815225] ieee80211 phy0: brcmf_run_escan: error (-52)
[ 5117.815261] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)
[ 5417.822809] ieee80211 phy0: brcmf_run_escan: error (-52)
[ 5417.822846] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)
[ 5717.830445] ieee80211 phy0: brcmf_run_escan: error (-52)
[ 5717.830482] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)
[ 6017.836687] ieee80211 phy0: brcmf_run_escan: error (-52)
[ 6017.836725] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)