square/leakcanary

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

クローズ

#1,789 opened on 2020/03/30

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Kotlin (3,975 件のフォーク)batch import
good first issuestatus: help wantedtype: documentationtype: enhancement

Repository metrics

Stars
 (29,920 個のスター)
PR merge metrics
 (平均マージ 121d 22h) (30d で 5 merged PRs)

説明

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

コントリビューターガイド