GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Weird bug with blur related slider filters when applied on still photos

Open kissfro opened this issue 13 years ago • 5 comments

I closed the other issue only to realize that this bug is still occurring (seems to only happen on higher res pics):

On the blur related filters I'm using in my app (SmoothToon, CannyEdgeDetection, and GaussianBlur), when I go to apply these filters on a still image, the slider doesn't update it's UI properly (it appears like the slider is lagging and only updates seldomly), yet the filter applies to the picture at the normal rate. When I moved the CannyEdgeDetection around enough, it crashed the app.

kissfro avatar Sep 11 '13 10:09 kissfro

When it crashes, what does the stack trace and console log show?

BradLarson avatar Sep 11 '13 14:09 BradLarson

That's clearly a low memory crash. Are you running these filters against a full-size photo? Have you tried running the preview on a smaller version of the image (one sized to the pixels of the screen) and only doing a final filter pass on the full image when saving?

BradLarson avatar Sep 11 '13 18:09 BradLarson

I am running them against a full-size photo, but you know, I just run my app on my iPhone4 which still runs iOS6 and I'm not getting the sliding / crashing problems when chaining together GaussianBlur, Smooth Toon, and Canny and applying the filter as fast as possible. Think it might have to do with iOS7.

kissfro avatar Sep 11 '13 20:09 kissfro

I'm not going to close this just yet until I'm certain, but it appears this bug is an iOS7 bug that is happening on any UISliders that control an intensive process and thus doesn't have anything to do with GPUImage. Going to wait to confirm though with Apple.

kissfro avatar Sep 26 '13 07:09 kissfro

Confirmed - this was an iOS7 issue that was fixed in iOS7.1.

kissfro avatar Mar 16 '14 23:03 kissfro