Fixed
Status Update
Comments
er...@google.com <er...@google.com> #2
Note for dev team to check: If this isn't an error, CameraX should not log.
ch...@google.com <ch...@google.com> #3
Hello,
Thanks for filing this issue, this issue can be safely ignored - we have a todo for removing unnecessarily logging. This should be fixed shortly.
If there are other issues, please let us know.
va...@gmail.com <va...@gmail.com> #5
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 404aab04fc5ede6314fa93ff7b62431f9646e0e9
Author: Trevor McGuire <trevormcguire@google.com>
Date: Mon Apr 20 15:49:47 2020
Switch "Failed to set already detached use case online" to debug log
This can occur if the use case is detached before the camera's thread
has a chance to add the use case to the capture session. This should
not affect normal operation, so this error log message can be changed
to a debug log.
Relnote: "Converted error log related to detached use case to a debug log on Camera2CameraImpl."
Test: ./gradlew bOS
Bug: 154422490
Change-Id: I1a565e55af6e63792287221f8cbd9e7747fd6875
M camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/Camera2CameraImpl.java
https://android-review.googlesource.com/1291317
Branch: androidx-master-dev
commit 404aab04fc5ede6314fa93ff7b62431f9646e0e9
Author: Trevor McGuire <trevormcguire@google.com>
Date: Mon Apr 20 15:49:47 2020
Switch "Failed to set already detached use case online" to debug log
This can occur if the use case is detached before the camera's thread
has a chance to add the use case to the capture session. This should
not affect normal operation, so this error log message can be changed
to a debug log.
Relnote: "Converted error log related to detached use case to a debug log on Camera2CameraImpl."
Test: ./gradlew bOS
Bug: 154422490
Change-Id: I1a565e55af6e63792287221f8cbd9e7747fd6875
M camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/Camera2CameraImpl.java
ch...@google.com <ch...@google.com> #6
Can this log error message also be safely ignored?
Failed to set already detached use case online
va...@gmail.com <va...@gmail.com> #7
Sorry, I meant this one:
Failed to set already detached use case active
er...@google.com <er...@google.com>
ap...@google.com <ap...@google.com> #8
Yes, it can be safely ignored. I will switch it to a debug log as well.
ap...@google.com <ap...@google.com> #9
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 0cff18a13097a05812b60c8bfb7968baf79464b4
Author: Trevor McGuire <trevormcguire@google.com>
Date: Mon Apr 27 11:52:06 2020
Switch "Failed to set already detached use case active" to debug log
This can occur if the use case is detached before the camera's thread
has a chance react to the use case being marked active. This should
not affect normal operation, so this error log message can be changed
to a debug log.
Bug: 154422490
Test: ./gradlew bOS
Change-Id: I2a99128be65c03af955753c230cb798789f8769f
M camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/Camera2CameraImpl.java
https://android-review.googlesource.com/1296396
Branch: androidx-master-dev
commit 0cff18a13097a05812b60c8bfb7968baf79464b4
Author: Trevor McGuire <trevormcguire@google.com>
Date: Mon Apr 27 11:52:06 2020
Switch "Failed to set already detached use case active" to debug log
This can occur if the use case is detached before the camera's thread
has a chance react to the use case being marked active. This should
not affect normal operation, so this error log message can be changed
to a debug log.
Bug: 154422490
Test: ./gradlew bOS
Change-Id: I2a99128be65c03af955753c230cb798789f8769f
M camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/Camera2CameraImpl.java
[Deleted User] <[Deleted User]> #10
Here is a workaround if you use camera-view alpha 22
implementation("androidx.camera:camera-view:1.0.0-alpha22") {
exclude group:'androidx.camera' // FIX to avoid pulling camera-core and lifecycle 1.1.0-alpha02
}
ap...@google.com <ap...@google.com> #11
Project: platform/frameworks/support
Branch: androidx-main
commit 6d6266e2e32472ce4545e23d399b3bb92472a526
Author: Trevor McGuire <trevormcguire@google.com>
Date: Sat Mar 13 16:04:54 2021
Ensure view testapp is built against pinned deps
The camera-view testapp is currently depending on camera-testing, so we
need to ignore the transitive camera-core project dependency so the
version of camera-core doesn't get pulled up at dependency resolution.
Dependencies verified with
./gradlew camera:integration-tests:camera-testapp-view:dependencies
--configuration debugRuntimeClasspath
Bug: 181599852
Test: ./gradlew camera:integration-tests:camera-testapp-view:connectedCheck
Change-Id: Ib25937df0dd735ab498a7b9fc8d2675879547caf
M camera/integration-tests/viewtestapp/build.gradle
https://android-review.googlesource.com/1634999
Branch: androidx-main
commit 6d6266e2e32472ce4545e23d399b3bb92472a526
Author: Trevor McGuire <trevormcguire@google.com>
Date: Sat Mar 13 16:04:54 2021
Ensure view testapp is built against pinned deps
The camera-view testapp is currently depending on camera-testing, so we
need to ignore the transitive camera-core project dependency so the
version of camera-core doesn't get pulled up at dependency resolution.
Dependencies verified with
./gradlew camera:integration-tests:camera-testapp-view:dependencies
--configuration debugRuntimeClasspath
Bug: 181599852
Test: ./gradlew camera:integration-tests:camera-testapp-view:connectedCheck
Change-Id: Ib25937df0dd735ab498a7b9fc8d2675879547caf
M camera/integration-tests/viewtestapp/build.gradle
ch...@google.com <ch...@google.com> #13
Hi,
Yes, the issue has been fixed in version 1.1.0-alpha03
.
Description
Please note: This component is for the CameraX API used in Jetpack. Please DO NOT file Pixel Camera issues here.
Please describe your issue and include details such as the version of CameraX you are using and any relevant logs related to your issue.
// If at all possible, capture an Android logcat (https://developer.android.com/studio/command-line/logcat ) when you're experiencing the issue, preferably while the camera is still active.
I use CameraController that worked well in RC02. But if I upgrade to RC03 I get "androidx.camera.core.initializationexception: java.lang.runtimeexception: error retrieving camcorder profile params" when I create the CameraController. Simply when I attach the listener I get this exception:
cameraController = new LifecycleCameraController(context); Futures.addCallback(cameraController.getInitializationFuture(), new FutureCallback<Void>() { @Override public void onFailure(Throwable t) { is called instead of onSuccess.
CAMERAX VERSION (ex - 1.0.0-alpha07)
CAMERA APPLICATION NAME AND VERSION: (Settings > Apps > (app name) > version)
ANDROID OS BUILD NUMBER: (Settings > About > Build number)
DEVICE NAME: (Nexus 5X, Samsung S6, etc) Samsung Note 10+
DESCRIPTION:
LIST ANY EXPERIMENTAL FEATURES: (As an example - @ExperimentalCamera2Interop)
STEPS TO REPRODUCE: 1. 2. 3.
OBSERVED RESULTS:
EXPECTED RESULTS:
REPRODUCIBILITY: (5 of 5, 1 of 100, etc)
ADDITIONAL INFORMATION:
CODE FRAGMENTS (this will help us troubleshoot your issues):