Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Android - Error on taking picture - Precapture timed out after 5 seconds! #2577

Closed
4 of 5 tasks
IvanByRool opened this issue Feb 16, 2024 · 46 comments 路 Fixed by #2586
Closed
4 of 5 tasks

馃悰 Android - Error on taking picture - Precapture timed out after 5 seconds! #2577

IvanByRool opened this issue Feb 16, 2024 · 46 comments 路 Fixed by #2586
Labels
馃悰 bug Something isn't working

Comments

@IvanByRool
Copy link

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

@IvanByRool IvanByRool added the 馃悰 bug Something isn't working label Feb 16, 2024
@IvanByRool IvanByRool changed the title Error on taking picture - Precapture timed out after 5 seconds!馃悰 Android - Error on taking picture - Precapture timed out after 5 seconds!馃悰 Feb 16, 2024
@mrousavy mrousavy changed the title Android - Error on taking picture - Precapture timed out after 5 seconds!馃悰 馃悰 Android - Error on taking picture - Precapture timed out after 5 seconds! Feb 16, 2024
@mrousavy
Copy link
Owner

Does this always happen? Is this phone normally fast with capture in the native Camera app?

It looks like AE is just always on Precapture, not sure if it is adjusting or if we can already shoot a picture there..

@IvanByRool
Copy link
Author

IvanByRool commented Feb 16, 2024

It was normal fast with capture with previous versions.
it was definitly taking less than 5s to take a picture.

Anything I can do with it to help you debug ? thx

And yes it always happens
Unless I'm trying to take twice the same picture, therefore I'm getting

2024-02-16 17:49:43.196 13778-16387 Precapture com.carooltruck.dev I AF is already focused, skipping...
2024-02-16 17:49:43.196 13778-16387 Precapture com.carooltruck.dev I AE is already focused, skipping...
2024-02-16 17:49:43.196 13778-16387 Precapture com.carooltruck.dev I AWB is already focused, skipping...
2024-02-16 17:49:43.536 13778-16387 Precapture com.carooltruck.dev I AF/AE/AWB successfully locked!

No need to re-focus I'm guessing

@IvanByRool
Copy link
Author

Same behaviour on samsung SM-T545 / Android 11.0
the only devices I own ;)

@dibyendu
Copy link

dibyendu commented Feb 18, 2024

Happens in Pixel 6 (Android 14) too. After switching from 3.8.2 to 3.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.

@Dingenis
Copy link

Same here, only with the front camera. Tested on the Samsung SM-A536B / Android 14

@fsteinhanseskb
Copy link

Same problem with the back camera. Works fine on beta-2.

@mrousavy
Copy link
Owner

Created a PR, can you try if this fixes the issue for you guys? #2586

@mrousavy
Copy link
Owner

mrousavy commented Feb 19, 2024

According to the Android Developer Documentation on the AE State values, the Precapture state is only a temporary state and should resolve to either Locked or Converged once it finished finding a good AE value.

The way I understood this, is it should never remain in this state, so it is only a temporary state. This makes me wonder, how can a fairly new device (Samsung Galaxy S9, Level: FULL Camera) not find a good exposure value in 5 seconds?

image

@iliapnmrv
Copy link

hey! for me #2586 did not resolve the issue. Xiaomi Redmi 9T

@Dingenis
Copy link

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.

@mrousavy
Copy link
Owner

@Dingenis great!

@iliapnmrv how did you test that PR? Can you share the logs with me when trying to take a photo with my PR?

@iliapnmrv
Copy link

iliapnmrv commented Feb 19, 2024

@mrousavy
i set branch as a package

"react-native-vision-camera": "https://gitpkg.now.sh/mrousavy/react-native-vision-camera/package?fix/precapture-timeout"

then i simply use camera in my app (scan barcodes, open and close modals) and crash happens
here is my sentry issue
https://sentry.vibeapp.ru/share/issue/9aa315f0d8114f13bad62ee086b7ee85/

do i do something wrong?

@mrousavy
Copy link
Owner

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)

@IvanByRool
Copy link
Author

I'm in a meeting today, I'll test this on both devices tonight.

@IvanByRool
Copy link
Author

IvanByRool commented Feb 19, 2024

Hey,

I've tested, it's "working" but it's too slow when using the flash

In the log below you'll see that it's taking the picture (when using the flash) after the 5s timeout.
The first picture on the other hand (without flash) is working fine directly.

Let me know if you need more.

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

2024-02-19 20:35:58.120 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo capture 1/3 - capturing 4032x3024 image...
2024-02-19 20:35:58.120 20753-28926 Persistent...ureSession com.carooltruck.dev                  I  Capturing photo...
2024-02-19 20:35:58.120 20753-28926 Persistent...ureSession com.carooltruck.dev                  I  Locking AF/AE/AWB...
2024-02-19 20:35:58.121 20753-28926 Precapture              com.carooltruck.dev                  I  Running precapture sequence... (PrecaptureOptions(modes=[AF, AE, AWB], flash=OFF, pointsOfInterest=[], skipIfPassivelyFocused=true, timeoutMs=5000))
2024-02-19 20:35:58.328 20753-28926 Precapture              com.carooltruck.dev                  I  Precapture current states: AF: PassiveFocused, AE: Converged, AWB: Converged
2024-02-19 20:35:58.328 20753-28926 Precapture              com.carooltruck.dev                  I  AF is already focused, skipping...
2024-02-19 20:35:58.328 20753-28926 Precapture              com.carooltruck.dev                  I  AE is already focused, skipping...
2024-02-19 20:35:58.328 20753-28926 Precapture              com.carooltruck.dev                  I  AWB is already focused, skipping...
2024-02-19 20:35:58.600 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: PassiveFocused, AE: Converged, AWB: Converged
2024-02-19 20:35:58.605 20753-28926 Precapture              com.carooltruck.dev                  I  AF/AE/AWB successfully locked!
2024-02-19 20:35:58.605 20753-28926 PhotoCaptureRequest     com.carooltruck.dev                  I  Using CaptureRequest Template PHOTO...
2024-02-19 20:35:58.938 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo Captured!
2024-02-19 20:35:58.938 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo captured! 4032 x 3024
2024-02-19 20:35:58.968 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo capture 2/3 - waiting for image with timestamp 641711024794574 now...
2024-02-19 20:35:58.968 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo capture 3/3 - received 4032 x 3024 image, preparing result...
2024-02-19 20:35:58.972 20753-28926 CameraView.takePhoto    com.carooltruck.dev                  I  Successfully captured 4032 x 3024 photo!
2024-02-19 20:35:59.002 20753-28926 CameraView.takePhoto    com.carooltruck.dev                  I  Successfully saved photo to file! /data/user/0/com.carooltruck.dev/cache/mrousavy5278860813447148588.jpg
2024-02-19 20:35:59.321 20753-28724 System                  com.carooltruck.dev                  W  A resource failed to call close. 
2024-02-19 20:35:59.338 20753-28927 CreateCaptureSession    com.carooltruck.dev                  I  Camera #0: CameraCaptureSession #6 has been closed.
2024-02-19 20:35:59.339 20753-28927 Persistent...ureSession com.carooltruck.dev                  I  Session android.hardware.camera2.impl.CameraCaptureSessionImpl@b2c1223 closed!
2024-02-19 20:36:01.120 20753-20753 ViewRootIm...nActivity] com.carooltruck.dev                  I  ViewPostIme pointer 0
2024-02-19 20:36:01.235 20753-20753 ViewRootIm...nActivity] com.carooltruck.dev                  I  ViewPostIme pointer 1
2024-02-19 20:36:01.249 20753-20753 CameraView              com.carooltruck.dev                  D  Finding view 1355...
2024-02-19 20:36:01.250 20753-20753 CameraView              com.carooltruck.dev                  D  Found view 1355!
2024-02-19 20:36:01.250 20753-28926 CameraView.takePhoto    com.carooltruck.dev                  I  Taking photo... Options: {qualityPrioritization=quality, enableAutoStabilization=true, flash=on, enableShutterSound=false}
2024-02-19 20:36:01.251 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo capture 1/3 - capturing 4032x3024 image...
2024-02-19 20:36:01.251 20753-28926 Persistent...ureSession com.carooltruck.dev                  I  Capturing photo...
2024-02-19 20:36:01.251 20753-28926 Persistent...ureSession com.carooltruck.dev                  I  Locking AF/AE/AWB...
2024-02-19 20:36:01.253 20753-28926 Precapture              com.carooltruck.dev                  I  Running precapture sequence... (PrecaptureOptions(modes=[AF, AE, AWB], flash=ON, pointsOfInterest=[], skipIfPassivelyFocused=false, timeoutMs=5000))
2024-02-19 20:36:01.593 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.626 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.663 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.695 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.729 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.762 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.796 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.828 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.864 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.900 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.928 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.960 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:01.994 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.033 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.065 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.094 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.131 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.166 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.201 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.231 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.262 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.297 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.329 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.365 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.397 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.433 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.465 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.496 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.529 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.565 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.598 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.630 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.662 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.701 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.729 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.765 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.800 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.830 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.863 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.898 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.930 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.963 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:02.997 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.029 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.061 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.095 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.129 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.165 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.200 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.233 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.265 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.300 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.329 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.361 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.399 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.428 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.464 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.495 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.528 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.564 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.598 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.631 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.663 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.699 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.732 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.761 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.797 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.827 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.864 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.899 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.927 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.962 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:03.995 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.030 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.060 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.093 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.127 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.167 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.196 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.231 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.262 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.297 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.327 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.361 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.397 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.427 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.467 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.500 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.530 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.561 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.592 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.628 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.660 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.693 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.726 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.760 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.793 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.826 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.861 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.893 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.926 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.960 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:04.994 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.039 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.066 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.092 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.126 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.160 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.193 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.225 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.269 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.292 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.325 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.359 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.394 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.427 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.459 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.494 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.527 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.569 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.593 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.626 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.658 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.693 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.726 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.760 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.793 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.828 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.861 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.893 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.926 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:05.963 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.001 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.032 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.061 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.091 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.123 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.162 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.193 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.228 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.262 20753-28926 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-19 20:36:06.267 20753-29451 CameraCaptureSession    com.carooltruck.dev                  E  Precapture timed out after 5 seconds!
2024-02-19 20:36:06.268 20753-28926 PhotoCaptureRequest     com.carooltruck.dev                  I  Using CaptureRequest Template PHOTO...
2024-02-19 20:36:06.657 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo Captured!
2024-02-19 20:36:06.658 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo captured! 4032 x 3024
2024-02-19 20:36:06.676 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo capture 2/3 - waiting for image with timestamp 641718763159599 now...
2024-02-19 20:36:06.677 20753-28926 CameraSession           com.carooltruck.dev                  I  Photo capture 3/3 - received 4032 x 3024 image, preparing result...
2024-02-19 20:36:06.681 20753-28926 CameraView.takePhoto    com.carooltruck.dev                  I  Successfully captured 4032 x 3024 photo!
2024-02-19 20:36:06.702 20753-28926 CameraView.takePhoto    com.carooltruck.dev                  I  Successfully saved photo to file! /data/user/0/com.carooltruck.dev/cache/mrousavy6760595864451569426.jpg
2024-02-19 20:36:06.943 20753-28724 System                  com.carooltruck.dev                  W  A resource failed to call close. 
2024-02-19 20:36:08.322 20753-28724 System                  com.carooltruck.dev                  W  A resource failed to call close. 
2024-02-19 20:36:08.576 20753-28929 unknown:ReactNative     com.carooltruck.dev                  W  Attempt to set local data for view with unknown tag: -1
2024-02-19 20:36:08.632 20753-20753 SurfaceView             com.carooltruck.dev                  I  onWindowVisibilityChanged(8) false com.mrousavy.camera.core.PreviewView{ec964d6 V.E...... ........ 0,-420-1080,1500} of ViewRootImpl@86fe9b1[MainActivity]
2024-02-19 20:36:08.632 20753-20753 SurfaceView             com.carooltruck.dev                  I  surfaceDestroyed callback.size 2 #2 com.mrousavy.camera.core.PreviewView{ec964d6 V.E...... ........ 0,-420-1080,1500}
2024-02-19 20:36:08.632 20753-20753 CameraSession           com.carooltruck.dev                  I  PreviewView Surface destroyed! Surface(name=null)/@0x68b2e44
2024-02-19 20:36:08.632 20753-20753 CameraSession           com.carooltruck.dev                  I  Destroying Preview Output...
2024-02-19 20:36:08.632 20753-20753 CameraSession           com.carooltruck.dev                  I  configure { ... }: Waiting for lock...
2024-02-19 20:36:08.633 20753-20753 CameraSession           com.carooltruck.dev                  I  configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=false, outputsChanged=true, sidePropsChanged=true, isActiveChanged=true)
2024-02-19 20:36:08.633 20753-20753 CameraSession           com.carooltruck.dev                  I  Destroying previous outputs...
2024-02-19 20:36:08.633 20753-20753 SurfaceOutput           com.carooltruck.dev                  I  Closing 4032x3024 PHOTO ImageReader..
2024-02-19 20:36:08.633 20753-20753 CameraView              com.carooltruck.dev                  I  invokeOnStopped()
2024-02-19 20:36:08.635 20753-20753 CameraSession           com.carooltruck.dev                  I  Creating outputs for Camera #0...
2024-02-19 20:36:08.638 20753-20753 CameraSession           com.carooltruck.dev                  I  Adding 4032x3024 Photo Output in JPEG...
2024-02-19 20:36:08.638 20753-20753 Persistent...ureSession com.carooltruck.dev                  D  --> setOutputs([PHOTO (4032x3024 in JPEG)])
2024-02-19 20:36:08.820 20753-20753 CameraSession           com.carooltruck.dev                  I  Successfully configured Session with 1 outputs for Camera #0!
2024-02-19 20:36:08.820 20753-20753 Persistent...ureSession com.carooltruck.dev                  D  --> setRepeatingRequest(...)
2024-02-19 20:36:08.820 20753-20753 Persistent...ureSession com.carooltruck.dev                  D  --> setIsActive(false)
2024-02-19 20:36:08.820 20753-20753 Persistent...ureSession com.carooltruck.dev                  D  Configure() with isActive: false, ID: 0, device: android.hardware.camera2.impl.CameraDeviceImpl@81ea99d, session: null
2024-02-19 20:36:08.821 20753-20753 Persistent...ureSession com.carooltruck.dev                  I  Creating new session...
2024-02-19 20:36:08.821 20753-28728 CameraManagerGlobal     com.carooltruck.dev                  I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.carooltruck.dev API Level 2
2024-02-19 20:36:08.823 20753-20753 CreateCaptureSession    com.carooltruck.dev                  I  Camera #0: Creating Capture Session #9... (Hardware Level: 3 | Outputs: [PHOTO (4032x3024 in JPEG)])
2024-02-19 20:36:08.823 20753-20753 CreateCaptureSession    com.carooltruck.dev                  I  Using new API (>=28)
2024-02-19 20:36:09.004 20753-28927 CreateCaptureSession    com.carooltruck.dev                  I  Camera #0: Successfully created CameraCaptureSession #9!
2024-02-19 20:36:09.005 20753-28927 CreateCaptureSession    com.carooltruck.dev                  I  Camera #0: CameraCaptureSession #8 has been closed.
2024-02-19 20:36:09.005 20753-20753 Persistent...ureSession com.carooltruck.dev                  D  Stopping repeating request...
2024-02-19 20:36:09.005 20753-28927 Persistent...ureSession com.carooltruck.dev                  I  Session android.hardware.camera2.impl.CameraCaptureSessionImpl@c6d41d3 closed!
2024-02-19 20:36:09.005 20753-20753 Persistent...ureSession com.carooltruck.dev                  D  Configure() done! isActive: false, ID: 0, device: android.hardware.camera2.impl.CameraDeviceImpl@81ea99d, session: android.hardware.camera2.impl.CameraCaptureSessionImpl@380e068
2024-02-19 20:36:09.005 20753-20753 CameraSession           com.carooltruck.dev                  I  configure { ... }: Completed CameraSession Configuration! (isActive: true, isRunning: false)
2024-02-19 20:36:09.005 20753-20753 CameraSession           com.carooltruck.dev                  I  Preview Output destroyed!
2024-02-19 20:36:09.005 20753-20753 SurfaceView             com.carooltruck.dev                  I  remove() com.mrousavy.camera.core.PreviewView{ec964d6 V.E...... ........ 0,-420-1080,1500} Surface(name=SurfaceView - com.carooltruck.dev/com.carooltruck.MainActivity@ec964d6@0)/@0xaaf6c81
2024-02-19 20:36:09.006 20753-20753 CameraView              com.carooltruck.dev                  I  Updating CameraSession...
2024-02-19 20:36:09.007 20753-20753 CameraSession           com.carooltruck.dev                  I  Closing CameraSession...
2024-02-19 20:36:09.007 20753-28926 CameraSession           com.carooltruck.dev                  I  configure { ... }: Waiting for lock...
2024-02-19 20:36:09.007 20753-28926 CameraSession           com.carooltruck.dev                  I  CameraSession is already destroyed. Skipping configure { ... }
2024-02-19 20:36:09.007 20753-20753 CameraSession           com.carooltruck.dev                  I  Destroying session..
2024-02-19 20:36:09.187 20753-28732 CameraManagerGlobal     com.carooltruck.dev                  I  postSingleUpdate device: camera id 0 status STATUS_PRESENT
2024-02-19 20:36:09.187 20753-20753 SurfaceOutput           com.carooltruck.dev                  I  Closing 4032x3024 PHOTO ImageReader..
2024-02-19 20:36:09.188 20753-28732 CameraManagerGlobal     com.carooltruck.dev                  I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.carooltruck.dev API Level 2
2024-02-19 20:36:09.188 20753-20753 CameraSession           com.carooltruck.dev                  I  CameraSession closed!
2024-02-19 20:36:09.188 20753-28929 CameraDevices           com.carooltruck.dev                  I  Camera #0 is now available.

@mrousavy
Copy link
Owner

why tf is that phone not leaving the Precapture state???

@IvanByRool
Copy link
Author

If it helps, on SM-T545 / Android 11.0

Same behavior

Taking photo... Options: {qualityPrioritization=quality, enableAutoStabilization=true, flash=off, enableShutterSound=false}
2024-02-20 09:56:16.177 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo capture 1/3 - capturing 4128x3096 image...
2024-02-20 09:56:16.178 22127-25818 Persistent...ureSession com.carooltruck.dev                  I  Capturing photo...
2024-02-20 09:56:16.178 22127-25818 Persistent...ureSession com.carooltruck.dev                  I  Locking AF/AE/AWB...
2024-02-20 09:56:16.180 22127-25818 Precapture              com.carooltruck.dev                  I  Running precapture sequence... (PrecaptureOptions(modes=[AF, AE, AWB], flash=OFF, pointsOfInterest=[], skipIfPassivelyFocused=true, timeoutMs=5000))
2024-02-20 09:56:16.464 22127-25818 Precapture              com.carooltruck.dev                  I  Precapture current states: AF: PassiveFocused, AE: Converged, AWB: Converged
2024-02-20 09:56:16.464 22127-25818 Precapture              com.carooltruck.dev                  I  AF is already focused, skipping...
2024-02-20 09:56:16.464 22127-25818 Precapture              com.carooltruck.dev                  I  AE is already focused, skipping...
2024-02-20 09:56:16.464 22127-25818 Precapture              com.carooltruck.dev                  I  AWB is already focused, skipping...
2024-02-20 09:56:16.784 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: PassiveFocused, AE: Converged, AWB: Converged
2024-02-20 09:56:16.786 22127-25818 Precapture              com.carooltruck.dev                  I  AF/AE/AWB successfully locked!
2024-02-20 09:56:16.786 22127-25818 PhotoCaptureRequest     com.carooltruck.dev                  I  Using CaptureRequest Template PHOTO...
2024-02-20 09:56:17.192 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo Captured!
2024-02-20 09:56:17.192 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo captured! 4128 x 3096
2024-02-20 09:56:17.203 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo capture 2/3 - waiting for image with timestamp 2075721113417426 now...
2024-02-20 09:56:17.204 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo capture 3/3 - received 4128 x 3096 image, preparing result...
2024-02-20 09:56:17.213 22127-25818 CameraView.takePhoto    com.carooltruck.dev                  I  Successfully captured 4128 x 3096 photo!
2024-02-20 09:56:17.239 22127-25818 CameraView.takePhoto    com.carooltruck.dev                  I  Successfully saved photo to file! /data/user/0/com.carooltruck.dev/cache/mrousavy8816217373587776219.jpg
2024-02-20 09:56:17.314 22127-25822 ReactNativeJS           com.carooltruck.dev                  I  { url: '/configuration/customers/carool/configurations',
                                                                                                      method: 'GET',
                                                                                                      headers: { 'Content-Type': 'application/json' } }
2024-02-20 09:56:17.696 22127-25264 System                  com.carooltruck.dev                  W  A resource failed to call close. 
2024-02-20 09:56:18.233 22127-25262 carooltruck.de          com.carooltruck.dev                  I  NativeAlloc concurrent copying GC freed 12397(781KB) AllocSpace objects, 2(40KB) LOS objects, 49% free, 12MB/25MB, paused 125us total 107.089ms
2024-02-20 09:56:18.251 22127-25820 CreateCaptureSession    com.carooltruck.dev                  I  Camera #0: CameraCaptureSession #6 has been closed.
2024-02-20 09:56:18.251 22127-25820 Persistent...ureSession com.carooltruck.dev                  I  Session android.hardware.camera2.impl.CameraCaptureSessionImpl@4ecb1b0 closed!
2024-02-20 09:56:20.780 22127-22127 Choreographer           com.carooltruck.dev                  W  Frame time is 0.040035 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
2024-02-20 09:56:21.080 22127-22127 ViewRootIm...nActivity] com.carooltruck.dev                  I  ViewPostIme pointer 0
2024-02-20 09:56:21.207 22127-22127 ViewRootIm...nActivity] com.carooltruck.dev                  I  ViewPostIme pointer 1
2024-02-20 09:56:21.231 22127-22127 CameraView              com.carooltruck.dev                  D  Finding view 1575...
2024-02-20 09:56:21.231 22127-22127 CameraView              com.carooltruck.dev                  D  Found view 1575!
2024-02-20 09:56:21.232 22127-25818 CameraView.takePhoto    com.carooltruck.dev                  I  Taking photo... Options: {qualityPrioritization=quality, enableAutoStabilization=true, flash=on, enableShutterSound=false}
2024-02-20 09:56:21.232 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo capture 1/3 - capturing 4128x3096 image...
2024-02-20 09:56:21.232 22127-25818 Persistent...ureSession com.carooltruck.dev                  I  Capturing photo...
2024-02-20 09:56:21.232 22127-25818 Persistent...ureSession com.carooltruck.dev                  I  Locking AF/AE/AWB...
2024-02-20 09:56:21.233 22127-25818 Precapture              com.carooltruck.dev                  I  Running precapture sequence... (PrecaptureOptions(modes=[AF, AE, AWB], flash=ON, pointsOfInterest=[], skipIfPassivelyFocused=false, timeoutMs=5000))
2024-02-20 09:56:21.658 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:21.695 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:21.738 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:21.776 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:21.820 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-02-20 09:56:21.849 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-02-20 09:56:21.884 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:21.916 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:21.951 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:21.983 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.016 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.050 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.082 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.116 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.151 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.182 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.215 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.250 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.284 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.316 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.350 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.383 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.417 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.452 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-02-20 09:56:22.482 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Searching
2024-02-20 09:56:22.517 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.551 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.582 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.616 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.648 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.682 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.715 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.749 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.783 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.816 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.849 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.883 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.916 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.949 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:22.986 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.017 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.050 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.082 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.116 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.148 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.183 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.217 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.248 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.283 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.316 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.349 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.382 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.416 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.451 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.483 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.516 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.549 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.585 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.616 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.649 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.683 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.715 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.750 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.782 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.817 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.849 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.883 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.916 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.950 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:23.983 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.016 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.050 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.082 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.117 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.149 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.184 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.215 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.249 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.283 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.316 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.350 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.384 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.417 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.449 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.482 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.516 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.549 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.583 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.616 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.652 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.683 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.717 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.750 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.784 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.818 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.851 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.886 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.916 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.951 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:24.984 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.017 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.050 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.082 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.121 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.152 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.182 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.217 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.251 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.283 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.318 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.349 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.387 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.418 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.449 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.483 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.519 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.549 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.583 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.618 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.650 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.682 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.718 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.749 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.784 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.818 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.850 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.884 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.915 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.949 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-02-20 09:56:25.984 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:26.021 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:26.049 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:26.084 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:26.117 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:26.153 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:26.184 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:26.220 22127-25818 CameraCaptureSession    com.carooltruck.dev                  I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-02-20 09:56:26.242 22127-2710  CameraCaptureSession    com.carooltruck.dev                  E  Precapture timed out after 5 seconds!
2024-02-20 09:56:26.243 22127-25818 PhotoCaptureRequest     com.carooltruck.dev                  I  Using CaptureRequest Template PHOTO...
2024-02-20 09:56:26.731 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo Captured!
2024-02-20 09:56:26.732 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo captured! 4128 x 3096
2024-02-20 09:56:26.740 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo capture 2/3 - waiting for image with timestamp 2075730658434613 now...
2024-02-20 09:56:26.741 22127-25818 CameraSession           com.carooltruck.dev                  I  Photo capture 3/3 - received 4128 x 3096 image, preparing result...
2024-02-20 09:56:26.743 22127-25818 CameraView.takePhoto    com.carooltruck.dev                  I  Successfully captured 4128 x 3096 photo!
2024-02-20 09:56:26.764 22127-25818 CameraView.takePhoto    com.carooltruck.dev                  I  Successfully saved photo to file! /data/user/0/com.carooltruck.dev/cache/mrousavy4477787017508745630.jpg
2024-02-20 09:56:27.728 22127-25264 System                  com.carooltruck.dev                  W  A resource failed to call close. 
2024-02-20 09:56:29.491 22127-25264 System                  com.carooltruck.dev                  W  A resource failed to call close. 
2024-02-20 09:56:29.852 22127-25823 unknown:ReactNative     com.carooltruck.dev                  W  Attempt to set local data for view with unknown tag: -1
2024-02-20 09:56:29.853 22127-25823 unknown:ReactNative     com.carooltruck.dev                  W  Attempt to set local data for view with unknown tag: -1
2024-02-20 09:56:29.954 22127-22127 SurfaceView             com.carooltruck.dev                  I  onWindowVisibilityChanged(8) false com.mrousavy.camera.core.PreviewView{2d80fd4 V.E...... ........ 0,-466-1200,1667} of ViewRootImpl@2eafd77[MainActivity]
2024-02-20 09:56:29.956 22127-22127 SurfaceView             com.carooltruck.dev                  I  surfaceDestroyed callback.size 2 #2 com.mrousavy.camera.core.PreviewView{2d80fd4 V.E...... ........ 0,-466-1200,1667}
2024-02-20 09:56:29.956 22127-22127 CameraSession           com.carooltruck.dev                  I  PreviewView Surface destroyed! Surface(name=null)/@0xd905540
2024-02-20 09:56:29.956 22127-22127 CameraSession           com.carooltruck.dev                  I  Destroying Preview Output...
2024-02-20 09:56:29.956 22127-22127 CameraSession           com.carooltruck.dev                  I  configure { ... }: Waiting for lock...
2024-02-20 09:56:29.956 22127-22127 CameraSession           com.carooltruck.dev                  I  configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=false, outputsChanged=true, sidePropsChanged=true, isActiveChanged=true)
2024-02-20 09:56:29.957 22127-22127 CameraSession           com.carooltruck.dev                  I  Destroying previous outputs...
2024-02-20 09:56:29.957 22127-22127 SurfaceOutput           com.carooltruck.dev                  I  Closing 4128x3096 PHOTO ImageReader..
2024-02-20 09:56:29.957 22127-22127 CameraView              com.carooltruck.dev                  I  invokeOnStopped()
2024-02-20 09:56:29.959 22127-22127 CameraSession           com.carooltruck.dev                  I  Creating outputs for Camera #0...
2024-02-20 09:56:29.964 22127-22127 CameraSession           com.carooltruck.dev                  I  Adding 4128x3096 Photo Output in JPEG...
2024-02-20 09:56:29.964 22127-22127 Persistent...ureSession com.carooltruck.dev                  D  --> setOutputs([PHOTO (4128x3096 in JPEG)])
2024-02-20 09:56:30.181 22127-25653 CameraManagerGlobal     com.carooltruck.dev                  I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.carooltruck.dev API Level 2
2024-02-20 09:56:30.182 22127-22127 CameraSession           com.carooltruck.dev                  I  Successfully configured Session with 1 outputs for Camera #0!
2024-02-20 09:56:30.182 22127-22127 Persistent...ureSession com.carooltruck.dev                  D  --> setRepeatingRequest(...)
2024-02-20 09:56:30.182 22127-22127 Persistent...ureSession com.carooltruck.dev                  D  --> setIsActive(false)
2024-02-20 09:56:30.182 22127-22127 Persistent...ureSession com.carooltruck.dev                  D  Configure() with isActive: false, ID: 0, device: android.hardware.camera2.impl.CameraDeviceImpl@6e0e26e, session: null
2024-02-20 09:56:30.183 22127-22127 Persistent...ureSession com.carooltruck.dev                  I  Creating new session...
2024-02-20 09:56:30.187 22127-22127 CreateCaptureSession    com.carooltruck.dev                  I  Camera #0: Creating Capture Session #9... (Hardware Level: 3 | Outputs: [PHOTO (4128x3096 in JPEG)])
2024-02-20 09:56:30.187 22127-22127 CreateCaptureSession    com.carooltruck.dev                  I  Using new API (>=28)
2024-02-20 09:56:30.529 22127-25266 BpBinder                com.carooltruck.dev                  I  onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
2024-02-20 09:56:30.530 22127-2554  carooltruck.de          com.carooltruck.dev                  W  Long monitor contention with owner main (22127) at boolean android.hardware.camera2.impl.CameraDeviceImpl.configureStreamsChecked(android.hardware.camera2.params.InputConfiguration, java.util.List, int, android.hardware.camera2.CaptureRequest)(CameraDeviceImpl.java:514) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onResultReceived(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.impl.CaptureResultExtras, android.hardware.camera2.impl.PhysicalCaptureResultInfo[]) for 342ms
2024-02-20 09:56:30.533 22127-25820 carooltruck.de          com.carooltruck.dev                  W  Long monitor contention with owner main (22127) at boolean android.hardware.camera2.impl.CameraDeviceImpl.configureStreamsChecked(android.hardware.camera2.params.InputConfiguration, java.util.List, int, android.hardware.camera2.CaptureRequest)(CameraDeviceImpl.java:514) waiters=1 in void android.hardware.camera2.impl.CameraDeviceImpl$4.run() for 345ms
2024-02-20 09:56:30.533 22127-25820 CreateCaptureSession    com.carooltruck.dev                  I  Camera #0: Successfully created CameraCaptureSession #9!
2024-02-20 09:56:30.533 22127-22127 Persistent...ureSession com.carooltruck.dev                  D  Stopping repeating request...
2024-02-20 09:56:30.534 22127-22127 Persistent...ureSession com.carooltruck.dev                  D  Configure() done! isActive: false, ID: 0, device: android.hardware.camera2.impl.CameraDeviceImpl@6e0e26e, session: android.hardware.camera2.impl.CameraCaptureSessionImpl@cf96812
2024-02-20 09:56:30.534 22127-22127 CameraSession           com.carooltruck.dev                  I  configure { ... }: Completed CameraSession Configuration! (isActive: true, isRunning: false)
2024-02-20 09:56:30.534 22127-22127 CameraSession           com.carooltruck.dev                  I  Preview Output destroyed!
2024-02-20 09:56:30.534 22127-22127 CameraView              com.carooltruck.dev                  I  Updating CameraSession...
2024-02-20 09:56:30.535 22127-22127 CameraSession           com.carooltruck.dev                  I  Closing CameraSession...
2024-02-20 09:56:30.535 22127-22127 CameraSession           com.carooltruck.dev                  I  Destroying session..

@fsteinhanseskb

This comment was marked as spam.

@theopomies

This comment was marked as outdated.

@iliapnmrv
Copy link

iliapnmrv commented Feb 20, 2024

Hey! In case you still need logs. I focused and then tried to leave the screen a few seconds later.
Samsung S9 Android 10

02-20 18:36:14.884  8666  8741 I CameraSession: configure { ... }: Completed CameraSession Configuration! (isActive: true, isRunning: true)
02-20 18:36:14.884  8666  8741 I CameraView: invokeOnStarted()
02-20 18:36:15.105  8666  8743 I CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.ticketscloud.scanner API Level 2
02-20 18:36:15.154  8666  8893 W tscloud.scanne: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
02-20 18:36:15.156  8666  8893 W tscloud.scanne: Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
02-20 18:36:15.161  8666  8893 I tflite  : Replacing 43 out of 43 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 1 partitions for the whole graph.
02-20 18:36:15.163  8666  8893 I tflite  : Replacing 42 out of 47 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 11 partitions for the whole graph.
02-20 18:36:15.165  8666  8893 I native  : I0000 00:00:1708443375.165279    8893 oned_decoder_client.cc:695] barhopper::deep_learning::OnedDecoderClient is created successfully.
02-20 18:36:15.176  8666  8893 W tscloud.scanne: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
02-20 18:36:16.419  8666  8914 W tscloud.scanne: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
02-20 18:36:17.217  8666  8893 W tscloud.scanne: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
02-20 18:36:18.887  8666  8666 I ViewRootImpl@f65fc1c[MainActivity]: ViewPostIme pointer 0
02-20 18:36:18.919  8666  8666 I ViewRootImpl@f65fc1c[MainActivity]: ViewPostIme pointer 1
02-20 18:36:18.920  8666  8666 W unknown:ReactNative: Can't cancel already finished gesture. Is a child View trying to start a gesture from an UP/CANCEL event?
02-20 18:36:18.927  8666  8666 D CameraView: Finding view 649...
02-20 18:36:18.927  8666  8666 D CameraView: Found view 649!
02-20 18:36:18.928  8666  8741 I ROTATE  : Point(129, 270) -> PointF(0.35833332, 0.421875) -> LANDSCAPE_LEFT -> 1701.0, 1940.3999
02-20 18:36:18.928  8666  8741 I PreviewView: Converted layer point Point(129, 270) to camera point Point(1701, 1940)! (LANDSCAPE_LEFT, 4032x3024 -> 360x640)
02-20 18:36:18.928  8666  8741 I PersistentCameraCaptureSession: Focusing to Point(1701, 1940)...
02-20 18:36:18.931  8666  8741 I Precapture: Running precapture sequence... (PrecaptureOptions(modes=[AF, AE], flash=OFF, pointsOfInterest=[Point(1701, 1940)], skipIfPassivelyFocused=false, timeoutMs=3000))
02-20 18:36:19.539  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:19.599  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:19.669  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:19.739  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:19.802  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
02-20 18:36:19.874  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
02-20 18:36:19.941  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:20.005  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:20.073  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
02-20 18:36:20.143  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
02-20 18:36:20.208  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:20.276  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:20.344  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
02-20 18:36:20.410  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
02-20 18:36:20.478  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:20.500  8666  8898 W tscloud.scanne: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
02-20 18:36:20.543  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:20.605  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:20.607  8666  8666 I ViewRootImpl@f65fc1c[MainActivity]: ViewPostIme key 0
02-20 18:36:20.658  8666  8666 I ViewRootImpl@f65fc1c[MainActivity]: ViewPostIme key 1
02-20 18:36:20.669  8666  8741 I CameraCaptureSession: Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
02-20 18:36:20.680  8666  8914 W tscloud.scanne: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
02-20 18:36:20.715  8666  8666 I CameraSession: Closing CameraSession...
02-20 18:36:20.716  8666  8666 I CameraSession: Destroying session..
02-20 18:36:21.068  8666  8743 I CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.ticketscloud.scanner API Level 2
02-20 18:36:21.380  8666  8666 I SurfaceOutput: Closing BarcodeScanner..
02-20 18:36:21.381  8666  8743 I CameraManagerGlobal: postSingleUpdate device: camera id 0 status STATUS_PRESENT
02-20 18:36:21.383  8666  8743 I CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.ticketscloud.scanner API Level 2
02-20 18:36:21.383  8666  8666 I CameraView: invokeOnStopped()
02-20 18:36:21.386  8666  8666 I CameraSession: CameraSession closed!
02-20 18:36:21.393  8666  8745 I CameraDevices: Camera #0 is now available.
02-20 18:36:21.402  8666  8865 D TransportRuntime.SQLiteEventStore: Storing event with priority=VERY_LOW, name=FIREBASE_ML_SDK for destination cct
02-20 18:36:21.409  8666  8865 D TransportRuntime.JobInfoScheduler: Upload for context TransportContext(cct, VERY_LOW, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...
02-20 18:36:21.434  8666  8666 I ViewRootImpl@f65fc1c[MainActivity]: Relayout returned: old=(0,0,1440,2960) new=(0,0,1440,2960) req=(1440,2960)0 dur=6 res=0x1 s={true 545222975488} ch=false
02-20 18:36:21.470  8666  8870 I OpenGLRenderer: doUpdatePositionAsync is called and callVoidMethod
02-20 18:36:21.471  8666  8666 I SurfaceView: onWindowVisibilityChanged(8) false com.mrousavy.camera.core.PreviewView{a40b9b5 V.E...... ........ 0,-84-1440,2476} of ViewRootImpl@f65fc1c[MainActivity]
02-20 18:36:21.472  8666  8666 I SurfaceView: surfaceDestroyed callback.size 2 #2 com.mrousavy.camera.core.PreviewView{a40b9b5 V.E...... ........ 0,-84-1440,2476}
02-20 18:36:21.472  8666  8666 I CameraSession: PreviewView Surface destroyed! Surface(name=null)/@0x4b57820
02-20 18:36:21.472  8666  8666 I CameraSession: Destroying Preview Output...
02-20 18:36:21.472  8666  8666 I CameraSession: configure { ... }: Waiting for lock...
02-20 18:36:21.473  8666  8666 I CameraSession: CameraSession is already destroyed. Skipping configure { ... }
02-20 18:36:21.473  8666  8666 I CameraSession: Preview Output destroyed!
02-20 18:36:21.473  8666  8666 I SurfaceView: remove() com.mrousavy.camera.core.PreviewView{a40b9b5 V.E...... ........ 0,-84-1440,2476} Surface(name=SurfaceView - com.ticketscloud.scanner/com.ticketscloud.scanner.MainActivity@a40b9b5@0)/@0x465d562
02-20 18:36:21.474  8666  8666 I CameraView: Updating CameraSession...
02-20 18:36:21.474  8666  8741 I CameraSession: configure { ... }: Waiting for lock...
02-20 18:36:21.475  8666  8741 I CameraSession: CameraSession is already destroyed. Skipping configure { ... }
02-20 18:36:21.948  8666  8990 E CameraCaptureSession: Precapture timed out after 3 seconds!
02-20 18:36:21.964  8666  8990 E CameraCaptureSession: Error resetting session repeating request..
02-20 18:36:21.964  8666  8990 E CameraCaptureSession: java.lang.IllegalStateException: CameraDevice was already closed
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:2550)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at android.hardware.camera2.impl.CameraDeviceImpl.submitCaptureRequest(CameraDeviceImpl.java:1069)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at android.hardware.camera2.impl.CameraDeviceImpl.setRepeatingRequest(CameraDeviceImpl.java:1127)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest(CameraCaptureSessionImpl.java:297)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at com.mrousavy.camera.extensions.CameraCaptureSession_setRepeatingRequestAndWaitForPrecaptureKt$setRepeatingRequestAndWaitForPrecapture$2$1.invokeSuspend(CameraCaptureSession+setRepeatingRequestAndWaitForPrecapture.kt:130)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
02-20 18:36:21.964  8666  8990 E CameraCaptureSession:  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
02-20 18:36:22.467  8666  8686 I tscloud.scanne: Compiler allocated 4218KB to compile void android.view.ViewRootImpl.performTraversals()
--------- beginning of crash
02-20 18:36:22.559  8666  8741 E AndroidRuntime: FATAL EXCEPTION: mrousavy/VisionCamera.main
02-20 18:36:22.559  8666  8741 E AndroidRuntime: Process: com.ticketscloud.scanner, PID: 8666
02-20 18:36:22.559  8666  8741 E AndroidRuntime: com.mrousavy.camera.core.CaptureTimedOutError: [capture/timed-out] The image capture was aborted because it timed out.
02-20 18:36:22.559  8666  8741 E AndroidRuntime:        at com.mrousavy.camera.extensions.CameraCaptureSession_setRepeatingRequestAndWaitForPrecaptureKt$setRepeatingRequestAndWaitForPrecapture$2$1.invokeSuspend(CameraCaptureSession+setRepeatingRequestAndWaitForPrecapture.kt:128)
02-20 18:36:22.559  8666  8741 E AndroidRuntime:        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
02-20 18:36:22.559  8666  8741 E AndroidRuntime:        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
02-20 18:36:22.559  8666  8741 E AndroidRuntime:        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
02-20 18:36:22.559  8666  8741 E AndroidRuntime:        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
02-20 18:36:22.559  8666  8741 E AndroidRuntime:        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
02-20 18:36:22.559  8666  8741 E AndroidRuntime:        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
02-20 18:36:22.559  8666  8741 E AndroidRuntime:        Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@9ca8947, mrousavy/VisionCamera.main]

@mrousavy
Copy link
Owner

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.

@mrousavy mrousavy reopened this Feb 20, 2024
@missivaeak
Copy link

This error occurred and was fixed by this PR on an AVD emulator on windows, Pixel 7 api 33 if it's any help.

Thank you for the PR.

@vishpatil1999
Copy link

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.

which version of react-native-vision-camera you used

@Dingenis
Copy link

hey @vishpatil1999, I didn't use a specific version, I used the fix/precapture-timeout branch to test if it would solve the problem. This branch is merged into main but there is no version yet that incoperates this fix.

@vishpatil1999
Copy link

hey @vishpatil1999, I didn't use a specific version, I used the fix/precapture-timeout branch to test if it would solve the problem. This branch is merged into main but there is no version yet that incoperates this fix.

can you please explain how to use this branch in react native project

@Dingenis
Copy link

Dingenis commented Feb 28, 2024

@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.

@iliapnmrv
Copy link

@vishpatil1999 this comment may help you #2577 (comment)

@GodwinChibyk
Copy link

this is what solved it for me
photoData = await cameraRef.current?.takePhoto({ enableShutterSound: true, flash: 'off', qualityPrioritization: Platform.OS === 'android' ? 'speed' : 'quality', });

@mrousavy
Copy link
Owner

