[ 
https://issues.apache.org/jira/browse/CB-7641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14286001#comment-14286001
 ] 

Irena Shaigorodsky edited comment on CB-7641 at 1/22/15 3:19 PM:
-----------------------------------------------------------------

Cordova 4.2.0
ngCordova
iPhone 6: iOS 8.1.2 - issue still happening every other picture taken. 

* $cordovaCamera.cleanup(); is called after each image is processed (copied 
over) or if action is canceled

          var options = {
            quality: 10,
            destinationType: Camera.DestinationType.FILE_URI,
            sourceType: Camera.PictureSourceType.CAMERA,
            allowEdit: false,
            encodingType: Camera.EncodingType.JPEG,
            saveToPhotoAlbum: false,
            targetWidth: 2592,
            targetHeight: 3872
          };
        $cordovaCamera.getPicture(options).then(fnImageSuccess, fnImageError);

Jan 21 13:31:12 XXX-iPhone MyApp[2493] <Error>: assertion failed: 12B440: 
libxpc.dylib + 51947 [E83F44AC-48AF-3662-929E-FB7538661BB3]: 0x7d
Jan 21 13:32:47 XXX-iPhone MyApp[2507] <Warning>: THREAD WARNING: ['Camera'] 
took '3914.886963' ms. Plugin should use a background thread.
Jan 21 13:32:48 XXX-iPhone MyApp[2507] <Warning>: 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.

Also, switching to DATA_URL and removing cleanup does not make any difference



was (Author: ishaigor):
Cordova 4.2.0
ngCordova
iPhone 6: iOS 8.1.2 - issue still happening every other picture taken. 

*** $cordovaCamera.cleanup(); is called after each image is processed (copied 
over) or if action is canceled

          var options = {
            quality: 10,
            destinationType: Camera.DestinationType.FILE_URI,
            sourceType: Camera.PictureSourceType.CAMERA,
            allowEdit: false,
            encodingType: Camera.EncodingType.JPEG,
            saveToPhotoAlbum: false,
            targetWidth: 2592,
            targetHeight: 3872
          };
        $cordovaCamera.getPicture(options).then(fnImageSuccess, fnImageError);

Jan 21 13:31:12 XXX-iPhone MyApp[2493] <Error>: assertion failed: 12B440: 
libxpc.dylib + 51947 [E83F44AC-48AF-3662-929E-FB7538661BB3]: 0x7d
Jan 21 13:32:47 XXX-iPhone MyApp[2507] <Warning>: THREAD WARNING: ['Camera'] 
took '3914.886963' ms. Plugin should use a background thread.
Jan 21 13:32:48 XXX-iPhone MyApp[2507] <Warning>: 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.

Also, switching to DATA_URL and removing cleanup does not make any difference


> [iOS 8][Camera] Newly Taken Picture Previews are Black
> ------------------------------------------------------
>
>                 Key: CB-7641
>                 URL: https://issues.apache.org/jira/browse/CB-7641
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Camera
>    Affects Versions: 3.3.0
>         Environment: iOS 8 on an iPhone 6
>            Reporter: Nathan Beigel
>
> When making the following call using iOS 8 on an iPhone 6 then taking a new 
> picture, the XCode console display the 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."* and the image preview screen becomes completely black:
> {noformat}
> navigator.camera.getPicture(
>       function() { ... }, 
>       function() { ... }, 
>       { 
>               quality: 40,
>               destinationType: Camera.DestinationType.DATA_URL,
>               sourceType : Camera.PictureSourceType.CAMERA,
>               allowEdit : false,
>               encodingType: Camera.EncodingType.JPEG,
>               correctOrientation: true,
>               targetWidth: 600,
>               targetHeight: 800,
>               saveToPhotoAlbum: true
>       }
> );
> {noformat}
> The "Re-Take" and "Use Photo" buttons at the bottom of the screen appear and 
> function properly though.
> I'm using the latest camera plugin code base located at: 
> https://github.com/apache/cordova-plugin-camera
> This behavior is not occurring using the same code with iOS 7.1 on an iPhone 
> 5.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to