Android-Image-Slider icon indicating copy to clipboard operation
Android-Image-Slider copied to clipboard

Memory leak

Open KhinThiriSoe opened this issue 6 years ago • 7 comments

I have memory leak by using the library.

com.smarteist.autoimageslider.SliderView │ Leaking: YES (View.mContext references a destroyed activity) │ mContext instance of android.view.ContextThemeWrapper, wrapping activity

Could you please help me how to avoid it?

KhinThiriSoe avatar Sep 16 '19 07:09 KhinThiriSoe

I'm having the same problem. Did someone fix it already ? Or do i need to migrate to another one ?

myolwin00 avatar Dec 14 '19 17:12 myolwin00

I fixed memory leak by turning off the autoCycling

kairliyev avatar Dec 20 '19 07:12 kairliyev

I imported the library and added removeCallbacks Handler onDestroyed().

KhinThiriSoe avatar Jan 15 '20 07:01 KhinThiriSoe

So, is it fixed ?

myolwin00 avatar Jan 16 '20 14:01 myolwin00

It works for me. Let me know if there is issue @myolwin00

KhinThiriSoe avatar Jan 17 '20 05:01 KhinThiriSoe

I have memory leak by using the library.

com.smarteist.autoimageslider.SliderView │ Leaking: YES (View.mContext references a destroyed activity) │ mContext instance of android.view.ContextThemeWrapper, wrapping activity

Could you please help me how to avoid it?

I need logcat and error details to help u, please update and send me the logs please.

smarteist avatar Feb 16 '20 13:02 smarteist

@myolwin00 If enabled AutoCycle then by adding setAutoCycle(false) in onDestroy() fixed my issue

SanoopC avatar May 26 '20 16:05 SanoopC