Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone iOS 4.0 Camera FigCreateCGImageFromJPEG returned -1

Since I updated to 4.0, when I take a photo with my App using UIImagePickerController I get the following error output:

*** ERROR: FigCreateCGImageFromJPEG returned -1. Input (null) was 711733 bytes.

I still get the image returned and can continue as normal, but does any body know what and why I get this error. I also get the following warnings that could be related:

Using two-stage rotation animation. To use the smoother single-stage animation, this >application must remove two-stage method implementations.

Using two-stage rotation animation is not supported when rotating more than one view >controller or view controllers not the window delegate

Any information would be of great help. Thanks in advance.

like image 568
Alan Avatar asked Jun 29 '10 09:06

Alan


1 Answers

I also have problems with UIImagePickerController on iOS 4.0, It works on simulator on 3.0 but on 4.0 i have a crash the delegate method - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info is called twice, and if i build on the phone and use camera it works ok.

Edit:

I have solved this problem long time ago by adding a global static int and when i enter the delegate method I test for that static int the I increment the value of it. And in the way the delegate is executed only once.

like image 124
Alex Terente Avatar answered Oct 17 '22 21:10

Alex Terente