14

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.

Community
  • 1
  • 1
Alan
  • 796
  • 9
  • 26
  • The warnings are not related to the error and are not catastrophic. The image picker uses two stage rotation, but is typically used between multiple controllers, probably your current view controller and the UIImagePickerController. I have seen another thread about this warning and while there were a lot of theories about it, no one posted a usable workaround. While there might be a workaround found, Apple should update the picker to conform to its normal usage. – Peter DeWeese Aug 30 '10 at 15:16
  • I am having the exact same error. Using iOS 4.1. No solution yet. – karim Oct 21 '10 at 10:31
  • I have solved this, read my edited post – Alex Terente May 20 '11 at 07:10
  • Yeah, I'm getting it as well. I also haven't found any real solution for it yet. I've tried just about everything I can think of and I'm getting some EXC_BAD_ACCESS right after it which I'm sure it probably related, but if anyone has found out more about this error, it sure would be nice to get a resolution to it. – Indy-Jones Aug 18 '10 at 03:09
  • Regarding the error - have a look here – DenTheMan Jul 23 '10 at 18:02
  • Alan, did you resolve the issue with didFinishPickingMediaWithInfo being called twice? I'm experiencing the same thing in my app. I've tracked it down to showing a UIProgressView that I pop up over the UIImagePickerController UI while I do some processing in a second thread. I don't (and don't want to) dismiss the UIImagePickerController while I process the image. This didn't happen in 3.0 and doesn't happen on the 4.0 Simulator, only 4.0 device. – mvalentiner Jul 16 '10 at 15:32

1 Answers1

1

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.

Alex Terente
  • 12,006
  • 5
  • 51
  • 71