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

iOS8: Titanium.Media.showCamera unexpected behaviour on AdHoc distribution

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.5.0, Release 4.0.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      iOS 8.1
      TiSDK Alpha V2 - 3.5.0.v20141205222614

    • Story Points:
      13
    • Sprint:
      2014 Sprint 25 SDK

      Description

      Issue Description

      Invoking Ti.Media.showCamera works perfect if we do a command line build of our app on device. If we take the provided sample app and then publish AdHoc then it fails.

      Steps to reproduce

      1. Launch sample app (Run As > Device)
      2. Hit Camera Button to Take a photograph
      3. Hit Use Photo and monitor logs
      4. Image Dimensions are correctly returned (running App on device iPhone5s):

      [INFO] : Image Captured, Dims 2448,3264 Aspect Ratio: 0.75
      [INFO] : Image Captured, Dims 2448,3264 Aspect Ratio: 0.75

      5. Repeat all steps under Ad Hoc mode.
      6. Logs are slightly different now:

      [ERROR] : assertion failed: 12A366: libxpc.dylib + 71820 [4BC9CA3D-4DEE-314C-ADBF-53BDCEEFE45C]: 0x7d
      [ERROR] : Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
      [ERROR] : Image Captured, Dims: undefined,undefined Aspect Ratio: NaN
      [ERROR] : Image Captured, Dims: undefined,undefined Aspect Ratio: NaN

      Test Case

      (function() {
      	Titanium.Media.showCamera({
      		success : function(event) {
      			var capturedImage = event.media;
      			Ti.API.info('Image Captured, Dims: ' + event.media.width + ',' + event.media.height + " Aspect Ratio: " + event.media.width / event.media.height);
      			Ti.API.info('Image Captured, Dims: ' + capturedImage.width + ',' + capturedImage.height + " Aspect Ratio: " + capturedImage.width / capturedImage.height);
      		},
      		cancel : function() {
      		},
      		error : function(error) {
      		},
      		saveToPhotoGallery : false,
      		allowEditing : false,
      		mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
      		showControls : true,
      		autohide : false
      	});
      })(); 
      

      Device Output (Ad Hoc Distribution)

      iPhone 4 iOS7.1

      Dec 16 09:46:46 lAlO wifid[15] <Notice>:
      Dec 16 09:46:51 lAlO Super.Simple[208] <Warning>: [INFO] Image Captured, Dims: 1936,2592 Aspect Ratio: 0.7469135802469136
      Dec 16 09:46:51 lAlO Super.Simple[208] <Warning>: [INFO] Image Captured, Dims: 1936,2592 Aspect Ratio: 0.7469135802469136

      iPhone 5s iOS 8.1

      Dec 16 10:36:41 iPhone Super.Simple[253] <Warning>: [INFO] Image Captured, Dims: undefined,undefined Aspect Ratio: NaN
      Dec 16 10:36:41 iPhone Super.Simple[253] <Warning>: [INFO] Image Captured, Dims: undefined,undefined Aspect Ratio: NaN

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                egomez Eduardo Gomez (Inactive)
                Reviewer:
                Jon Alter
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration