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

OutOfMemoryError in leakcanary-analyzer #371

Closed
DukeWong opened this issue Jan 6, 2016 · 4 comments
Closed

OutOfMemoryError in leakcanary-analyzer #371

DukeWong opened this issue Jan 6, 2016 · 4 comments

Comments

@DukeWong
Copy link

DukeWong commented Jan 6, 2016

(leakcanary-android-1.4-20160105.135951-12.aar)

W art : Throwing OutOfMemoryError "Failed to allocate a 28 byte allocation with 1304 free bytes and 1304B until OOM" (recursive case)
01-06 02:20:13.320 7597 12015 W art : "IntentService[HeapAnalyzerService]" prio=5 tid=20 Runnable
01-06 02:20:13.320 7597 12015 W art : | group="main" sCount=0 dsCount=0 obj=0x12c07760 self=0x9bd25a00
01-06 02:20:13.320 7597 12015 W art : | sysTid=12015 nice=0 cgrp=bg_non_interactive sched=0/0 handle=0x9b9bf930
01-06 02:20:13.320 7597 12015 W art : | state=R schedstat=( 2032574740 116017968 505 ) utm=178 stm=24 core=1 HZ=100
01-06 02:20:13.320 7597 12015 W art : | stack=0x9b8bd000-0x9b8bf000 stackSize=1038KB
01-06 02:20:13.320 7597 12015 W art : | held mutexes= "mutator lock"(shared held)
01-06 02:20:13.320 7597 12015 W art : at java.util.LinkedHashMap.addNewEntry(LinkedHashMap.java:195)
01-06 02:20:13.320 7597 12015 W art : at java.util.HashMap.put(HashMap.java:403)
01-06 02:20:13.320 7597 12015 W art : at java.util.HashSet.add(HashSet.java:95)
01-06 02:20:13.320 7597 12015 W art : at com.squareup.leakcanary.ShortestPathFinder.enqueue(ShortestPathFinder.java:310)
01-06 02:20:13.320 7597 12015 W art : at com.squareup.leakcanary.ShortestPathFinder.enqueueGcRoots(ShortestPathFinder.java:163)
01-06 02:20:13.320 7597 12015 W art : at com.squareup.leakcanary.ShortestPathFinder.findPath(ShortestPathFinder.java:82)
01-06 02:20:13.320 7597 12015 W art : at com.squareup.leakcanary.HeapAnalyzer.findLeakTrace(HeapAnalyzer.java:111)
01-06 02:20:13.320 7597 12015 W art : at com.squareup.leakcanary.HeapAnalyzer.checkForLeak(HeapAnalyzer.java:86)
01-06 02:20:13.320 7597 12015 W art : at com.squareup.leakcanary.internal.HeapAnalyzerService.onHandleIntent(HeapAnalyzerService.java:58)
01-06 02:20:13.320 7597 12015 W art : at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
01-06 02:20:13.320 7597 12015 W art : at android.os.Handler.dispatchMessage(Handler.java:102)
01-06 02:20:13.320 7597 12015 W art : at android.os.Looper.loop(Looper.java:148)
01-06 02:20:13.320 7597 12015 W art : at android.os.HandlerThread.run(HandlerThread.java:61)
01-06 02:20:13.320 7597 12015 I art : Starting a blocking GC Alloc
01-06 02:20:13.320 7597 12015 I art : Starting a blocking GC Alloc
01-06 02:20:13.322 7597 12015 I art : Starting a blocking GC Alloc
01-06 02:20:13.375 3015 12052 D LeakCanary: In com.wareline.sms:5.0.1:201.
01-06 02:20:13.375 3015 12052 D LeakCanary: * FAILURE:
01-06 02:20:13.375 3015 12052 D LeakCanary: java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available
01-06 02:20:13.375 3015 12052 D LeakCanary:
01-06 02:20:13.375 3015 12052 D LeakCanary: * Reference Key: 894303a2-cb30-45be-b3e0-9c269212113e
01-06 02:20:13.375 3015 12052 D LeakCanary: * Device: Genymotion Android PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 Genymotion
01-06 02:20:13.375 3015 12052 D LeakCanary: * Android Version: 6.0 API: 23 LeakCanary: 1.4-SNAPSHOT e07929e
01-06 02:20:13.375 3015 12052 D LeakCanary: * Durations: watch=5099ms, gc=118ms, heap dump=4774ms, analysis=2359ms
01-06 02:20:13.375 3015 12052 D LeakCanary: * Excluded Refs:
01-06 02:20:13.375 3015 12052 D LeakCanary: | Field: android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue (always)
01-06 02:20:13.375 3015 12052 D LeakCanary: | Thread:FinalizerWatchdogDaemon (always)
01-06 02:20:13.375 3015 12052 D LeakCanary: | Thread:main (always)
01-06 02:20:13.375 3015 12052 D LeakCanary: | Thread:LeakCanary-Heap-Dump (always)
01-06 02:20:13.375 3015 12052 D LeakCanary: | Class:java.lang.ref.WeakReference (always)
01-06 02:20:13.375 3015 12052 D LeakCanary: | Class:java.lang.ref.SoftReference (always)
01-06 02:20:13.375 3015 12052 D LeakCanary: | Class:java.lang.ref.PhantomReference (always)
01-06 02:20:13.375 3015 12052 D LeakCanary: | Class:java.lang.ref.Finalizer (always)
01-06 02:20:13.375 3015 12052 D LeakCanary: | Class:java.lang.ref.FinalizerReference (always)

@jrodbx
Copy link
Collaborator

jrodbx commented Jan 6, 2016

Could you upload the heap dump that caused this OOM? We're looking into this and a handful of examples will be useful for testing.

@DukeWong
Copy link
Author

DukeWong commented Jan 6, 2016

Only crash in Genymotion (Android PREVIEW Version: 6.0 API: 23 LeakCanary: 1.4-SNAPSHOT e07929e) Simulator。

@pyricau
Copy link
Member

pyricau commented Jan 6, 2016

See #223

@pyricau pyricau closed this as completed Jan 6, 2016
@jrodbx
Copy link
Collaborator

jrodbx commented Jan 6, 2016

@DukeWong that's fine. still a heap dump (obtained via adb pull) would be useful.

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

No branches or pull requests

3 participants