Apache Cordova
  1. Apache Cordova
  2. CB-391

navigator.camera.getPicture() crashing on iOS after memory warning

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.7.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      2 x iPhone 4S, iOS 5.1. Can't replicate on simulator or iHone 3GS with iOS 5.0.1

      Description

      getPicture has become very unstable on previously working code, affecting both Phonegap 1.4.1 and Cordova 1.5.0. Contributing factors, since last working build I have upgraded Xcode to 4.3.2 (from whatever the last version was) and iPhone to iOS 5.1 from 5.0.1.

      Memory warning is received on displaying camera, app crashes when you select 'use'. Restarting device usually resolves problem for a limited amount of time. Problem is intermittent and sometime difficult to replicate. Selecting from Photo library works fine.

      Options used:

      var options =

      { quality: 40, sourceType: Camera.DestinationType.FILE_URI }

      ;

      See https://groups.google.com/forum/?hl=en?hl%3Den&fromgroups#!topic/phonegap/ZLbw0s4JREs for more details.

      See attached for example crash log.

        Issue Links

          Activity

            People

            • Assignee:
              Shazron Abdullah
              Reporter:
              Richard Kimber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development