Open mycroftcanner opened 4 years ago
Is the filterWithPipeline holding a weak reference to image?
The solution is to make sure image.cgImage isn't nil :
node.imageModificationBlock = { image, _ in
guard image.cgImage != nil else { return image }
let luminance = Luminance()
let exposure = ExposureAdjustment()
exposure.exposure = -0.3
return image.filterWithPipeline { input, output in
input --> luminance --> exposure --> output
}
}
Trying to use GPUImage3 inside a ASNetworkImageNode's imageModificationBlock:
It crashes sometimes with the following error: