You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/09 19:24:48 UTC

[GitHub] [cordova-plugin-file] bojanbizjak opened a new issue #428: iOS 14 - Image with file size 0

bojanbizjak opened a new issue #428:
URL: https://github.com/apache/cordova-plugin-file/issues/428


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   After calling navigator.camera.getPicture iOS requires permission for camera and geolocation. After taking and using the photo, the plugin should return the image path with the correct image file.
   
   ### What does actually happen?
   After calling navigator.camera.getPicture iOS requires permission for camera and geolocation. After taking and using the photo, an empty file is created, in my case file: ///var/mobile/Containers/Data/Application/DBF0DD91-F8CD-45BE-963E-6B5F90A8F1CB/tmp/cdv_photo_1602269141.jpg. I have listed the errors that occur in the information section.
   
   
   ## Information
   
   2020-10-09 20:45:30.039295+0200 GisMatrix[2261:898438] [Camera] Failed to read exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}
   2020-10-09 20:45:41.142260+0200 GisMatrix[2261:898438] [GisMatrix] getCFDataBytesAtOffset:1211: : *** ERROR *** CGImageSource was created with data size: 490184 - current size is only: 0
   2020-10-09 20:45:41.142354+0200 GisMatrix[2261:898438] [GisMatrix] getCFDataBytesAtOffset:1219: : *** ERROR *** requested range: 0-4096 - is outside input CFData range (0-0)
   2020-10-09 20:45:41.144811+0200 GisMatrix[2261:898438] [GisMatrix] addImageFromSource:2548: image 0 of source is nil
   2020-10-09 20:45:41.145032+0200 GisMatrix[2261:898438] [GisMatrix] finalizeDestination:3019: image destination must have at least one image
   
   
   ### Command or Code
               navigator.camera.getPicture((imageURI: string) => {
                   console.log(imageURI);
                   // file:///var/mobile/Containers/Data/Application/DBF0DD91-F8CD-45BE-963E-6B5F90A8F1CB/tmp/cdv_photo_1602269141.jpg
               }, {
                   quality: 100, 
                   destinationType: Camera.DestinationType.FILE_URI,
                   sourceType: Camera.PictureSourceType.CAMERA,
                   correctOrientation: true,
                   saveToPhotoAlbum: false,
                   encodingType: Camera.EncodingType.JPEG
               });
   The same error also occurs with a combination of parameters: quality: 100 and correctOrientation: false or quality: 50 and correctOrientation: false / true.
   
   ### Environment, Platform, Device
   iPhone 7 Plus
   iOS 14.0.1
   Xcode: 12.0.1
   
   ### Version information
   
   ```
       "cordova-ios": "6.1.1",
       "cordova-plugin-add-swift-support": "^2.0.2",
       "cordova-plugin-androidx-adapter": "^1.1.1",
       "cordova-plugin-camera": "^5.0.0",
       "cordova-plugin-compat": "^1.2.0",
       "cordova-plugin-device": "^2.0.3",
       "cordova-plugin-dialogs": "^2.0.2",
       "cordova-plugin-file": "^6.0.2",
       "cordova-plugin-media-capture": "^3.0.3",
       "cordova-plugin-network-information": "^2.0.2",
       "cordova-plugin-screen-orientation": "^3.0.2",
       "cordova-plugin-statusbar": "^2.4.3",
       "cordova-plugin-video-editor": "^1.1.3",
       "cordova-plugin-whitelist": "^1.3.4",
       "cordova-plugin-x-socialsharing": "^6.0.2",
       "cordova-sqlite-storage": "^5.0.1",
       "cordova.plugins.diagnostic": "^6.0.2",
       "es6-promise-plugin": "^4.2.2"
   ```
   
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [cordova-plugin-file] bojanbizjak closed issue #428: iOS 14 - Image with file size 0

Posted by GitBox <gi...@apache.org>.
bojanbizjak closed issue #428:
URL: https://github.com/apache/cordova-plugin-file/issues/428


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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