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
Comments
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.. |
It was normal fast with capture with previous versions. Anything I can do with it to help you debug ? thx And yes it always happens 2024-02-16 17:49:43.196 13778-16387 Precapture com.carooltruck.dev I AF is already focused, skipping... No need to re-focus I'm guessing |
Same behaviour on samsung SM-T545 / Android 11.0 |
Happens in Pixel 6 (Android 14) too. After switching from PS: Only the front camera times out |
Same here, only with the front camera. Tested on the Samsung SM-A536B / Android 14 |
Same problem with the back camera. Works fine on beta-2. |
Created a PR, can you try if this fixes the issue for you guys? #2586 |
According to the Android Developer Documentation on the AE State values, the 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? |
hey! for me #2586 did not resolve the issue. Xiaomi Redmi 9T |
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. |
@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? |
@mrousavy "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 do i do something wrong? |
Well if that actually uses the branch then that should be fine, I never used gitpkg. |
I'm in a meeting today, I'll test this on both devices tonight. |
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. Let me know if you need more. Camera Device
Device
|
why tf is that phone not leaving the Precapture state??? |
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.. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as outdated.
This comment was marked as outdated.
Hey! In case you still need logs. I focused and then tried to leave the screen a few seconds later.
|
Whoops yea it is not entirely fixed, only for some phones. The problem still exists because some other phones simply stay in I'm reading androidx/CameraX source code as we speak to figure out how they did it. |
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. |
which version of react-native-vision-camera you used |
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 |
@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. |
@vishpatil1999 this comment may help you #2577 (comment) |
this is what solved it for me |
Yea good point - if you set |
Also happens on OnePlus Nord, Android 12. |
If we do so then we skip focus right ? I'm not sure about picture quality then. Thx |
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. |
Thanks for the explanation |
i'm still facing this issue if flash is on but it works fine when the flash is off |
same here when have qualityPrioritization: 'speed' on, comment it out will work. |
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:
Device: SM-G780G |
any updates? |
Hey everybody! I just released a new V4 beta (v4.0.0-beta.7) where I fixed a bunch of issues! 馃挭馃殌 Can you test that and see if that fixes the issue for you? 馃槄
You might need to increase the |
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? |
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! :) |
+1 On this issue. How to Replicate: Phone - Google Pixel 3 Using latest RNVC version to date: v4.0.0beta11
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? |
@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. |
@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?) |
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. |
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;
|
I was having the same issue, upgraded to 4.0.3 |
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
Relevant log output
Camera Device
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
The text was updated successfully, but these errors were encountered: