Open Bug 1935209 Opened 2 months ago Updated 29 days ago

Memory leak in SavedLoginsFragment

Categories

(Fenix :: Logins, defect, P3)

All
Android
defect

Tracking

(Not tracked)

People

(Reporter: segun, Unassigned)

References

(Blocks 1 open bug)

Details

Crash Data

User Agent: Mozilla/5.0 (Android 15; Mobile; rv:135.0) Gecko/135.0 Firefox/135.0

Leak signatures

  1. 4974652f87a884d9de00eefeef0455f1bee83034

Leak trace

leakcanary.NoLeakAssertionFailedError: Application memory leaks were detected:
====================================
HEAP ANALYSIS RESULT
====================================
1 APPLICATION LEAKS

References underlined with "~~~" are likely causes.
Learn more at https://squ.re/leaks.

3429 bytes retained by leaking objects
Signature: 4974652f87a884d9de00eefeef0455f1bee83034
┬───
│ GC Root: Global variable in native code
│
├─ dalvik.system.PathClassLoader instance
│	Leaking: NO (InternalLeakCanary↓ is not leaking and A ClassLoader is never leaking)
│	↓ ClassLoader.runtimeInternalObjects
├─ java.lang.Object[] array
│	Leaking: NO (InternalLeakCanary↓ is not leaking)
│	↓ Object[1131]
├─ leakcanary.internal.InternalLeakCanary class
│	Leaking: NO (HomeActivity↓ is not leaking and a class is never leaking)
│	↓ static InternalLeakCanary.resumedActivity
├─ org.mozilla.fenix.HomeActivity instance
│	Leaking: NO (SavedLoginsFragment↓ is not leaking and Activity#mDestroyed is false)
│	mApplication instance of org.mozilla.fenix.DebugFenixApplication
│	mBase instance of androidx.appcompat.view.ContextThemeWrapper
│	↓ ComponentActivity.onConfigurationChangedListeners
├─ java.util.concurrent.CopyOnWriteArrayList instance
│	Leaking: NO (SavedLoginsFragment↓ is not leaking)
│	↓ CopyOnWriteArrayList[7]
├─ androidx.fragment.app.FragmentManager$$ExternalSyntheticLambda0 instance
│	Leaking: NO (SavedLoginsFragment↓ is not leaking)
│	↓ FragmentManager$$ExternalSyntheticLambda0.f$0
├─ androidx.fragment.app.FragmentManagerImpl instance
│	Leaking: NO (SavedLoginsFragment↓ is not leaking)
│	↓ FragmentManager.mParent
├─ org.mozilla.fenix.settings.logins.fragment.SavedLoginsFragment instance
│	Leaking: NO (Fragment.mLifecycleRegistry.state is CREATED)
│	Fragment.mTag = d341a6a2-d96c-4b08-ac0c-3dbdb789bca1
│	↓ SavedLoginsFragment._binding
│                      	~~~~~~~~
├─ org.mozilla.fenix.databinding.FragmentSavedLoginsBinding instance
│	Leaking: UNKNOWN
│	Retaining 16 B in 1 objects
│	↓ FragmentSavedLoginsBinding.rootView
│                             	~~~~~~~~
╰→ android.widget.LinearLayout instance
​ 	Leaking: YES (ObjectWatcher was watching this because org.mozilla.fenix.settings.logins.fragment.SavedLoginsFragment received Fragment#onDestroyView() callback (references to its views should be cleared to prevent leaks))
​ 	Retaining 3.4 kB in 52 objects
​ 	key = a2b787f8-9829-41d4-82c7-c403d7238cea
​ 	watchDurationMillis = 6139
​ 	retainedDurationMillis = 1104
​ 	View not part of a window view hierarchy
​ 	View.mAttachInfo is null (view detached)
​ 	View.mWindowAttachCount = 1
​ 	mContext instance of org.mozilla.fenix.HomeActivity with mDestroyed = false

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.