Fixed
Status Update
Comments
wu...@google.com <wu...@google.com> #2
Hi, thanks for the bug. Just want to clarify which CameraX version are you using?
wu...@google.com <wu...@google.com>
wi...@gmail.com <wi...@gmail.com> #3
1.1.0-beta01
we...@google.com <we...@google.com> #4
Hi, thanks to report this symptom, we are preparing a fix to re-send the request after the output stream is changed.
And I'd like to share another way to workaround the issue, you can call Preview#setSurfaceProvider(null) to stop the preview output stream.
It will stop the repeating request without re-configure the capture pipeline, so probably this would be better performance.
And I'd like to share another way to workaround the issue, you can call Preview#setSurfaceProvider(null) to stop the preview output stream.
It will stop the repeating request without re-configure the capture pipeline, so probably this would be better performance.
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
commit acd0942ba065de6045a8097183a430e553a1ee8b
Author: WenHung_Teng <wenhungteng@google.com>
Date: Fri Jun 10 10:57:28 2022
Fix the take picture failure issue with unbind preview
The capture request is cancelled during the
re-creation of the pipeline.
Store the requests and resend after a new pipeline
is created.
Relnote: "Fix the issue to take picture with unbind preview"
Bug: 235119898
Test: ImageCaptureTest on lab devices
Change-Id: I1d3a2ac7a96e6692c7e3a939cac6e313311f3fc4
M camera/camera-core/src/main/java/androidx/camera/core/ImageCapture.java
M camera/integration-tests/coretestapp/src/androidTest/java/androidx/camera/integration/core/ImageCaptureTest.kt
https://android-review.googlesource.com/2122353
Branch: androidx-main
commit acd0942ba065de6045a8097183a430e553a1ee8b
Author: WenHung_Teng <wenhungteng@google.com>
Date: Fri Jun 10 10:57:28 2022
Fix the take picture failure issue with unbind preview
The capture request is cancelled during the
re-creation of the pipeline.
Store the requests and resend after a new pipeline
is created.
Relnote: "Fix the issue to take picture with unbind preview"
Bug: 235119898
Test: ImageCaptureTest on lab devices
Change-Id: I1d3a2ac7a96e6692c7e3a939cac6e313311f3fc4
M camera/camera-core/src/main/java/androidx/camera/core/ImageCapture.java
M camera/integration-tests/coretestapp/src/androidTest/java/androidx/camera/integration/core/ImageCaptureTest.kt
we...@google.com <we...@google.com>
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
commit 03a4e4907b05a6764a5f1ea8977d86a67d7f224a
Author: WenHung_Teng <wenhungteng@google.com>
Date: Tue Jun 21 16:32:17 2022
Fix the take picture failure issue with unbind preview
The capture request is cancelled during the
re-creation of the pipeline.
Store the requests and resend after a new pipeline
is created.
Relnote: "Fix the issue to take picture with unbind preview"
Bug: 235119898
Test: ImageCaptureTest on lab devices
Change-Id: Ie70b6c269a1142e664eab5166acbb0f1788271c1
M camera/camera-core/src/main/java/androidx/camera/core/ImageCapture.java
M camera/integration-tests/coretestapp/src/androidTest/java/androidx/camera/integration/core/ImageCaptureTest.kt
https://android-review.googlesource.com/2133056
Branch: androidx-main
commit 03a4e4907b05a6764a5f1ea8977d86a67d7f224a
Author: WenHung_Teng <wenhungteng@google.com>
Date: Tue Jun 21 16:32:17 2022
Fix the take picture failure issue with unbind preview
The capture request is cancelled during the
re-creation of the pipeline.
Store the requests and resend after a new pipeline
is created.
Relnote: "Fix the issue to take picture with unbind preview"
Bug: 235119898
Test: ImageCaptureTest on lab devices
Change-Id: Ie70b6c269a1142e664eab5166acbb0f1788271c1
M camera/camera-core/src/main/java/androidx/camera/core/ImageCapture.java
M camera/integration-tests/coretestapp/src/androidTest/java/androidx/camera/integration/core/ImageCaptureTest.kt
Description
CAMERAX VERSION (ex - 1.1.0-beta01) ANDROID OS BUILD NUMBER: Android 7.1.1
DEVICE NAME: (Meizu 15)
DESCRIPTION: i want to freeze preview when taking picture so i call
cameraProvider?.unbind(preview)
imageCapture?.takePicture(builder, Executors.newSingleThreadExecutor(), callback)
OBSERVED RESULTS: freeze preview but can not take picture
EXPECTED RESULTS: freeze preview and take picture
REPRODUCIBILITY: 5 of 5
ADDITIONAL INFORMATION:
if i add this line:
cameraProvider?.unbind(preview)
here:i've got:
and little different ImageCaptureException with my personal implementation, but same result (just stop preview and then take picture)
but if i wait 50 ms for take picture, all works:
cameraProvider?.unbind(preview)
postDelayed( imageCapture?.takePicture.. , 50)
so. how i can correct freeze preview for user when i taking picture?
am i need to
this both solutions does not look like really correct