android-gpuimage icon indicating copy to clipboard operation
android-gpuimage copied to clipboard

Memory Leak Fix

Open wakedeer opened this issue 8 years ago • 3 comments

Hello ! I try to run your sample programm. When i take 5 photo in a row i have problem - OutOfMemory. screenshot_2

wakedeer avatar Mar 31 '16 10:03 wakedeer

I faced same issue with this library. Any help will be appreciated.

ghost avatar Apr 07 '16 05:04 ghost

its not problem in library i used many times there is no memory issue. issue is that you are missed in your code if can paste your code here i can explain in detail.

imandaliya avatar Jul 15 '16 07:07 imandaliya

I know it's an old question but maybe it still relevant for some. I had faced a similar problem using the GPUImageLookupFilter in a recycler view. the solution that I came up with was to recycle the filter bitmap by calling recycleBitmap in onDestroy of the filter:

class GPUImageRecycledLookupFilter : GPUImageLookupFilter() {
    override fun onDestroy() {
        super.onDestroy()
        recycleBitmap()
    }
}

hope it helps someone.

yosefBazaart avatar Jun 01 '21 07:06 yosefBazaart