Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Camera stays in use after unlocking #327

Closed
cl-ement05 opened this issue Jul 13, 2021 · 9 comments
Closed

Camera stays in use after unlocking #327

cl-ement05 opened this issue Jul 13, 2021 · 9 comments

Comments

@cl-ement05
Copy link

Build date

 RQ3A.210605.005
PixelExperience_dipper-11.0-20210620-1100-OFFICIAL

Expected Behavior

The camera should not be used by the system since the unlock *is completed*

Current Behavior

The camera stays in use for a few seconds even after the phone is unlocked so apps like Snapchat bug because that cannot access it.

Possible Solution

I know this bug is kind of tricky and happens to very few people but it happened to me 2 times in a few days.

I believe it is happening because, since I do not let the screen finish its wake up, face unlock can barely start the camera and cannot even start to find my face because the phone actually unlocked. I guess that what happens is that face unlock *did not expect* the unlock so it has to stop its hole process and release the camera, which takes some time enough to make apps bug. 

Steps to Reproduce

1. Set up **both** face unlock **and** fingerprint unlock
2. Put the device to sleep
3. Steps 4 and 5 need to be perform very quickly in order to make the issue *appear*
4. Wake the device up using the power button
5. And unlock the phone using fingerprint right after you pressed the power button. Do not wait for the screen to finish its wake up !! Otherwise the bug will not work 

/device dipper
/version eleven

@GiaSen
Copy link
Collaborator

GiaSen commented Jul 14, 2021

This issue is very hard to reproduce, it happened on beryllium (POCO F1) as well, but happens like once in a month, so we aren't able to log it and fix, there has already been a try to fix from the core dev that improved this issue, but didn't fix it completely. I have tried as well to reproduce as you said, but couldn't get any fail.

@cl-ement05
Copy link
Author

This issue is very hard to reproduce, it happened on beryllium (POCO F1) as well, but happens like once in a month, so we aren't able to log it and fix, there has already been a try to fix from the core dev that improved this issue, but didn't fix it completely. I have tried as well to reproduce as you said, but couldn't get any fail.

Oh I see. If I reproduce it and dump logcat here could it help ?

@GiaSen
Copy link
Collaborator

GiaSen commented Jul 15, 2021

Yes, if you are able to reproduce again

@sarg0
Copy link

sarg0 commented Jul 15, 2021

After ViLTE calls, the camera remains active (camera icon in the statusbar).

@GiaSen
Copy link
Collaborator

GiaSen commented Jul 15, 2021

After ViLTE calls, the camera remains active (camera icon in the statusbar).

you should provide logs

@cl-ement05
Copy link
Author

Should I grep logs (for example only catch logs of a certain process) or should I upload the whole logcat of this error (a 50Mb long text file 😆 so quite large lol) ?

@GiaSen
Copy link
Collaborator

GiaSen commented Jul 23, 2021

the whole logcat is better

@cl-ement05
Copy link
Author

cl-ement05 commented Jul 23, 2021

Alright then here is it. Good luck ;)

Note : I started logging just before pressing the power button and I stopped logging few seconds after unlock

And if you don't find what you are looking for, I did a second logcat (in the exact same conditions). Tell me if it is needed
file2.txt

@Jorg3Lucas
Copy link

closing the issue due to inactivity, if the issue persists, please open a new issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants