BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.24k stars 4.61k forks source link

GPUImage crashes when going to background #1981

Open BigSauce opened 9 years ago

BigSauce commented 9 years ago

When playing or capturing a video using GPUImage, the app crashes when the app goes into background (detected via UIApplicationDidEnterBackgroundNotification) because GPUImage still attempts to perform its work while the app is in background.

BigSauce commented 9 years ago

It appears that this crash occurs if the app enters background while blurring a view using GPUImage (before the blur is actually applied).

brandonscript commented 9 years ago

You could try adding:

runSynchronouslyOnVideoProcessingQueue(^{
});

to your applicationWillResignActive

BigSauce commented 9 years ago

Thanks will try that.