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.25k stars 4.61k forks source link

Applying filters on Video App crashes #2281

Open AbhijeetCopper opened 8 years ago

AbhijeetCopper commented 8 years ago

i Picked a video(250KB) from the Gallery And apply filter with multiple Textures case CS_LOMOFI_FILTER: { filter = [[IFLomofiFilter alloc] init]; sourcePicture1 = [[GPUImagePicture alloc] initWithImage:[UIImageimageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"lomoMap" ofType:@"png"]]]; [sourcePicture1 processImage]; [sourcePicture1 addTarget:filter atTextureLocation:1]; sourcePicture2 = [[GPUImagePicture alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"vignetteMap" ofType:@"png"]]]; [sourcePicture2 processImage]; [sourcePicture2 addTarget:filter atTextureLocation:2]; break; }

After * if ([self.delegate respondsToSelector:@selector(didCompletePlayingMovie)]) { [self.delegate didCompletePlayingMovie]; } in GPUImageMovie * App Crashed

Following Error [GPUImageFramebuffer release]: message sent to deallocated instance 0x7aeaa460

But if apply single texture App works fine (No crash) \ case CS_INKWELL_FILTER: { filter = [[IFInkwellFilter alloc] init]; sourcePicture1 = [[GPUImagePicture alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"inkwellMap" ofType:@"png"]]]; [sourcePicture1 processImage]; [sourcePicture1 addTarget:filter atTextureLocation:1]; break; }”**