Status Update
Comments
le...@google.com <le...@google.com> #2
br...@gmail.com <br...@gmail.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
le...@google.com <le...@google.com> #4
・What is the use case combination. ⇒ There are no special use cases. Just start the camera.
Sorry, I mean the CameraX's use cases such as Preview, ImageCapture, ImageAnalysis and VideoCapture (VideoCapture is still under development and is not currently recommended for production).
And one thing want to confirm is
=> the white image problem happen on the "Preview" screen or saved photo by "ImageCapture"? or both?
Ask this is because a photo icon is in the attached file, it looks like a "Preview". And the reproduce step only indicate "Just start the camera."
Thanks
br...@gmail.com <br...@gmail.com> #5
The CameraX's use case is "Preview".
The white image problem happen on the "Preview" screen.
Best Regards,
br...@gmail.com <br...@gmail.com> #6
I would like to change the version in which the problem is occurring and re-release the app.
[current]
----------------------------------------------------------------------------------------------------------------
def camera_x_version = "1.1.0-alpha05"
implementation "androidx.camera:camera-camera2:$camera_x_version"
implementation "androidx.camera:camera-lifecycle:$camera_x_version"
implementation "androidx.camera:camera-view:1.0.0-alpha25"
----------------------------------------------------------------------------------------------------------------
↓↓↓
[change]
----------------------------------------------------------------------------------------------------------------
def camera_x_version = "1.0.0"
implementation "androidx.camera:camera-camera2:$camera_x_version"
implementation "androidx.camera:camera-lifecycle:$camera_x_version"
implementation "androidx.camera:camera-view:1.0.0-alpha26"
----------------------------------------------------------------------------------------------------------------
Ask the customer to see if the problem reappears.
I will contact you again.
Best Regards,
le...@google.com <le...@google.com> #7
Hi,
Thanks for the update. If you have more findings, let us know.
Here are some questions. Whether this problem occurs in the native camera application? or in other applications have camera function (has to be using
Btw, if the problem only occurs on a specific API version or even a build number of Huawei P20 Lite, the workaround I can currently think of is to use
br...@gmail.com <br...@gmail.com> #8
I asked the customer to check with the app that changed the version of CameraX to 1.0.0, but the Preview screen became whitish overall.
The answer to the question is that it doesn't occur in native camera applications. Then, after opening the application using camaraX, open the native camera application and return to the application using camaraX, the preview will not turn white and will return to the normal display.
Thank you for the workaround for CameraControl # setExposureCompensationIndex.
I don't know what the proper value is, so it seems difficult to deal with.
Best Regards,
le...@google.com <le...@google.com> #9
"Then, after opening the application using camaraX, open the native camera application and return to the application using camaraX, the preview will not turn white and will return to the normal display."
This is strange. Does the customer still encounter this problem? Or did the problem disappear after that?
br...@gmail.com <br...@gmail.com> #10
wu...@google.com <wu...@google.com>
le...@google.com <le...@google.com> #11
Hi
Could you provide your APK for us to test?
and could customer provide the build number of device?
br...@gmail.com <br...@gmail.com> #12
> Could you provide your APK for us to test?
OK.
How can I provide it? If you want to add it to the closed test (α version) tester, please contact me with your email address.
> and could customer provide the build number of device?
I will check it.
Best Regards,
br...@gmail.com <br...@gmail.com> #13
>> and could customer provide the build number of device?
> I will check it.
The answer to the build number is: 9.1.0.316
Best Regards,
le...@google.com <le...@google.com> #14
Hi
Thanks for provide the application link and the build number.
I can reproduce it now on Huawei P20 Lite (ANX2J) Android 9.0 by your application.
The issue should be a device specific issue when meet below conditions
- Back camera.
- The surface resolution of Preview is
400x400
or720x720
. - The
is larger than about 3.37 orzoom ratio is larger than about 0.94.linear zoom
We will have a workaround to resolve this issue on this device.
Besides, may I know how does your app set up the Preview
use case? (which result in the resolution 400x400
).
i.e
Preview preview = new Preview.Builder()
// ?
.build();
br...@gmail.com <br...@gmail.com> #15
Hi
Thank you for your confirmation.
The preview use cases in the app are as follows.
val preview = Preview.Builder().setTargetResolution(Size(400, 400)).build()
Best Regards,
le...@google.com <le...@google.com> #16
We are trying to remove the problematic resolution 400x400
and 720x720
from the candidate list on this device to avoid this issue.
Then your app will get another resolution of Preview (probably 544x408
) on this device.
If you are using
I believe your app should already handle that because not every device will get 400x400
for Preview. For example, your app run on Pixel 5 get 640x480
for Preview.
If you have concern about the workaround please let me know. Thank you.
br...@gmail.com <br...@gmail.com> #17
Thank you for your support.
ap...@google.com <ap...@google.com> #18
Branch: androidx-main
commit 5e10f725b58fbe871ba3b62688baaa5afe1c63a0
Author: leo huang <leohuang@google.com>
Date: Thu Jul 29 01:42:03 2021
Fix Preview screen is too bright on Huawei P20 Lite
The issue is device specific and occurs when the following conditions are met
* Back camera.
* The surface resolution of Preview is 400x400 or 720x720.
* The zoom ratio is larger than about 3.37 or linear zoom is larger than about 0.94.
The patch excludes the problematic resolutions by extending ExcludedSupportedSizesQuirk.
Relnote: "Fixed Preview screen is too bright on Huawei P20 Lite. This problem only occurs when certain special Preview resolutions are used together with a large zoom in value."
Bug: 192129158
Test: Maunal test on Huawei P20 Lite
Change-Id: Idefce5b35d6a2c275b08da127bb7a7f278216e23
M camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/compat/quirk/ExcludedSupportedSizesQuirk.java
M camera/camera-camera2/src/test/java/androidx/camera/camera2/internal/compat/workaround/ExcludedSupportedSizesContainerTest.java
le...@google.com <le...@google.com> #19
The solution will be included in next release.
br...@gmail.com <br...@gmail.com> #20
Unfortunately, the fixed camerax seems to have reproduced the problem.
I've heard from users that the camera started normally a couple of times after updating the app, but when it started two days later it turned whitish.
The phenomenon is that unlike before, when the camera is started, it becomes a normal color for a moment, and then it turns white.
The version of CAMERAX applied to the app is 1.1.0-alpha07.
[Attachment description]
Screenshot_1.jpg : Screenshot recreating the problem
Screenshot_2.jpg : Start the camera of the application (PeePooNote) ⇒ Start another application from the standby screen ⇒ Return to the camera of the application,
Since the camera of the application starts normally, I took a picture of the outside
Screenshot_3.jpg : Launch the app's camera from the same angle as Screenshot_2.jpg
Screenshot_3.jpg is pure white, and when the camera of the app starts up normally for a moment, it turns white, so does the camera sensor capture the outside brightness?
Best Regards,
le...@google.com <le...@google.com> #21
Hi,
Take a quick look on it. I updated the app to latest (PeePooNote 1.3.7).
I still get the original issue. Dump the camera configuration by adb shell dumpsys media.camera
Stream[0]: Output
Consumer name: ImageReader-3456x3456f100m2-23426-1
State: 4
Dims: 3456 x 3456, format 0x21, dataspace 0x8c20000
Max size: 12648450
Combined usage: 864691129529008131, max HAL buffers: 4
Frames produced: 0, last timestamp: 0 ns
Total buffers: 6, currently dequeued: 0
Stream[1]: Output
Consumer name: SurfaceView - jp.spl.peepoonote/jp.spl.peepoonote.CameraActivity#0
State: 4
Dims: 400 x 400, format 0x22, dataspace 0x0
Max size: 0
Combined usage: 864691129529010435, max HAL buffers: 7
Frames produced: 600, last timestamp: 2104751830445000 ns
Total buffers: 8, currently dequeued: 7
Stream[1] is the preview stream and still uses the problematic resolution Dims: 400 x 400
.
From the message
"The version of CAMERAX applied to the app is 1.1.0-alpha07
."
Not sure if it is a typo? since the latest version is 1.1.0-alpha08
.
br...@gmail.com <br...@gmail.com> #22
I thought this fix was in alpha07.
I will update to alpha08!
br...@gmail.com <br...@gmail.com> #23
Thank you for your support.
Description
CAMERA APPLICATION NAME AND VERSION: PeePooNote Version:1.3.5
ANDROID OS BUILD NUMBER: 不明
DEVICE NAME: HUAWEI p20 lite
DESCRIPTION:
Camera2 APIからCameraX APIに移行したところ、アプリの利用者から「画像が全体に白っぽくなるようになった」と連絡がありました。
複数の機種で確認しましたが現象は発生せず、HUAWEI p20 liteでのみ発生しているようです。
調査したところ、バージョン 1.1.0-alpha04 で修正された
「Samsung Galaxy S7 で、ImageCapture を使用してフラッシュをオン / 自動にした状態で撮影した画像が白っぽくなる問題を修正しました。」
と似た現象だと思います。
LIST ANY EXPERIMENTAL FEATURES: トップ画面からカメラを起動する
STEPS TO REPRODUCE:
1.トップ画面からカメラを起動する
OBSERVED RESULTS:添付ファイルの通り、画像が白っぽくなる
EXPECTED RESULTS:正常な画像が保存されること
REPRODUCIBILITY: 特定の機種のみ100%
ADDITIONAL INFORMATION: 添付の画像を参照
CODE FRAGMENTS (this will help us troubleshoot your issues):特になし