Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10340

iOS app crashes often after taking photo or simply loading camera

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 5.3.3
    • None
    • cordova-plugin-camera
    • ios 9.2

    Description

      I am building a hybrid app using

      • cordova-plugin-camera @ 2.0.0
      • Cordova @ 5.3.2
      • Cordova iOS @ 3.9.2
      • iOS 9.2 on iPhone 6 (64GB)
      • Ionic Lib @ 1.1

      My options are:

      var options = {
                          quality: 50,
                          destinationType: Camera.DestinationType.FILE_URI,
                          sourceType: Camera.PictureSourceType.CAMERA,
                          encodingType: Camera.EncodingType.PNG,
                          saveToPhotoAlbum: false, 
                          correctOrientation: true,
                          targetWidth: 700,
                          targetHeight: 700
                      };
      

      This only started happening recently when i switched from DATA_URL to FILE_URI. I have gone back and forth trying to figure out the root cause, but even after going back to DATA_URL the app is still crashing.

      The app crashes 99% of the time when loading the camera running the mobile app in Xcode (Sometimes I don't even have to take picture). After the app crashes, an Xcode alert pops up and says "Lost connection to "Ramon's iPhone".

      The app crashes about 25% of the time when running the app without Xcode. There are times when it goes on a streak of crashing repeatedly for several minutes.

      If i don't use the app for an hour or so, and then I try taking a photograph, the likelihood of the app crashing increases to about 80% of the time.

      If there are other ways to provide more info, please advise and I'm happen to help.

      Attachments

        Issue Links

          Activity

            People

              omefire Omar Mefire
              ramonmacias Ramon Macias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: