-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS 14 - Image file size 0. #674
Comments
I have same issue |
Same here. I have pretty much same plugin configuration as @bojanbizjak. iPhone 11 Pro |
Same Issue here. Happens only with permission fir geolocation turned on. |
I am also facing the same issue. I am using |
I am also facing the same issue. I am using |
Is anyone able to test the new 14.1 beta builds? This could be an iOS bug, too. |
Can any of you provide a sample app where it can be reproduced? |
Hi @jcesarmobile , |
That's not the issue discussed here, that has always happened, the native component doesn't release the memory properly and crash the app if you take a lot of pictures. The issue reported here is iOS 14 specific and says that the size of the image is 0, not that the app crash. |
@jcesarmobile Here is a sample app, if you take out line 52 in config.xml, for the geolocation preference it works, if you keep it in it doesn't. |
I had the same problem when I used GetLocation. config.xml Use this Fork version, the problem is no longer there. This has not been merged. |
fix works, thanks @jcesarmobile! |
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
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
Checklist
The text was updated successfully, but these errors were encountered: