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 #5590

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

leakcary #5590

billdizl opened this issue Dec 6, 2023 · 7 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.

@argzdev
Copy link
Contributor

argzdev commented Dec 6, 2023

Hi @billdizl, thanks for reaching out. Not sure how to reproduce this, I've just added the leak canary library in a clean project with Firebase but I'm unable to reproduce this issue. That said, could you share steps to reproduce this behavior? Thanks!

@billdizl
Copy link
Author

billdizl commented Dec 6, 2023

steps

Normal operation project,I didn't find any problems with Samsung's phone, but I found the leak with realme's phone(realme v15 https://www.gsmarena.com/realme_v15_5g-10664.php ),Not occasionally, but often.

@billdizl
Copy link
Author

billdizl commented Dec 6, 2023

e490f1dc91f0ff8155055f93d9bb934a
c60860c2dbef99ed9cbe14e26f6bfcf2

@argzdev
Copy link
Contributor

argzdev commented Dec 6, 2023

Interesting find, thanks for the extra details. We'll let you know once we have updates to share.

@billdizl
Copy link
Author

billdizl commented Jan 3, 2024

This leak square/leakcanary#2600 have to solve it ,thanks, this issue will be close.

@billdizl billdizl closed this as completed Jan 3, 2024
@argzdev
Copy link
Contributor

argzdev commented Jan 3, 2024

Awesome, thanks for the updates @billdizl!

@firebase firebase locked and limited conversation to collaborators Feb 2, 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