Status Update
Comments
ni...@google.com <ni...@google.com> #2
Looks like this is the same as an existing internally tracked issue (
er...@google.com <er...@google.com> #3
I've made
hu...@gmail.com <hu...@gmail.com> #4
Thanks - it is an important issue to me, that is causing a poor user experience.
hu...@gmail.com <hu...@gmail.com> #5
Hi there - is there anything I can do to speed up the repair of this issue? (paid support etc)
er...@google.com <er...@google.com> #6
Hi there,
This has been duplicated to issue tracker item 145956416 (also externally accessible), however CameraX does not have any paid support as we are an open source product - our team is looking into the issue and you can find updated on the duplicate issue. Thanks
fu...@google.com <fu...@google.com> #7
Its possible to work around this issue by catching the exception when accessing the ImageProxy in the app's analysis method. When the exception occurs, the app can consider that image as no longer valid.
hu...@gmail.com <hu...@gmail.com> #8
Its possible to work around this issue by catching the exception when accessing the ImageProxy in the app's analysis method. When the exception occurs, the app can consider that image as no longer valid.
Thanks for responding. Please note the stacktrace - my app isn't in it. However, perhaps I could create a custom Executor and catch there?
ni...@google.com <ni...@google.com> #9
It looks like you could probably use
ap...@google.com <ap...@google.com> #10
Branch: androidx-master-dev
commit e8c0fe0ed7331933c1277535245d9de33c2303c1
Author: Franklin Wu <nilknarfuw@google.com>
Date: Tue May 12 15:29:25 2020
Fixed issue where ImageProxyReader in ImageAnalysis is closed prematurely
Added the SafeCloseImageReaderProxy which provides a method to wait
until all acquired ImageProxy are closed before finally closing the
underlying ImageReaderProxy.
Switched ImageAnalysis to use SafeCloseImageReaderProxy and also cleaned
up ImageAnalysis to using lambdas.
Relnote: "Fixes crash in ImageAnalysis where the ImageProxy is accessed
after the ImageReaderProxy has been closed. This also makes it so that
all ImageProxy received by the Analyzer must be closed before the
ImageReaderProxy will be closed."
Bug:
Test: androidx.camera.camera2.ImageAnalysisTest
androidx.camera.core.ImageAnalysisTest
Change-Id: I4b29996bcaf7549df6ababf080ea367326ba0dd3
A camera/camera-core/src/androidTest/java/androidx/camera/core/SafeCloseImageReaderProxyTest.java
M camera/camera-core/src/main/java/androidx/camera/core/ImageAnalysis.java
A camera/camera-core/src/main/java/androidx/camera/core/SafeCloseImageReaderProxy.java
M camera/camera-testing/src/main/java/androidx/camera/testing/fakes/FakeImageReaderProxy.java
ni...@google.com <ni...@google.com> #11
Marking this as fixed, because the duped bug is actually a super set of the this one. The change that fixes this particular issue has been merged. Will be in the 1.0.0-beta04 release.
hu...@gmail.com <hu...@gmail.com> #12
Confirming this as fixed having been applied to my builds and tested.
hu...@gmail.com <hu...@gmail.com> #13
Thanks also for attending to it!
Description
CAMERAX VERSION: 1.0.0-beta03
CAMERA APPLICATION NAME AND VERSION: Newly built app not publically available
ANDROID OS BUILD NUMBER: TB-X104F_S100045_200103_ROW
DEVICE NAME: Lenevo E10
DESCRIPTION:
On occasion, on pausing an activity, I notice the following message:
I'm using the image analysis use case which is initialised for the very first
onResume
like so:Within the analyser, I'm calling the Firebase ML Face Detector.
LIST ANY EXPERIMENTAL FEATURES: None known.
STEPS TO REPRODUCE: Cannot share this code, and unfortunately hard to reproduce. The problem is intermittent.
OBSERVED RESULTS: Seeing CameraX report a
IllegalStateException
EXPECTED RESULTS: Would expect CameraX to cater for this situation.
REPRODUCIBILITY: (5 of 5, 1 of 100, etc) 1 of 10
ADDITIONAL INFORMATION: None.
CODE FRAGMENTS (this will help us troubleshoot your issues): Hopefully, there's enough.