For me, this problem ONLY happened on the same iPhone 4 core, and when I try to capture a still image using AVCaptureSessionPresetHigh.
I tried AVCaptureSessionPresetPhoto and this question disappeared. But I do not need a full-sized photograph, so I went for another solution.
I put captureStillImageAsynchronouslyFromConnection in the main queue. Something like that
dispatch_async(sessionQueue) { // do whatever before capturing dispatch_async(dispatch_get_main_queue) { captureStillImageAsynchronouslyFromConnection { // do whatever after capturing } } }
I donβt know why this problem exists, and Iβm not sure why it can avoid it. But I hope this can help someone.
source share