Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25392

iPad Crash: Taking a photo will cause app to crash after the first successful attempt

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Story Points:
      0
    • Sprint:
      2018 Sprint 15 SDK

      Description

      Nothing special with my code...this is hit the first time and it works...the second..app crashes

      Ti.Media.showCamera({
        success: function(event) {
          // called when media returned from the camera
          Ti.API.info('Our type was: ' + event.mediaType);
          if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {
       
            var photo = event.media;
            if (photo != null) {
       
            }
          } else {
       
          }
        },
        cancel: function() {
       
        },
        error: function(error) {
          // called when there's an error
          var a = Titanium.UI.createAlertDialog({
            title: 'Camera'
          });
          if (error.code == Titanium.Media.NO_CAMERA) {
            a.setMessage('Please run this test on device');
          } else {
            a.setMessage('Unexpected error: ' + error.code);
          }
          a.show();
        },
        saveToPhotoGallery: false,
        allowEditing: false,
        mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO]
      });
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              peterladis Peter Ladis
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5879
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration