Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird error: wait_fences: failed to receive reply: 10004003

I know that there are other questions that deal with this error, but those answers don't help me any. I was wondering if anyone knew the exact cause, and if no one does, here is the code:

-(void) imagePickerController : (UIImagePickerController *) picker
        didFinishPickingImage : (UIImage *) image
                  editingInfo : (NSDictionary *) editingInfo {

    self.imageView.image = image;
    [picker dismissModalViewControllerAnimated:YES];
    [picker release];
    //[self myNextResponder];
}

This error: wait_fences: failed to receive reply: 10004003, appears right after this method exits. I have googled all over, and cannot figure it out.

like image 470
Adrian Sarli Avatar asked Sep 21 '09 00:09

Adrian Sarli


2 Answers

It appears that you used the picker object as the caller of present/dismissModalViewController. The documentation recommends using the "parent" view controller.

For the "parent" I used self.navigationController (since it won't be going anywhere)

The implementation of my picker delegate's cancel method looks like this...

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
    // make sure the picker doesn't try to access the soon to die delegate
    picker.delegate = nil;

    [self.navigationController dismissModalViewControllerAnimated:YES];
    [self.navigationController popViewControllerAnimated:YES];
}
like image 160
dugloon Avatar answered Oct 10 '22 12:10

dugloon


Simply comment the line

//[picker release];

and try

like image 38
Biranchi Avatar answered Oct 10 '22 11:10

Biranchi