capacitor-community / capacitor-community/camera-preview
App crashes when resumed from background with enableZoom: true
- Dominant language
- Java
- Stars
- 227
- Forks
- 185
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When I start the camera with "enableZoom: true", take 1 photo, put the app in the background and then resume it, the app crashes.
**To Reproduce**
1. Start the camera with "enableZoom: true"
2. Put the app in the background and resume it → App does not crash
3. Take a photo
4. Put the app in the background and resume it → App crashes
If one repeats the steps above with "enableZoom: false" the app does not crash.
**Desktop (please complete the following information):**
- OS: Linux Mint
- Browser Chromium
**Smartphone (please complete the following information):**
- Device: Samsung XCover 7 SM-G556B
- OS: Android
Contributor guide
Research direction
Start by reproducing the Android sequence in the issue: enable zoom, take a photo, background the app, and resume it. Trace the camera resume path and zoom handling around that sequence; done means resuming after a captured photo no longer crashes with enableZoom true, while enableZoom false remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100