square/leakcanary

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

Open

#1789 aperta il 30 mar 2020

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Kotlin (3975 fork)batch import
good first issuestatus: help wantedtype: documentationtype: enhancement

Metriche repository

Star
 (29.920 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor