Open justinmiller62 opened 7 years ago
Here is the full error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Tried to overrelease a framebuffer, did you forget to call -useNextFrameForImageCapture before using -imageFromCurrentFramebuffer?'
I attached a simple swift file that demonstrates the issue. LiveVideoViewController.swift.zip
Here is the method I am using to change the background image, once it is set I change it with the following.
if canChangeImage == true { canChangeImage = false let inputImage = NSImage(named: "WID-small.jpg") self.blendImage?.removeAllTargets() self.blendImage = GPUImagePicture(image: inputImage!) self.blendImage?.addTarget((filter as! GPUImageInput)) self.blendImage?.processImage(completionHandler: { self.canChangeImage = true }) }
Here is the full error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Tried to overrelease a framebuffer, did you forget to call -useNextFrameForImageCapture before using -imageFromCurrentFramebuffer?'
I attached a simple swift file that demonstrates the issue. LiveVideoViewController.swift.zip
Here is the method I am using to change the background image, once it is set I change it with the following.
if canChangeImage == true { canChangeImage = false let inputImage = NSImage(named: "WID-small.jpg") self.blendImage?.removeAllTargets() self.blendImage = GPUImagePicture(image: inputImage!) self.blendImage?.addTarget((filter as! GPUImageInput)) self.blendImage?.processImage(completionHandler: { self.canChangeImage = true }) }