react-native-vision-camera: 🐛 Android - Error on taking picture - Precapture timed out after 5 seconds!
What’s happening?
Hey,
trying to take a picture with latest 3.9.0
Looks like the camera is trying to focus, but can’t before timeout.
Therefore the capture crashes.
Reproduceable Code
<Camera
ref={(_ref: Camera) => {
setCameraRef(_ref);
}}
device={device}
zoom={device?.neutralZoom}
photo={true}
format={format}
isActive={true}
enableDepthData={false}
enableHighQualityPhotos={true}
enableZoomGesture={false}
onInitialized={() => {
setIsCameraReady(true);
}}
onError={err => {
Sentry.captureMessage('camera error on pictures' + err, 'info');
}}
/>
Relevant log output
Taking photo... Options: {qualityPrioritization=quality, enableAutoStabilization=true, flash=off, enableShutterSound=false}
2024-02-16 17:49:35.249 13778-16387 CameraSession com.carooltruck.dev I Photo capture 1/3 - capturing 4032x3024 image...
2024-02-16 17:49:35.249 13778-16387 Persistent...ureSession com.carooltruck.dev I Capturing photo...
2024-02-16 17:49:35.249 13778-16387 Persistent...ureSession com.carooltruck.dev I Locking AF/AE/AWB...
2024-02-16 17:49:35.251 13778-16387 Precapture com.carooltruck.dev I Running precapture sequence... (PrecaptureOptions(modes=[AF, AE, AWB], flash=OFF, pointsOfInterest=[], skipIfPassivelyFocused=true))
2024-02-16 17:49:35.557 13778-16387 Precapture com.carooltruck.dev I Auto-Flash: Flash is not required for photo capture.
2024-02-16 17:49:35.557 13778-16387 Precapture com.carooltruck.dev I AF is already focused, skipping...
2024-02-16 17:49:35.913 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:35.913 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:35.952 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:35.952 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:35.994 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:35.994 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.034 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.034 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.079 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.079 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.119 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.119 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.162 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.163 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.203 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.203 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.244 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.244 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.287 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.288 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.329 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.329 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.370 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.370 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:36.413 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.413 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.454 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.454 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.498 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.498 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.537 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.537 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.582 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.582 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.622 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.622 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.663 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.663 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.708 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.709 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.748 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.748 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.789 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.789 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.831 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.831 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.877 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.877 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.916 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.917 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.956 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.956 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:36.998 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:36.999 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.039 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.040 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.082 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.082 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:37.126 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.126 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:37.166 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.166 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.207 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.207 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.248 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.249 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.291 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.291 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.332 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.332 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.374 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.375 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.415 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.415 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.463 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.463 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.504 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.504 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.545 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.546 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.586 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.586 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.627 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.627 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.669 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.669 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.717 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.717 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.755 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.755 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.794 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.794 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.835 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.835 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.881 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.881 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.920 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.920 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:37.962 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:37.962 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.003 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.003 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:38.046 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.046 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:38.087 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.087 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.134 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.134 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:38.172 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.172 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Searching (isCompleted: false)
2024-02-16 17:49:38.212 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.212 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.255 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.255 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.299 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.299 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.338 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.339 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.384 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.384 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.423 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.423 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.467 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.467 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.506 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.506 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.549 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.550 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.591 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.591 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.637 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.638 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.678 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.678 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.716 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.716 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.756 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.757 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.802 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.802 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.840 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.841 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.883 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.884 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.929 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.929 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:38.967 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:38.967 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.008 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.008 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.051 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.051 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.092 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.092 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.136 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.136 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.177 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.177 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.224 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.224 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.259 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.259 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.302 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.302 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.346 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.346 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.386 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.386 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.436 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.436 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.469 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.469 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.510 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.511 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.554 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.554 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.595 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.596 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.639 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.639 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.679 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.680 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.722 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.722 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.763 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.763 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.804 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.804 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.845 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.846 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.888 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.889 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.932 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.932 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:39.971 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:39.971 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.018 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.018 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.056 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.056 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.099 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.100 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.141 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.141 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.182 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.182 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.224 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.224 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.266 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.266 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.308 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.308 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.352 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.352 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.390 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.390 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.437 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.437 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.473 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.473 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.521 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.521 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.558 13778-16387 CameraCaptureSession com.carooltruck.dev I AE State: Precapture (isCompleted: false)
2024-02-16 17:49:40.558 13778-16387 CameraCaptureSession com.carooltruck.dev I AWB State: Converged (isCompleted: true)
2024-02-16 17:49:40.567 13778-16759 CameraCaptureSession com.carooltruck.dev E Precapture timed out after 5 seconds!
2024-02-16 17:49:40.568 13778-16387 System.err com.carooltruck.dev W com.mrousavy.camera.core.CaptureTimedOutError: [capture/timed-out] The image capture was aborted because it timed out.
2024-02-16 17:49:40.568 13778-16387 System.err com.carooltruck.dev W at com.mrousavy.camera.extensions.CameraCaptureSession_setRepeatingRequestAndWaitForPrecaptureKt$setRepeatingRequestAndWaitForPrecapture$2$1.invokeSuspend(CameraCaptureSession+setRepeatingRequestAndWaitForPrecapture.kt:127)
2024-02-16 17:49:40.568 13778-16387 System.err com.carooltruck.dev W at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2024-02-16 17:49:40.568 13778-16387 System.err com.carooltruck.dev W at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
2024-02-16 17:49:40.568 13778-16387 System.err com.carooltruck.dev W at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
2024-02-16 17:49:40.568 13778-16387 System.err com.carooltruck.dev W at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
2024-02-16 17:49:40.569 13778-16387 System.err com.carooltruck.dev W at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
2024-02-16 17:49:40.569 13778-16387 System.err com.carooltruck.dev W at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Camera Device
{
"formats": [],
"sensorOrientation": "landscape-left",
"hardwareLevel": "full",
"maxZoom": 8,
"minZoom": 1,
"maxExposure": 20,
"supportsLowLightBoost": false,
"neutralZoom": 1,
"physicalDevices": [
"wide-angle-camera"
],
"supportsFocus": true,
"supportsRawCapture": true,
"isMultiCam": false,
"minFocusDistance": 10,
"minExposure": -20,
"name": "BACK (0)",
"hasFlash": true,
"hasTorch": true,
"position": "back",
"id": "0"
}
Device
Samsung SM-G960U1 / Android 10
VisionCamera Version
3.9.0
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information
- I am using Expo
- I have enabled Frame Processors (react-native-worklets-core)
- I have read the Troubleshooting Guide
- I agree to follow this project’s Code of Conduct
- I searched for similar issues in this repository and found none.
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 9
- Comments: 45 (15 by maintainers)
Whoops yea it is not entirely fixed, only for some phones. The problem still exists because some other phones simply stay in
Precapture
state instead of doing something. No one knows why, according to the Android developer docs that should not happen.I’m reading androidx/CameraX source code as we speak to figure out how they did it.
Yes it will skip focus, but in most cases the camera is already focused anyways.
@serybva yes if flash is enabled it will still require the precapture process, so this only works without flash.
this is what solved it for me
photoData = await cameraRef.current?.takePhoto({ enableShutterSound: true, flash: 'off', qualityPrioritization: Platform.OS === 'android' ? 'speed' : 'quality', });
Just integrated the fix branch. I’m experiencing the same, also without flash. Logs are looking the same. Device: Samsung Galaxy S21 FE 5G. Thank you for your support.
Hey everybody! I just released a new V4 beta (v4.0.0-beta.7) where I fixed a bunch of issues! 💪🚀 Can you test that and see if that fixes the issue for you? 😅
You might need to increase the
compileSdk
to the newest Android SDK (34) if you are behind.Hey! In case you still need logs. I focused and then tried to leave the screen a few seconds later. Samsung S9 Android 10
Same behaviour on samsung SM-T545 / Android 11.0 the only devices I own 😉
Hey - I think this issue has been fixed in VisionCamera 4.0.0. 🥳
Please try V4 and let me know if you still experience this issue;
Please create an issue in the CameraX issue tracker here, this is definitely a bug. On iOS this works, and on other Android phones this shoulda also work.
CameraX version is 1.4.0-alpha04.
@vishpatil1999 this comment may help you https://github.com/mrousavy/react-native-vision-camera/issues/2577#issuecomment-1952390114
@vishpatil1999 This is a bit off topic for this issue and I wouldn’t recommend using it in production, I would advise you to wait for the fix to be released. But you can do it in multiple ways if you really want to, for example one of @iliapnmrv earlier comments shows one way. Another one would be cloning the project, checking out the fix branch, building the project and then including it locally in your project.
Hi, I get a similar issue since upgrading to 3.9.0 to fix a preview stretch (not resolved, might open an issue for this).
The logs are very similar
Device is a CrossCall Core-T4 running android 10
why tf is that phone not leaving the Precapture state???
Well if that actually uses the branch then that should be fine, I never used gitpkg. But I still need the logs, not the stacktrace. Please run it locally (ideally through Android Studio) and post the adb logcat logs here (similar to what @IvanByRool posted in his original issue where I can see the “AE State: …” logs)
hey mrousavy, thanks for taking a look at this so quickly! 🙏 On my Samsung SM-A536B (Android 14) I can no longer reproduce the issue (capture/timed-out), with #2586.
Created a PR, can you try if this fixes the issue for you guys? https://github.com/mrousavy/react-native-vision-camera/pull/2586
Same here, only with the front camera. Tested on the Samsung SM-A536B / Android 14
Happens in Pixel 6 (Android 14) too. After switching from
3.8.2
to3.9.0
.PS: Only the front camera times out
[capture/timed-out] The image capture was aborted because it timed out.
while trying to capture from preview, the back camera works fine.