Yea good point - if you set qualityPrioritization to speed, I will skip the entire AF/AE/AWB precapture sequence and instead just capture as fast as possible. This avoids all the precapture/timeout errors.

@serybva
Copy link

serybva commented Feb 29, 2024

Also happens on OnePlus Nord, Android 12.
Happens only with flash enabled, qualityPrioritization option doesn't solve the issue

@IvanByRool
Copy link
Author

Yea good point - if you set qualityPrioritization to speed, I will skip the entire AF/AE/AWB precapture sequence and instead just capture as fast as possible. This avoids all the precapture/timeout errors.

If we do so then we skip focus right ? I'm not sure about picture quality then. Thx

@mrousavy
Copy link
Owner

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.

@serybva
Copy link

serybva commented Feb 29, 2024

@serybva yes if flash is enabled it will still require the precapture process, so this only works without flash.

Thanks for the explanation
I did test your PR tho and it kinda fixes the timeout issue but flash is disabled juste before taking the picture

@arslanafzal077
Copy link

i'm still facing this issue if flash is on but it works fine when the flash is off

@Fei-au
Copy link

Fei-au commented Mar 7, 2024

same here when have qualityPrioritization: 'speed' on, comment it out will work.

@viniciusyoshioka
Copy link
Contributor

I still having this issue on 3.9.1, but not when trying to take a picture, it happens when trying to focus.

The logs are too similar:

2024-03-08 11:50:59.990 10860-10953 ROTATE                  com.docscan                          I  Point(313, 53) -> PointF(0.86944443, 0.0828125) -> LANDSCAPE_LEFT -> 333.90002, 394.80005
2024-03-08 11:50:59.990 10860-10953 PreviewView             com.docscan                          I  Converted layer point Point(313, 53) to camera point Point(333, 394)! (LANDSCAPE_LEFT, 4032x3024 -> 360x640)
2024-03-08 11:50:59.990 10860-10953 Persistent...ureSession com.docscan                          I  Focusing to Point(333, 394)...
2024-03-08 11:50:59.994 10860-10953 Precapture              com.docscan                          I  Running precapture sequence... (PrecaptureOptions(modes=[AF, AE], flash=OFF, pointsOfInterest=[Point(333, 394)], skipIfPassivelyFocused=false, timeoutMs=3000))
2024-03-08 11:51:00.265 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.299 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.332 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.366 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.399 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:00.431 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:00.465 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:00.498 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.530 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.564 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.601 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.635 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.670 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.704 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.735 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.770 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.802 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:00.836 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:00.869 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.903 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.937 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:00.970 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.004 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.037 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.069 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.103 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.138 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.180 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.191 10860-11601 TrafficStats            com.docscan                          D  tagSocket(121) with statsTag=0x90000, statsUid=-1
2024-03-08 11:51:01.205 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.240 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.268 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.305 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.338 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.370 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.404 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.438 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.470 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.506 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.537 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.571 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.605 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.635 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.671 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.703 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.737 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.770 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:01.804 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.836 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.870 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.901 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.936 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:01.971 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.006 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.037 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.072 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.102 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.137 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.171 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.202 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.235 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.270 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.302 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.337 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.375 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.400 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.438 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.471 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.503 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.541 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.568 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.605 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.634 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.670 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.702 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.736 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.769 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.807 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Converged
2024-03-08 11:51:02.837 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.869 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.902 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Focused, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.937 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:02.970 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:03.003 10860-10953 CameraCaptureSession    com.docscan                          I  Precapture state: AF: Scanning, AE: Precapture, AWB: Searching
2024-03-08 11:51:03.010 10860-11562 CameraCaptureSession    com.docscan                          E  Precapture timed out after 3 seconds!
2024-03-08 11:51:03.045 10860-10953 AndroidRuntime          com.docscan                          E  FATAL EXCEPTION: mrousavy/VisionCamera.main
                                                                                                    Process: com.docscan, PID: 10860
                                                                                                    com.mrousavy.camera.core.CaptureTimedOutError: [capture/timed-out] The image capture was aborted because it timed out.
                                                                                                    	at com.mrousavy.camera.extensions.CameraCaptureSession_setRepeatingRequestAndWaitForPrecaptureKt$setRepeatingRequestAndWaitForPrecapture$2$1.invokeSuspend(CameraCaptureSession+setRepeatingRequestAndWaitForPrecapture.kt:131)
                                                                                                    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
                                                                                                    	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@21da592, mrousavy/VisionCamera.main]
2024-03-08 11:51:03.083 10860-10953 Process                 com.docscan                          I  Sending signal. PID: 10860 SIG: 9
2024-03-08 11:51:03.227  1238-1384  WindowManager           system_server                        E  win=Window{bb2ae0b u0 com.docscan/com.docscan.MainActivity EXITING} destroySurfaces: appStopped=false cleanupOnResume=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0 caller=com.android.server.wm.ActivityRecord.destroySurfaces:6539 com.android.server.wm.ActivityRecord.destroySurfaces:6520 com.android.server.wm.WindowState.onExitAnimationDone:5995 com.android.server.wm.ActivityRecord$$ExternalSyntheticLambda10.accept:2 java.util.ArrayList.forEach:1528 com.android.server.wm.ActivityRecord.onAnimationFinished:8607 com.android.server.wm.ActivityRecord.postApplyAnimation:6252 

Device: SM-G780G
Android: 13

@Charmix
Copy link

Charmix commented Mar 12, 2024

any updates?

@mrousavy
Copy link
Owner

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? 馃槄

yarn add react-native-vision-camera@beta

You might need to increase the compileSdk to the newest Android SDK (34) if you are behind.

@sauravjmedhi
Copy link

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? 馃槄

yarn add react-native-vision-camera@beta

You might need to increase the compileSdk to the newest Android SDK (34) if you are behind.

We were facing a bunch of issues in multiple apps like image orientation, capture issues, etc. Those have been fixed and working in the beta update.

When can we expect a full rollout?

@mrousavy
Copy link
Owner

Great to hear that V4 now works perfectly! If you appreciate my work, please consider 馃挅 sponsoring me on GitHub 馃挅 so I can keep maintaining this library, fixing bugs and building new features! :)

Repository owner deleted a comment from arslanafzal077 Mar 25, 2024
@ChristopherGabba
Copy link

ChristopherGabba commented Mar 30, 2024

+1 On this issue.

How to Replicate:

Phone - Google Pixel 3

Using latest RNVC version to date: v4.0.0beta11

  1. Start Recording a Video with the Front Camera
  2. Initiate a Photo Capture mid-recording
  3. Camera seems to freeze for a second and then throws:

"[capture/timed-out] The image capture was aborted because it timed out."

Works perfectly on all iPhone models. I only have one physical android device so can't confirm on other android models.

Has anyone been able to figure out a workaround for this issue?

@mrousavy
Copy link
Owner

mrousavy commented Apr 2, 2024

@ChristopherGabba this is a different bug the one reported here was happening in my custom precapture sequence on V3, which is no longer present on V4.

But it is quite interesting - this is definitely a Google CameraX bug that should be reported in their issue tracker.

@ChristopherGabba
Copy link

@mrousavy Hey Marc, thanks for the clarification. So just to clarify, taking a photo mid-video is currently not supported on Google Pixels? This seems out there as they are one of the top phone manufacturers out there and that would seem like a relatively basic feature. Do you have a link to a repo I could submit a new bug for (I'm guessing RNVC is not the place for this bug?)

@mrousavy
Copy link
Owner

mrousavy commented Apr 2, 2024

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.

@mrousavy
Copy link
Owner

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;

  • if not, please consider 馃挅 sponsoring me on GitHub 馃挅 to support the development of VisionCamera and thank me for my time spent on fixing bugs and building new features.
  • if you still see this issue, please comment and we can re-open this. But please update your native logs with the native (Xcode/Android Studio) logs from running VisionCamera V4 so I can investigate this.

@mostafaarafa-valeo
Copy link

I was having the same issue, upgraded to 4.0.3
The app stopped crashing but the focus doesn't work on android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.