cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramon Macias (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-10340) iOS app crashes often after taking photo or simply loading camera
Date Wed, 13 Jan 2016 05:43:39 GMT
Ramon Macias created CB-10340:
---------------------------------

             Summary: iOS app crashes often after taking photo or simply loading camera
                 Key: CB-10340
                 URL: https://issues.apache.org/jira/browse/CB-10340
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS, Plugin Camera
    Affects Versions: 5.3.3
         Environment: ios 9.2
            Reporter: Ramon Macias


I am building a hybrid app using
- cordova-plugin-camera 2.0.0
- Cordova 5.3.2
- iOS 9.2 on iPhone 6 (64GB)
- Ionic 1.1

My options are:
{code:javascript}
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
                };
{code}

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.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message