square/leakcanary

Running heap analysis in separate process does not invoke custom OnLeakFoundCallback callback

已关闭

#1,789 创建于 2020年3月30日

 (5 条评论) (0 个反应) (0 位负责人)Kotlin (3,975 个派生)batch import
good first issuestatus: help wantedtype: documentationtype: enhancement

仓库指标

星标
 (29,920 个星标)
PR 合并指标
 (平均合并 121天 22小时) (30 天内合并 5 个 PR)

描述

Description

Not sure if this is the expected behavior or not. I was expected to have background process trigger callback on the main process with leak analysis data.

Steps to Reproduce

  1. Follow https://square.github.io/leakcanary/recipes/#running-the-leakcanary-analysis-in-a-separate-process
  2. Use a app that has custom OnLeakFoundCallback callback
  3. Make sure dumpHeapWhenDebugging is set to true if using debugger
  4. Verify once that callback is not invoked once analysis complete (via debugger breakpoint or logcat)

Expected behavior:

Callback to be invoked in main process.

Version Information

  • LeakCanary version: 2.2
  • Android OS version: API 29
  • Gradle version: n/a

贡献者指南