camera_camera icon indicating copy to clipboard operation
camera_camera copied to clipboard

Big delay between taking pic and when onFile triggered (focus timeout)

Open notsag-dev opened this issue 1 year ago • 2 comments

Hello! I'm getting a big delay between the moment the button to take the pic is pressed and the onFile event is triggered (around 3-4 seconds). The apparent issue is that it's trying to auto focus and the focus times out. I'm getting around 200 debug messages regarding to focus, then focusing times out.

55
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 2 | aeState: 2
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 1 | aeState: 1
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 2 | aeState: 2
18
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 1 | aeState: 1
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 2 | aeState: 2
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 1 | aeState: 1
120
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 2 | aeState: 2

Right after I get:

W/CameraCaptureCallback(32028): Focus timeout, moving on with capture

The issue isn't just that. Because while it's trying to focus the user doesn't get any feedback and the experience is weird because the camera keeps going and moving, it feels it didn't take the picture at all. It would be nice to have an event too for when the button is pressed in case this happens so at least a spinner can be shown while processing.

I'm testing on Android, on a Google Pixel 6.

Any help would be appreciated!

notsag-dev avatar Aug 24 '23 15:08 notsag-dev

i have the same promblem, but i havent found a solution yet

lauritaila avatar Sep 12 '23 15:09 lauritaila

What phone are you testing on @lauritaila?

notsag-dev avatar Sep 13 '23 02:09 notsag-dev