GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Memory Leak

Open Rahish opened this issue 5 years ago • 1 comments

Hello Team GPUImage ,

@BradLarson currently I'm facing memory issue, where whenever I am going to implement any filter on a video having a size around 60 to 80mb or more, then the code will crash and I'll get this message "Message from debugger: Terminated due to memory issue".

Rahish avatar Sep 14 '18 11:09 Rahish

我也是遇到了这个问题,在代理方法didOutputSampleBuffer 中调用代理时遇到的,怎么解决呢? 内存泄漏定位在: [self.delegate willOutputSampleBuffer:sampleBuffer] 这行代码

    CFRetain(sampleBuffer);
    runAsynchronouslyOnVideoProcessingQueue(^{
        //Feature Detection Hook.
        if (self.delegate)
        {
            [self.delegate willOutputSampleBuffer:sampleBuffer];
        }
        
        [self processVideoSampleBuffer:sampleBuffer];
        
        CFRelease(sampleBuffer);
        dispatch_semaphore_signal(frameRenderingSemaphore);
    });

xiaoqingq avatar Oct 17 '18 11:10 xiaoqingq