-
Notifications
You must be signed in to change notification settings - Fork 989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Camera Plugin Crashes on iOS with processAssertionWasInvalidated
#2897
Comments
Update: Confirmed this problem also exists on pre-2.0 versions of Capacitor. |
I just tested the repo on my test iPhone 6 (12.4.6) and have no issue with the picture capture. |
This is a known issue on the native component used by the Camera plugin ( |
Is there the possibility of using a difference component to UIImagePickerController? |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
npx cap doctor
output:💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 2.1.0
@capacitor/core: 2.1.0
@capacitor/android: 2.1.0
@capacitor/electron: 2.1.0
@capacitor/ios: 2.1.0
Installed Dependencies:
@capacitor/android not installed
@capacitor/electron not installed
@capacitor/cli 2.1.0
@capacitor/ios 2.1.0
@capacitor/core 2.1.0
Found 0 Capacitor plugins for ios:
[success] iOS looking great! 👌
Affected Platform(s)
Current Behavior
Take a picture using the Camera plugin via
getPhoto()
, tap "Use Photo", app crashes intermittently (oftentimes within 3 attempts of taking the photo). XCode console logs include:Expected Behavior
The photo should be captured successfully
Sample Code or Sample Application Repo
https://github.com/seanharr11/capacitor-camera-crash
Reproduction Steps
Tab2
swipes back in if the app is able to recover.Other Technical Details
npm --version
output:6.9.0
node --version
output:v12.3.1
pod --version
output (iOS issues only):1.8.4
Other Information
This seems to be more reproducible on older phones, namely our iPhone 7+ test device. It has been occurring in our production mobile app across many different version of iPhones.
The text was updated successfully, but these errors were encountered: