Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried to overrelease a framebuffer, did you forget to call -useNextFrameForImageCapture before using -imageFromCurrentFramebuffer?' #2248

Open
dashugege opened this issue Apr 4, 2016 · 1 comment

Comments

@dashugege
Copy link

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Tried to overrelease a framebuffer, did you forget to call -useNextFrameForImageCapture before using -imageFromCurrentFramebuffer?'

the code 👍

class func CameraGPUlookupFennenFilter() -> GPUImageFilterGroup {
let group = GPUImageFilterGroup()
let image = UIImage(named: "lookupFennen")
let lookupImageSource = GPUImagePicture.init(image: image)
let lookupFilter = GPUImageLookupFilter.init()
group.addTarget(lookupFilter)

    lookupImageSource?.addTarget(lookupFilter, atTextureLocation: 1)
    lookupImageSource?.processImage()
    group.initialFilters = [lookupFilter]
    group.terminalFilter = lookupFilter

    return group
}

the code error ?why

@dhoerl
Copy link

dhoerl commented Apr 17, 2016

Why aren't you using guard with this line: "let lookupImageSource = GPUImagePicture.init(image: image)"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants