A bad case about camerax

336 views
Skip to first unread message
Assigned to wenhu...@google.com by wuj...@google.com

ouyangshaocong ouyang

unread,
Sep 14, 2020, 6:24:20 AM9/14/20
to Android CameraX Discussion Group

Hi, All, 

I found a device that cannot support camerax, although it's android 5.1.1 api 22.

Bellow are the details about the device:
Build.MANUFACTURER: Vivo
Build.BRAND: Vivo
Build.MODEL: Vivo Y51A
Build.VERSION.SDK_INT: 22
Build.VERSION.RELEASE: 5.1.1

Here are the things: (we test on CameraXBasic Demo)
1、first time I launch app, it preview very well. Once I click switch button, it totally gives me a dark screen, and nothing I can do except relaunch it.

2、first time I launch app, I click capture button, nothing change, no photo, no response.

please let me know if there are any progresses. thx.

Here is the link: https://github.com/android/camera-samples

yours

Wenhung Teng

unread,
Sep 14, 2020, 7:07:14 AM9/14/20
to Android CameraX Discussion Group, ouyangs...@gmail.com
Hi, thanks for your report.

We did a try on the latest CameraXBasic app. It works fine with the API 22 simulator.
Can you 
(1) Provide some log during the issue happen? It looks like the spec of the Vivo Y51A should be able to support CameraX, we might need some further info to analysis the issue.
(2) Please have a try on the original camera app on the device, and try to switch the lens facing of the camera)? We are wondering to know if the camera device is still alive.

Thanks!


ouyangs...@gmail.com 在 2020年9月14日 星期一下午6:24:20 [UTC+8] 的信中寫道:

ouyangshaocong ouyang

unread,
Sep 14, 2020, 9:05:55 AM9/14/20
to Android CameraX Discussion Group, wenhu...@google.com, ouyangshaocong ouyang
Well, It does work fine with api 22, that Vivo Y51A is the only one device we can find until now.

The original camera app on the device works well also, and it can photo and switch back/front camera and the lens facing works fine.

I will attach some  log tmr. thx for your supporting.

Wenhung Teng

unread,
Sep 14, 2020, 10:02:16 AM9/14/20
to Android CameraX Discussion Group, ouyangs...@gmail.com, Wenhung Teng
Thanks for the information! 
Sorry that I don't have the Y51A on hand,  but I'm also looking for some more detail about the Vivo Y51A.
Any log or information (if possible) will be appreciated!


ouyangs...@gmail.com 在 2020年9月14日 星期一下午9:05:55 [UTC+8] 的信中寫道:

ouyangshaocong ouyang

unread,
Sep 14, 2020, 10:29:01 PM9/14/20
to Android CameraX Discussion Group, wenhu...@google.com, ouyangshaocong ouyang
Here comes the logs.

The photo log is the procedure that I launch demo app and then click shot button.
The switch log is the procedure that I launch demo app and then click switch button.

and nothing more.

I wish these can help you.
camerax_switch.log
camerax_photo.log

Wenhung Teng

unread,
Sep 15, 2020, 9:30:00 AM9/15/20
to Android CameraX Discussion Group, ouyangs...@gmail.com, Wenhung Teng
Thanks for your log!
The camera framework seems to always fail with the error code 12.
We will investigate more about this symptom. Will update further information to you if we find a way to workaround this.

ouyangs...@gmail.com 在 2020年9月15日 星期二上午10:29:01 [UTC+8] 的信中寫道:

ouyangshaocong ouyang

unread,
Sep 16, 2020, 5:25:40 AM9/16/20
to Android CameraX Discussion Group, wenhu...@google.com, ouyangshaocong ouyang
Okay for all.
If you need any further help,  please let me know.

Reply all
Reply to author
Forward
0 new messages