OpenCamera locks up for 10 seconds after initial display of GUI before displaying preview.
This happens when OpenCamera has been removed from recent apps or if it has not been run for some period of time.
The screen locks for 10 seconds, then a green camera icon appears in the upper right corner, then changes to a green dot. At this point the camera operates normally.
This behavior occurs with Camera2 API selected. It does not occur if "Original Camera API" is selected in OpenCamera settings.
I have not found any other settings that affect the behavior. Turning off location or other options does not change anything.
This behavior started somewhere around 1 year ago.
It can be repeatably reproduced on my phone by swiping away OpenCamera in the recent apps list and then launching OpenCamera.
Device info:
Open Camera v1.53.1
Code: 90
Package: net.sourceforge.opencamera
Android API version: 34
Device manufacturer: Google
Device model: Pixel 5a
Display size: 1080x2138
Display metrics: 1080x2138
Current camera ID: 0
No. of cameras: 2
Multi-camera?: false
Camera API: None
Camera orientation: 0
Photo mode: Standard
Min zoom factor: 0.62
Max zoom factor: 7.0
Preview resolutions: 1920x1080, 1920x960, 1440x1080, 1280x960, 1280x720, 1024x768, 800x600, 720x480, 640x480, 640x360, 352x288, 320x240, 176x144
Preview resolution: 1440x1080
Photo resolutions: 4032x3024, 4000x3000, 4032x2268, 3840x2160, 4000x2000, 3264x2448, 3264x1836, 2592x1944, 2688x1512, 2560x1280, 2048x1536, 1920x1440, 1920x1080, 1600x1200, 1920x960, 1440x1080, 1280x960, 1280x720, 1024x768, 800x600, 720x480, 640x480, 640x360, 352x288, 320x240
Photo resolution: 4032x3024
Video resolutions: 3840x2160, 4000x2000, 3264x1836, 2592x1944, 2688x1512, 2560x1280, 2048x1536, 1920x1440, 1920x1080, 1600x1200, 1920x960, 1440x1080, 1280x960, 1280x720, 1024x768, 800x600, 720x480, 640x480, 640x360, 352x288, 320x240, 176x144
Video quality: 6
Video frame width: 0
Video frame height: 0
Video bit rate: 0
Video frame rate: 0
Video capture rate: 0.0
Video high speed: false
Video capture rate factor: 1.0
Auto-level?: Available
Auto-level enabled?: false
Face detection?: Available
RAW?: Available
HDR?: Available
Panorama?: Available
Gyro sensors?: Available
Expo?: Available
Expo compensation?: Available
Exposure compensation range: -24 to 24
Manual ISO?: Available
ISO range: 55 to 7111
Manual exposure?: Available
Exposure range: 13611 to 10170373248
Manual WB?: Available
WB temperature: 1000 to 15000
Optical stabilization?: Available
Optical stabilization enabled?: false
Video stabilization?: Available
Video stabilization enabled?: false
Tonemap curve?: Available
Tonemap max curve points: 64
Can disable shutter sound?: Available
Camera view angle: 65.59413 , 49.487762
Flash modes: flash_off, flash_auto, flash_on, flash_torch, flash_red_eye
Focus modes: focus_mode_auto, focus_mode_macro, focus_mode_locked, focus_mode_infinity, focus_mode_manual2, focus_mode_continuous_picture, focus_mode_continuous_video
Color effects: None
Scene modes: auto, action, portrait, landscape, night, night-portrait, theatre, beach, snow, sunset, fireworks, sports, party, candlelight
White balances: auto, manual, incandescent, fluorescent, warm-fluorescent, daylight, cloudy-daylight, twilight, shade
Magnetic accuracy?: -1
Using SAF?: false
Save Location: OpenCamera
Save Location SAF:
Parameters: None
Anonymous
An additional note:
In the debug listing in Settings:About, the Camera API sometimes shows "None", as above, and sometimes shows "Camera2 (Android L). I have not been able to correlate this with slow or fast launches.
The next version of Open Camera will contain a performance improvement for starting up with Camera2 API - although 10 seconds it a lot longer than I can reproduce, so I don't know if this is something else.
Great. I will test as soon as it is available.
I tested operation with version 1.54.1 (2025-04-07) and there does not seem to be any change. It takes more than 10 seconds to launch with camera2 API and it is less than 0.5 sec with the original API.
Thanks for the update. I have identified an ANR in my Google Play stats showing a Camera2 startup issue affecting a small number of devices, including the Pixel 5a. I should be able to put a workaround in for the next version (unfortunately that will be 1.56, not the 1.55 that just went out), so hopefully that will be what you're seeing.