Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leakcary of #5591

Closed
billdizl opened this issue Dec 6, 2023 · 3 comments
Closed

leakcary of #5591

billdizl opened this issue Dec 6, 2023 · 3 comments

Comments

@billdizl
Copy link

billdizl commented Dec 6, 2023

`┬───
│ 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 16 objects
│ mOuterContext instance of com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
│ ContextImpl.mOuterContext is an instance of com.google.android.datatransport.runtime.scheduling.jobscheduling.
│ JobInfoSchedulerService
│ ↓ ContextImpl.mOuterContext
│ ~~~~~~~~~~~~~
╰→ com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService instance
​ Leaking: YES (ObjectWatcher was watching this because com.google.android.datatransport.runtime.scheduling.
​ jobscheduling.JobInfoSchedulerService received Service#onDestroy() callback and Service not held by
​ ActivityThread)
​ Retaining 197 B in 4 objects
​ key = 0ae2fef3-41bf-4b1e-b503-a4fc5f6e9bd9
​ watchDurationMillis = 18518
​ retainedDurationMillis = 13502
​ mApplication instance of com.xx.xxl.view.BaseApplication
​ mBase instance of android.app.ContextImpl
METADATA

                                                                                            Build.VERSION.SDK_INT: 31
                                                                                            Build.MANUFACTURER: realme
                                                                                            LeakCanary version: 2.12
                                                                                            App process name: com.xx.xx
                                                                                            Class count: 54038
                                                                                            Instance count: 326157
                                                                                            Primitive array count: 238069
                                                                                            Object array count: 53794
                                                                                            Thread count: 115
                                                                                            Heap total bytes: 55253487
                                                                                            Bitmap count: 132
                                                                                            Bitmap total bytes: 62467348
                                                                                            Large bitmap count: 0
                                                                                            Large bitmap total bytes: 0
                                                                                            Db 1: closed /data/user/0/xx/databases/google_app_measurement_local.db
                                                                                            Db 2: open /data/user/0/xx/databases/com.google.android.datatransport.events
                                                                                            Db 3: open /data/user/0/xx/databases/sensorsdata
                                                                                            Db 4: open /data/user/0/xx/databases/emas_accs.db
                                                                                            Stats: LruCache[maxSize=3000,hits=133823,misses=292310,hitRate=31%]
                                                                                            RandomAccess[bytes=14832299,reads=292310,travel=231421585202,range=60743210,size=77942949]
                                                                                            Analysis duration: 14422 ms

`

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@billdizl
Copy link
Author

billdizl commented Dec 6, 2023

square/leakcanary#2589

@argzdev
Copy link
Contributor

argzdev commented Dec 6, 2023

Duplicate of #5590

@argzdev argzdev marked this as a duplicate of #5590 Dec 6, 2023
@argzdev argzdev closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@firebase firebase locked and limited conversation to collaborators Jan 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants