Skip to content

There are a lot of leaks about androidx.work.impl.background.systemjob.SystemJobService on Android 12. #2692

@bryanrady

Description

@bryanrady

The leaked information is below.

leakcanary version: 2.12
Android version: 12

LeakTrace information

┬───
│ GC Root: System class

├─ android.content.res.ResourcesImpl class
│ Leaking: NO (a class is never leaking)
│ ↓ static ResourcesImpl.mAppContext
│ ~~~~~~~~~~~
├─ android.app.ContextImpl instance
│ Leaking: UNKNOWN
│ Retaining 1.8 kB in 17 objects
│ mOuterContext instance of androidx.work.impl.background.systemjob.SystemJobService
│ ContextImpl.mOuterContext is an instance of androidx.work.impl.background.systemjob.SystemJobService
│ ↓ ContextImpl.mOuterContext
│ ~~~~~~~~~~~~~
╰→ androidx.work.impl.background.systemjob.SystemJobService instance
​ Leaking: YES (ObjectWatcher was watching this because androidx.work.impl.background.systemjob.SystemJobService
​ received Service#onDestroy() callback and Service not held by ActivityThread)
​ Retaining 276 B in 6 objects
​ key = 21490c62-8010-444c-971c-54dd6d9dc616
​ watchDurationMillis = 23351
​ retainedDurationMillis = 18347
]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions