Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO LEAK FOUND. Version: 1.4-beta2 #536

Closed
xiaolongyuan opened this issue Jun 2, 2016 · 9 comments
Closed

NO LEAK FOUND. Version: 1.4-beta2 #536

xiaolongyuan opened this issue Jun 2, 2016 · 9 comments

Comments

@xiaolongyuan
Copy link

xiaolongyuan commented Jun 2, 2016

LeakCanary Version: 1.4-beta2

 * NO LEAK FOUND.

 * Reference Key: 8f857757-b3ad-41bb-a14b-f52a25c74cda
 * Device: unknown Android Android SDK built for x86 sdk_google_phone_x86
 * Android Version: 5.1.1 API: 22 LeakCanary: 1.4-beta2 3799172
 * Durations: watch=5005ms, gc=147ms, heap dump=826ms, analysis=2463ms
 * Excluded Refs:
 | Field: android.view.inputmethod.InputMethodManager.mNextServedView
 | Field: android.view.inputmethod.InputMethodManager.mServedView
 | Field: android.view.inputmethod.InputMethodManager.mServedInputConnection
 | Field: android.view.inputmethod.InputMethodManager.mCurRootView
 | Field: android.animation.LayoutTransition$1.val$parent
 | Field: android.view.textservice.SpellCheckerSession$1.this$0
 | Field: android.support.v7.internal.widget.ActivityChooserModel.mActivityChoserModelPolicy
 | Field: android.widget.ActivityChooserModel.mActivityChoserModelPolicy
 | Field: android.accounts.AccountManager$AmsTask$Response.this$1
 | Field: android.media.MediaScannerConnection.mContext
 | Field: android.os.UserManager.mContext
 | Field: android.media.AudioManager$1.this$0
 | Field: android.widget.Editor$Blink.this$0
 | Field: android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue (always)
 | Static field: android.text.TextLine.sCached
 | Thread:FinalizerWatchdogDaemon (always)
 | Thread:main (always)
 | Thread:LeakCanary-Heap-Dump (always)
 | Class:java.lang.ref.WeakReference (always)
 | Class:java.lang.ref.SoftReference (always)
 | Class:java.lang.ref.PhantomReference (always)
 | Class:java.lang.ref.Finalizer (always)
 | Class:java.lang.ref.FinalizerReference (always)
 | Root Class:android.os.Binder (always)


@xiaolongyuan xiaolongyuan changed the title NO LEAK FOUND. NO LEAK FOUND. Version: 1.4-beta2 Jun 2, 2016
@jrodbx
Copy link
Collaborator

jrodbx commented Sep 12, 2016

Could you confirm whether this still happens and, if so, provide a heap dump?

@pyricau
Copy link
Member

pyricau commented Sep 19, 2016

Closing, will reopen if we get a response.

@pyricau pyricau closed this as completed Sep 19, 2016
@rhng
Copy link

rhng commented Sep 19, 2016

We have a service that gets scheduled by GcmNetworkManager every 60 seconds, and we are seeing this false leak a lot.

Here is the method used to schedule this service:

static void scheduleRefresh(GcmNetworkManager networkManager) {
PeriodicTask.Builder taskBuilder = new PeriodicTask.Builder()
.setService(MyService.class)
.setPeriod(60) // seconds
.setFlex(30) // seconds
.setTag(MyService.TASK_TAG)
.setUpdateCurrent(true) // If a task exists already, use it instead of creating a new one.
.setPersisted(false) // The task will be recreated next resume, no need to persist.
.setRequiredNetwork(Task.NETWORK_STATE_CONNECTED);
networkManager.schedule(taskBuilder.build());
}

@ziahaqi
Copy link

ziahaqi commented Oct 4, 2016

i had the same issue.. in my case "NO LEAK FOUND" caused by webview. the Webview located in a fragment, and i already put a piece of code like this in ondettach() method
if (webView != null) { webView.removeAllViews(); webView.destroyDrawingCache(); webView.clearHistory(); webView.destroy(); }
but the message still shown ? how can i fix that ?

@SHMoriarty
Copy link

"The GC was being lazy" what did this mean ?

@dbrant
Copy link

dbrant commented Feb 24, 2017

We're still seeing this type of message with 1.5. Here is the dump:

* NO LEAK FOUND.
* Reference Key: daf31a2f-3fa1-40f5-bc6a-39bbfbb4294e
* Device: Genymotion generic Custom Phone - 4.4.4 - API 19 - 768x1280 vbox86p
* Android Version: 4.4.4 API: 19 LeakCanary: 1.5 00f37f5
* Durations: watch=5006ms, gc=107ms, heap dump=240ms, analysis=2495ms
* Excluded Refs:
| Field: android.app.ActivityThread$ActivityClientRecord.nextIdle
| Field: android.widget.Editor$EasyEditSpanController.this$0
| Field: android.widget.Editor$SpanController.this$0
| Field: android.os.Message.obj
| Field: android.os.Message.next
| Field: android.os.Message.target
| Field: android.view.inputmethod.InputMethodManager.mNextServedView
| Field: android.view.inputmethod.InputMethodManager.mServedView
| Field: android.view.inputmethod.InputMethodManager.mServedInputConnection
| Field: android.view.inputmethod.InputMethodManager.mCurRootView
| Field: android.animation.LayoutTransition$1.val$parent
| Field: android.view.textservice.SpellCheckerSession$1.this$0
| Field: android.support.v7.internal.widget.ActivityChooserModel.mActivityChoserModelPolicy
| Field: android.widget.ActivityChooserModel.mActivityChoserModelPolicy
| Field: android.speech.SpeechRecognizer$InternalListener.this$0
| Field: android.accounts.AccountManager$AmsTask$Response.this$1
| Field: android.media.MediaScannerConnection.mContext
| Field: android.os.UserManager.mContext
| Field: android.appwidget.AppWidgetHost$Callbacks.this$0
| Field: android.media.AudioManager$1.this$0
| Field: android.widget.Editor$Blink.this$0
| Field: android.net.ConnectivityManager.sInstance
| Field: android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue (always)
| Static field: android.text.TextLine.sCached
| Thread:FinalizerWatchdogDaemon (always)
| Thread:main (always)
| Thread:LeakCanary-Heap-Dump (always)
| Class:java.lang.ref.WeakReference (always)
| Class:java.lang.ref.SoftReference (always)
| Class:java.lang.ref.PhantomReference (always)
| Class:java.lang.ref.Finalizer (always)
| Class:java.lang.ref.FinalizerReference (always)

@lawloretienne
Copy link

lawloretienne commented Mar 16, 2017

I also get this leak. In my case i am on LeakCanary Version: 1.5

* NO LEAK FOUND.

* Reference Key: e041f5bd-4dd8-417e-a1f1-f89fd044460b
* Device: LGE google Nexus 5X bullhead
* Android Version: 7.1.2 API: 25 LeakCanary: 1.5 00f37f5
* Durations: watch=5013ms, gc=190ms, heap dump=1866ms, analysis=14297ms
* Excluded Refs:
| Field: android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue (always)
| Thread:FinalizerWatchdogDaemon (always)
| Thread:main (always)
| Thread:LeakCanary-Heap-Dump (always)
| Class:java.lang.ref.WeakReference (always)
| Class:java.lang.ref.SoftReference (always)
| Class:java.lang.ref.PhantomReference (always)
| Class:java.lang.ref.Finalizer (always)
| Class:java.lang.ref.FinalizerReference (always)

@swetakadam
Copy link

1.5.1 I still get this

D/LeakCanary: In com.example.test:1.0:1.
* NO LEAK FOUND.

                                                             * Reference Key: 3dc8b289-0353-4de2-aac8-2a6305132eec
                                                             * Device: unknown Android Android SDK built for x86 sdk_google_phone_x86
                                                             * Android Version: 6.0 API: 23 LeakCanary: 1.5.1 1be44b3
                                                             * Durations: watch=5084ms, gc=206ms, heap dump=2349ms, analysis=17010ms
                                                             * Excluded Refs:
                                                             | Field: android.view.inputmethod.InputMethodManager.mNextServedView
                                                             | Field: android.view.inputmethod.InputMethodManager.mServedView
                                                             | Field: android.view.inputmethod.InputMethodManager.mServedInputConnection
                                                             | Field: android.view.inputmethod.InputMethodManager.mCurRootView
                                                             | Field: android.os.UserManager.mContext
                                                             | Field: android.net.ConnectivityManager.sInstance
                                                             | Field: android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue (always)
                                                             | Thread:FinalizerWatchdogDaemon (always)
                                                             | Thread:main (always)
                                                             | Thread:LeakCanary-Heap-Dump (always)
                                                             | Class:java.lang.ref.WeakReference (always)
                                                             | Class:java.lang.ref.SoftReference (always)
                                                             | Class:java.lang.ref.PhantomReference (always)
                                                             | Class:java.lang.ref.Finalizer (always)
                                                             | Class:java.lang.ref.FinalizerReference (always)

@xiaobailong24
Copy link

1.5.2 I still get this

08-18 13:08:14.700 12122-11016/me.xiaobailong24.mvvmarms.weather:leakcanary D/LeakCanary: In me.xiaobailong24.mvvmarms.weather:1.0.0-beta:1.
                                                                                          * NO LEAK FOUND.
                                                                                          
                                                                                          * Reference Key: ba26244d-af7e-4925-8b97-d70ae2209266
                                                                                          * Device: Huawei google Nexus 6P angler
                                                                                          * Android Version: 8.0.0 API: 26 LeakCanary: 1.5.2 be6b774
                                                                                          * Durations: watch=5071ms, gc=139ms, heap dump=1775ms, analysis=10489ms
                                                                                          * Excluded Refs:
                                                                                          | Field: android.view.textservice.SpellCheckerSession$1.this$0
                                                                                          | Field: android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue (always)
                                                                                          | Thread:FinalizerWatchdogDaemon (always)
                                                                                          | Thread:main (always)
                                                                                          | Thread:LeakCanary-Heap-Dump (always)
                                                                                          | Class:java.lang.ref.WeakReference (always)
                                                                                          | Class:java.lang.ref.SoftReference (always)
                                                                                          | Class:java.lang.ref.PhantomReference (always)
                                                                                          | Class:java.lang.ref.Finalizer (always)
                                                                                          | Class:java.lang.ref.FinalizerReference (always)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants