leakcanary: Leak analysis failed: OutOfMemoryError
LeakCanary Version: 1.4-beta2
* FAILURE:
java.lang.OutOfMemoryError: Failed to allocate a 2807208 byte allocation with 2467638 free bytes and 2MB until OOM
at com.squareup.haha.trove.TLongHashSet.rehash(TLongHashSet.java:162)
at com.squareup.haha.trove.THash.postInsertHook(THash.java:283)
at com.squareup.haha.trove.TLongHashSet.add(TLongHashSet.java:146)
at com.squareup.haha.perflib.analysis.TopologicalSort$TopologicalSortVisitor.doVisit(TopologicalSort.java:91)
at com.squareup.haha.perflib.analysis.TopologicalSort.compute(TopologicalSort.java:36)
at com.squareup.haha.perflib.Snapshot.computeDominators(Snapshot.java:311)
at com.squareup.leakcanary.HeapAnalyzer.findLeakTrace(HeapAnalyzer.java:157)
at com.squareup.leakcanary.HeapAnalyzer.checkForLeak(HeapAnalyzer.java:91)
at com.squareup.leakcanary.internal.HeapAnalyzerService.onHandleIntent(HeapAnalyzerService.java:58)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 30 (5 by maintainers)
Re-opening this issue for tracking purposes. There are multiple ways to tackle the problem, but until then this is useful. Not everyone may check the issues before posting, but I’d wager even fewer search for closed issues before posting.
LeakCanary 2.0 will have a new heap dump parser with a much lower memory footprint. This should make all those OutOfMemoryError crashes go away.
Hi,
It seems always in 1.5.1:
A workaround or tips ?
Thanks