Skip to main content

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.


Comments

  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.

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...