LawnchairLauncher / lawnchair

No clever tagline needed.
https://lawnchair.app
Other
9.32k stars 1.21k forks source link

3 Leak errors #3605

Closed owencz1998 closed 10 months ago

owencz1998 commented 1 year ago

Describe the bug

┬─── │ GC Root: Global variable in native code │ ├─ com.android.systemui.unfold.util. │ NaturalRotationUnfoldProgressProvider$RotationWatcher instance │ Leaking: UNKNOWN │ Retaining 536 B in 1 objects │ ↓ NaturalRotationUnfoldProgressProvider$RotationWatcher.this$0 │ ~~ ├─ com.android.systemui.unfold.util.NaturalRotationUnfoldProgressProvider │ instance │ Leaking: UNKNOWN │ Retaining 308 B in 13 objects │ context instance of app.lawnchair.LawnchairLauncher with mDestroyed = true │ ↓ NaturalRotationUnfoldProgressProvider.context │ ~~~ ╰→ app.lawnchair.LawnchairLauncher instance ​ Leaking: YES (ObjectWatcher was watching this because app.lawnchair. ​ LawnchairLauncher received Activity#onDestroy() callback and ​ Activity#mDestroyed is true) ​ Retaining 716.9 kB in 15959 objects ​ key = 55cf648a-3dcf-4b98-b61e-a7e7a800b87d ​ watchDurationMillis = 5202 ​ retainedDurationMillis = 196 ​ mApplication instance of app.lawnchair.LawnchairApp ​ mBase instance of android.app.ContextImpl

METADATA

Build.VERSION.SDK_INT: 33 Build.MANUFACTURER: samsung LeakCanary version: 2.12 App process name: app.lawnchair.debug Class count: 34398 Instance count: 252713 Primitive array count: 172625 Object array count: 37366 Thread count: 52 Heap total bytes: 37008421 Bitmap count: 339 Bitmap total bytes: 41666919 Large bitmap count: 0 Large bitmap total bytes: 0 Db 1: open /data/user/0/app.lawnchair.debug/databases/preferences Db 2: open /data/user/0/app.lawnchair.debug/databases/app_icons.db Db 3: open /data/user/0/app.lawnchair.debug/databases/launcher_8_5_5.db Db 4: closed /data/user/0/app.lawnchair.debug/databases/leaks.db Stats: LruCache[maxSize=3000,hits=125129,misses=233115,hitRate=34%] RandomAccess[bytes=12580231,reads=233115,travel=106465472531,range=43079267,size =54029041] Analysis duration: 11053 ms

Another leak ┬─── │ GC Root: Global variable in native code │ ├─ com.google.android.libraries.launcherclient.LauncherClient$OverlayCallback │ instance │ Leaking: UNKNOWN │ Retaining 507.1 kB in 8808 objects │ ↓ LauncherClient$OverlayCallback.mClient │ ~~~ ├─ com.google.android.libraries.launcherclient.LauncherClient instance │ Leaking: UNKNOWN │ Retaining 98 B in 3 objects │ mActivity instance of app.lawnchair.LawnchairLauncher with mDestroyed = │ true │ ↓ LauncherClient.mActivity │ ~~~~~ ╰→ app.lawnchair.LawnchairLauncher instance ​ Leaking: YES (ObjectWatcher was watching this because app.lawnchair. ​ LawnchairLauncher received Activity#onDestroy() callback and ​ Activity#mDestroyed is true) ​ Retaining 324.2 kB in 6267 objects ​ key = 6397b114-31d5-4c90-8c9b-d409b88d8bb2 ​ watchDurationMillis = 45848 ​ retainedDurationMillis = 40841 ​ mApplication instance of app.lawnchair.LawnchairApp ​ mBase instance of android.app.ContextImpl

METADATA

Build.VERSION.SDK_INT: 33 Build.MANUFACTURER: samsung LeakCanary version: 2.12 App process name: app.lawnchair.debug Class count: 33927 Instance count: 255863 Primitive array count: 171431 Object array count: 37037 Thread count: 57 Heap total bytes: 36759072 Bitmap count: 338 Bitmap total bytes: 41657703 Large bitmap count: 0 Large bitmap total bytes: 0 Db 1: open /data/user/0/app.lawnchair.debug/databases/preferences Db 2: open /data/user/0/app.lawnchair.debug/databases/app_icons.db Db 3: open /data/user/0/app.lawnchair.debug/databases/launcher_8_5_5.db Stats: LruCache[maxSize=3000,hits=124823,misses=233123,hitRate=34%] RandomAccess[bytes=12578050,reads=233123,travel=105976750775,range=42858099,size =53756381] Analysis duration: 12957

And one more

┬─── │ GC Root: Global variable in native code │ ├─ android.os.ResultReceiver$MyResultReceiver instance │ Leaking: UNKNOWN │ Retaining 752 B in 7 objects │ ↓ ResultReceiver$MyResultReceiver.this$0 │ ~~ ├─ app.lawnchair.BlankActivity$Companion$createResultReceiver$1 instance │ Leaking: UNKNOWN │ Retaining 216 B in 6 objects │ Anonymous subclass of android.os.ResultReceiver │ ↓ BlankActivity$Companion$createResultReceiver$1.$callback │ ~~~~~ ├─ app.lawnchair.BlankActivity$Companion$start$2$resultReceiver$1 instance │ Leaking: UNKNOWN │ Retaining 167 B in 4 objects │ Anonymous subclass of kotlin.jvm.internal.Lambda │ ↓ BlankActivity$Companion$start$2$resultReceiver$1.$continuation │ ~~~~~ ├─ kotlinx.coroutines.CancellableContinuationImpl instance │ Leaking: UNKNOWN │ Retaining 151 B in 3 objects │ ↓ CancellableContinuationImpl.delegate │ ~~~~ ├─ kotlinx.coroutines.internal.DispatchedContinuation instance │ Leaking: UNKNOWN │ Retaining 909 B in 24 objects │ ↓ DispatchedContinuation.continuation │ ~~~~ ├─ app.lawnchair.smartspace.provider.SmartspaceProvider$startSetup$3$emit$1 │ instance │ Leaking: UNKNOWN │ Retaining 861 B in 23 objects │ Anonymous subclass of kotlin.coroutines.jvm.internal.ContinuationImpl │ L$0 instance of app.lawnchair.ui.preferences.PreferenceActivity with │ mDestroyed = true │ ↓ SmartspaceProvider$startSetup$3$emit$1.L$0 │ ~~~ ╰→ app.lawnchair.ui.preferences.PreferenceActivity instance ​ Leaking: YES (ObjectWatcher was watching this because app.lawnchair.ui. ​ preferences.PreferenceActivity received Activity#onDestroy() callback and ​ Activity#mDestroyed is true) ​ Retaining 898.2 kB in 17510 objects ​ key = 0bf9f35a-9901-40a9-ba6c-ad01aebc9cca ​ watchDurationMillis = 5382 ​ retainedDurationMillis = 381 ​ mApplication instance of app.lawnchair.LawnchairApp ​ mBase instance of androidx.appcompat.view.ContextThemeWrapper

METADATA

Build.VERSION.SDK_INT: 33 Build.MANUFACTURER: samsung LeakCanary version: 2.12 App process name: app.lawnchair.debug Class count: 33337 Instance count: 298188 Primitive array count: 173930 Object array count: 42232 Thread count: 49 Heap total bytes: 38660046 Bitmap count: 542 Bitmap total bytes: 124754734 Large bitmap count: 0 Large bitmap total bytes: 0 Db 1: open /data/user/0/app.lawnchair.debug/databases/preferences Db 2: open /data/user/0/app.lawnchair.debug/databases/app_icons.db Db 3: open /data/user/0/app.lawnchair.debug/databases/launcher_5_4_4.db Count of retained yet cleared: 1 KeyedWeakReference instances Stats: LruCache[maxSize=3000,hits=132988,misses=269951,hitRate=33%] RandomAccess[bytes=14478198,reads=269951,travel=122052268231,range=45269388,size =56377185] Analysis duration: 11237 ms

Steps to reproduce

Debug version

Expected behavior

Not sure haha

Screenshots

No response

Device information

Samsung s23 ultra

Additional context

No response

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 10 months ago

This issue was closed because it has been stale for 7 days with no activity.