You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to get GPUImage working in a new project, built in Xcode 5 and compiled with the iOS 7 SDK GM. I've set up my project in the exact same way as instructed in the readme (added GPUImage to project, added library and frameworks, added target dependency) and I'm trying to use the sample in the readme for filtering:
However, when running on a regular 32-bit device (obviously camera input doesn't work in the simulator) on either iOS 6/7 I receive the following crash:
Your problem is that you're initializing your GPUImageVideoCamera instance within that method, but not hanging onto it afterward. Under ARC (which I assume is enabled for this project), this will lead to the immediate deallocation of the camera instance, as well as the filter attached to it, once that method has finished executing.
You need to make your camera instance an instance variable with a strong reference for it to last past this method. Otherwise, it won't last and you'll get the above error upon its deallocation while frames are still being processed in the filter pipeline.
I've been trying to get GPUImage working in a new project, built in Xcode 5 and compiled with the iOS 7 SDK GM. I've set up my project in the exact same way as instructed in the readme (added GPUImage to project, added library and frameworks, added target dependency) and I'm trying to use the sample in the readme for filtering:
However, when running on a regular 32-bit device (obviously camera input doesn't work in the simulator) on either iOS 6/7 I receive the following crash:
I specifically seem to hit the following line:
(line 307, GPUImageVideoCamera.m).
The main problem seems to occur when it hits
dispatch_semaphore_dispose
on Thread 6.Are there any obvious reasons why this is occurring?
The text was updated successfully, but these errors were encountered: