Cannot access camera when app returns to foreground

Bug #1669905 reported by Mgc Lude
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
UBports Fairphone 2
Invalid
Medium
Unassigned

Bug Description

Camera shows no permissins granted. Seems random. Pops window to cancel or change permissions under settings, but options are greyed out (applications allowed to access camera under settings for security and privacy). Also blocks access for other apps using the led flash, like Torch or Morse Sender.

Revision history for this message
Mgc Lude (mgc.lude) wrote :

Build r241

Revision history for this message
Mgc Lude (mgc.lude) wrote :

Same bug persists on r243.

Revision history for this message
Mgc Lude (mgc.lude) wrote :

Still present on build r246

Changed in ubports-fp2:
status: New → Confirmed
Revision history for this message
Tom Rhodes (tom-rhodes) wrote :

same on r273

Revision history for this message
Mgc Lude (mgc.lude) wrote :

Same on r275

Revision history for this message
Dalton Durst (universalsuperbox) wrote :

I can confirm that this happens on a fresh, newly wiped device running devel_rc-proposed r291. The Camera app throws the "Cannot access camera" whenever it tries to resume its access.

To reproduce:
Open the Camera app
Confirm that you can use the viewfinder and do camera-y things
Move to a different app (even moving to the app switcher works) so the app releases the camera
Move back to the camera app
Get the "Cannot access camera" Error.

Workaround:
Close the app by swiping it away
Reopen the app

Someone in the Telegram channel guessed this is because the app does not release the camera properly when it is deactivated.

There are some times when the camera will resume while the error is visible. Clicking Cancel on the dialog box then lets you continue using the camera.

summary: - No camera permissions
+ Cannot access camera when app returns to foreground
Revision history for this message
Mgc Lude (mgc.lude) wrote :

Also impacts other apps that use the Led Flash, such as Torch or Morse Sender.

Changed in ubports-fp2:
importance: Undecided → Medium
Revision history for this message
Dalton Durst (universalsuperbox) wrote :

Attached is the relevant part of the kernel log (dmesg). A few errors from msm.

Revision history for this message
Dalton Durst (universalsuperbox) wrote :

Attached is the logcat from the device during a series of: Open camera, switch from camera, switch back to camera.

Revision history for this message
Johannah Sprinz (neothethird) wrote :
Changed in ubports-fp2:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.