Open Bug 1935999 Opened 2 months ago Updated 23 days ago

Memory leak in CreditCardsManagementFragment

Categories

(Fenix :: Autofill, defect)

All
Android
defect

Tracking

(Not tracked)

People

(Reporter: segun, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group1])

Crash Data

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

Leak signatures

  1. 522fcc306d0e542c47e999e24332c2ecec017117

Leak trace

====================================
HEAP ANALYSIS RESULT
====================================
1 APPLICATION LEAKS

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

4102 bytes retained by leaking objects
Signature: 522fcc306d0e542c47e999e24332c2ecec017117
┬───
│ 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[1069]
├─ 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 (CreditCardsManagementFragment↓ 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 (CreditCardsManagementFragment↓ is not leaking)
│	↓ CopyOnWriteArrayList[6]
├─ androidx.fragment.app.FragmentManager$$ExternalSyntheticLambda0 instance
│	Leaking: NO (CreditCardsManagementFragment↓ is not leaking)
│	↓ FragmentManager$$ExternalSyntheticLambda0.f$0
├─ androidx.fragment.app.FragmentManagerImpl instance
│	Leaking: NO (CreditCardsManagementFragment↓ is not leaking)
│	↓ FragmentManager.mParent
├─ org.mozilla.fenix.settings.creditcards.CreditCardsManagementFragment instance
│	Leaking: NO (Fragment.mLifecycleRegistry.state is CREATED)
│	Fragment.mTag = 0dc56532-9f80-4e2a-a877-d648033a769d
│	↓ CreditCardsManagementFragment.creditCardsView
│                                	~~~~~~~~~~~~~~~
├─ org.mozilla.fenix.settings.creditcards.view.CreditCardsManagementView instance
│	Leaking: UNKNOWN
│	Retaining 151.8 kB in 2503 objects
│	↓ CreditCardsManagementView.binding
│                            	~~~~~~~
├─ org.mozilla.fenix.databinding.ComponentCreditCardsBinding instance
│	Leaking: UNKNOWN
│	Retaining 151.5 kB in 2489 objects
│	↓ ComponentCreditCardsBinding.creditCardsWrapper
│                              	~~~~~~~~~~~~~~~~~~
╰→ androidx.constraintlayout.widget.ConstraintLayout instance
​ 	Leaking: YES (ObjectWatcher was watching this because org.mozilla.fenix.settings.creditcards.CreditCardsManagementFragment received Fragment#onDestroyView() callback (references to its views should be cleared to prevent leaks))
​ 	Retaining 4.1 kB in 73 objects
​ 	key = ad536d9c-c29c-4a40-835c-d44f6b2cbb53
​ 	watchDurationMillis = 6887
​ 	retainedDurationMillis = 1886
​ 	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
====================================
0 LIBRARY LEAKS

A Library Leak is a leak caused by a known bug in 3rd party code that you do not have control over.
See https://square.github.io/leakcanary/fundamentals-how-leakcanary-works/#4-categorizing-leaks
====================================

Depends on: 1936099
No longer depends on: 1936099

The severity field is not set for this bug.
:matt-tighe, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(mtighe)
Flags: needinfo?(mtighe)
Severity: -- → S4
Whiteboard: [fxdroid][group1]
You need to log in before you can comment on or make changes to this bug.