Fixed
Status Update
Comments
er...@google.com <er...@google.com>
ni...@google.com <ni...@google.com>
ap...@google.com <ap...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
er...@google.com <er...@google.com>
ni...@google.com <ni...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
Description
androidx.camera:camera-view:1.0.0-alpha09
androidx.camera:camera-camera2:1.0.0-beta02
ANDROID OS BUILD NUMBER: QQ2A.200305.002
DEVICE NAME: Pixel 3
LIST ANY EXPERIMENTAL FEATURES: ExperimentalGetImage
REPRODUCIBILITY: 100%
CODE FRAGMENTS:
cameraView.takePicture(cameraExecutor, new ImageCapture.OnImageCapturedCallback() {
@Override
@ExperimentalGetImage
public void onCaptureSuccess(@NonNull ImageProxy imageProxy) {
Image image = imageProxy.getImage();
// THIS IS THE MAGIC LINE: without that you cant use <image>
image.getPlanes()[0].getBuffer().rewind(); // <----------
// now i can use image buffer
super.onCaptureSuccess(imageProxy);
}
});
buffer is already used ? is strange that i need to rewind buffer before usage, i lost 4 hours before understand it