GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Crash when set Gaussian Blur setBlurRadiansInPixels to 0 on 64 bit simulator device

Open kissfro opened this issue 12 years ago • 2 comments

When I run the latest version of GPUImage on a 64 bit simulator, it is crashing when I try to set GPUImageGaussianBlurFilter setBlurRadiansInPixels to 0. It crashes at this line:

standardGaussianWeights[currentGaussianWeightIndex] = (1.0 / sqrt(2.0 * M_PI * pow(sigma, 2.0))) * exp(-pow(currentGaussianWeightIndex, 2.0) / (2.0 * pow(sigma, 2.0)));

Worked around it just by setting it to 1, but thought I'd let you know.

kissfro avatar Mar 14 '14 08:03 kissfro

Yeah, I check for that condition later on, and use a passthrough filter if I see that, but the divide-by-zero there must finally be getting picked up. I'll have to move that check earlier in that property.

BradLarson avatar Mar 14 '14 18:03 BradLarson

This should be fixed now.

BradLarson avatar May 02 '14 22:05 BradLarson