kaushikgopal / RxJava-Android-Samples

Learning RxJava for Android by example
Apache License 2.0
7.54k stars 1.37k forks source link

memory leak #118

Open aprz512 opened 6 years ago

aprz512 commented 6 years ago

i got memory leak report on DebounceSearchEmitterFragment.

the log info: 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: In com.morihacky.android.rxjava:1.2:2. 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: com.morihacky.android.rxjava.fragments.DebounceSearchEmitterFragment has leaked: 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: GC ROOT thread java.lang.Thread. (named 'Thread-10') 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: references com.android.tools.profiler.support.event.InputConnectionWrapper.mTarget 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: references com.android.internal.widget.EditableInputConnection.mTextView 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: references android.support.v7.widget.AppCompatEditText.mParent 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: references android.widget.LinearLayout.mParent 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: references android.widget.LinearLayout.mChildren 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: references array android.view.View[].[2] 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: references android.widget.ListView.mAdapter 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: references com.morihacky.android.rxjava.fragments.DebounceSearchEmitterFragment$LogAdapter.this$0 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: leaks com.morihacky.android.rxjava.fragments.DebounceSearchEmitterFragment instance 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: Retaining: 1.2 kB. 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: Reference Key: 7ba3dadc-f535-4747-b4ec-ee266c90ebe6 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: Device: Google google Pixel sailfish 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: Android Version: 8.0.0 API: 26 LeakCanary: 1.5.1 1be44b3 01-08 11:55:57.399 544-3247/com.morihacky.android.rxjava D/LeakCanary: Durations: watch=5445ms, gc=194ms, heap dump=2190ms, analysis=96209ms