Status Update
Comments
fu...@google.com <fu...@google.com> #2
fu...@google.com <fu...@google.com>
bu...@google.com <bu...@google.com> #3
Are we getting a crop mode here? Thanks!
si...@gmail.com <si...@gmail.com> #4
Thanks for raising this up. May we know did you set aspect ratio or resolution for Preview use case? And could you also attach the captured image file?
bu...@google.com <bu...@google.com>
fu...@google.com <fu...@google.com> #5
I did not set anything on the Preview use case other than the lens facing.
```
val cameraPreview = Preview(Builder()
.setLensFacing(CameraX.LensFacing.BACK)
.build())
cameraPreview.setOnPreviewOutputUpdateListener {
// Every time the viewfinder is updated, recompute the layout. By removing and re-adding it.
val parent = parent as ViewGroup
parent.removeView(this)
parent.addView(this, 0)
surfaceTexture = it.surfaceTexture
updateTransform()
}
CameraX.bindToLifecycle(lifecycleOwner, cameraPreview, *useCase)
```
fu...@google.com <fu...@google.com> #6
bu...@google.com <bu...@google.com> #7
Hi There,
It's been just over a month and we are clearing out issues without response. If you have any feedback please feel free to reopen or file another issue. Thanks!
bu...@google.com <bu...@google.com>
[Deleted User] <[Deleted User]> #8
There is default aspect ratio custom set to ImageCapture use case but it is not updated to match the new target rotation value.
we...@google.com <we...@google.com> #9
@sidevoice@gmail.com, @debdeep.ganguly@paytm.com
Thanks your info and want to double confirm
The repro steps is the same in
Will try to use CameraXBasic sample to verify on these devices again.
si...@gmail.com <si...@gmail.com> #10
Hi. Unfortunately cannot confirm/deny if the issue is reproducible on the devices from
we...@google.com <we...@google.com> #11
Hi,
Thanks the quick update from @sidevoice@gmail.com. Let's keep monitor and wait for your update.
Will focus on
bu...@google.com <bu...@google.com> #13
bu...@google.com <bu...@google.com>
wu...@google.com <wu...@google.com>
er...@google.com <er...@google.com> #14
Hey Xi,
Did you want to do anything else here?
xi...@google.com <xi...@google.com> #15
Looks like this needs to be handled in core. I can take a look.
xi...@google.com <xi...@google.com> #16
This is no longer reproducible. Probably fixed in a previous version.
Description
CAMERAVIEW VERSION: 1.0.0-alpha10
ANDROID OS BUILD NUMBER: QP1A.191005.007.A3
DEVICE NAME: Pixel XL
DESCRIPTION: CameraView is bound to viewLifecycleOwner and is used to take pictures and save them to file using
takePicture(fileToSaveImageTo, executor, captureCallback) method, where executor is retrieved using ContextCompat.getMainExecutor(requireContext()) method. If I click "back" while takePicture is still in progress
STEPS TO REPRODUCE:
1. Call takePicture(@NonNull File file, @NonNull Executor executor,
@NonNull OnImageSavedCallback callback)
2. Click "back" while picture is being taken
REPRODUCIBILITY: 3 of 5
ADDITIONAL INFORMATION: Stack trace
E/AndroidRuntime: FATAL EXCEPTION: CameraX-camerax_io_0
Process: com.lasership.eliv2, PID: 26217
java.lang.IllegalStateException: Image is already closed
at android.media.Image.throwISEIfImageIsInvalid(Image.java:72)
at android.media.ImageReader$SurfaceImage.getFormat(ImageReader.java:819)
at androidx.camera.core.AndroidImageProxy.getFormat(AndroidImageProxy.java:78)
at androidx.camera.core.ForwardingImageProxy.getFormat(ForwardingImageProxy.java:75)
at androidx.camera.core.ForwardingImageProxy.getFormat(ForwardingImageProxy.java:75)
at androidx.camera.core.ForwardingImageProxy.getFormat(ForwardingImageProxy.java:75)
at androidx.camera.core.ImageSaver.run(ImageSaver.java:105)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Sometimes everuthing's handled fine with just a cancellation exception in logcat:
java.lang.RuntimeException: androidx.camera.core.CameraControl$OperationCanceledException: Cancelled by cancelFocusAndMetering()