Skip to content

Tried to overrelease a framebuffer #120

@gkye

Description

@gkye

I get this warning Tried to overrelease a framebuffer and a black/blank image when trying to apply a filter to an image, this issue only appears on a real device (iPhone 6s) but not a the simulator (The average image size is approx 2-3MB). Is there something I'm doing wrong below.

 func applyFilterOnMainImage(){
    let toonFilter = SmoothToonFilter()
    let pictureInput = PictureInput(image: defaultImg)
    let pictureOutput = PictureOutput()
    pictureOutput.imageAvailableCallback = {image in
      print("Process completed")
      self.mainImage.image = image
    }
    pictureInput --> toonFilter --> pictureOutput
    pictureInput.processImage(synchronously:false)
    
    collectionView.reloadData()
  }

This warning is not present when I using a RenderView but I was wondering if there was a way to remove the black background which is present after the image is applied to the RenderView

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions