Closed Bug 1962872 Opened 26 days ago Closed 3 days ago

Intermittent [tier 2] org.mozilla.fenix.ui.MainMenuTestCompose#verifyTheHomePageNewTabButtonInPrivateBrowsingModeTest | leakcanary.NoLeakAssertionFailedError: Application memory leaks were detected:

Categories

(Firefox for Android :: UI Tests, defect, P5)

All
Android
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure)

Filed by: imoraru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=505613344&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Qw2f98hnQdakRsIVX334gg/runs/0/artifacts/public/logs/live_backing.log


[task 2025-04-26T22:49:40.826Z] RunTests
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z]  Smart Flank cache hit: 0% (0 / 568)
[task 2025-04-26T22:49:40.826Z]   Shard times: 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 600s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s, 720s
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z]   567 tests + 1 parameterized class / 100 shards
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z]   1 matrix ids created in 0m 3s
[task 2025-04-26T22:49:40.826Z]   Raw results will be stored in your GCS bucket at [https://console.developers.google.com/storage/browser/fenix_test_artifacts/2025-04-26_22-25-29.842202_jQxK]
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z] Matrices webLink
[task 2025-04-26T22:49:40.826Z]   matrix-3tpia5pbry6mz https://console.firebase.google.com/project/moz-fenix/testlab/histories/bh.66b7091e15d53d45/matrices/5550842481569726930/details
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z]   23m 23s matrix-3tpia5pbry6mz FINISHED
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z]   CostReport
[task 2025-04-26T22:49:40.826Z]   Virtual devices
[task 2025-04-26T22:49:40.826Z]     $5.65 for 5h 39m
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z] MatrixResultsReport
[task 2025-04-26T22:49:40.826Z]   0 / 1 (0.00%)
[task 2025-04-26T22:49:40.826Z]   1 matrices failed
[task 2025-04-26T22:49:40.826Z] 
[task 2025-04-26T22:49:40.826Z] ┌─────────┬──────────────────────┬──────────┬──────────────────┬───────────────────────────────────┬──────────────────────────────────────────┐
[task 2025-04-26T22:49:40.826Z] │ OUTCOME │      MATRIX ID       │ APP NAME │  TEST FILE NAME  │          TEST AXIS VALUE          │               TEST DETAILS               │
[task 2025-04-26T22:49:40.826Z] ├─────────┼──────────────────────┼──────────┼──────────────────┼───────────────────────────────────┼──────────────────────────────────────────┤
[task 2025-04-26T22:49:40.826Z] │ failure │ matrix-3tpia5pbry6mz │ app.apk  │ android-test.apk │ MediumPhone.arm-34-en_US-portrait │ 1 test cases failed, 572 passed, 3 flaky │
[task 2025-04-26T22:49:40.826Z] └─────────┴──────────────────────┴──────────┴──────────────────┴───────────────────────────────────┴──────────────────────────────────────────┘
[task 2025-04-26T22:49:40.826Z] More details are available at:
[task 2025-04-26T22:49:40.826Z] https://console.firebase.google.com/project/moz-fenix/testlab/histories/bh.66b7091e15d53d45/matrices/5550842481569726930/details
[task 2025-04-26T22:49:40.826Z] 
<...>
[task 2025-04-26T22:49:40.861Z]   Shard 97: Expected: 0s, Actual: 147s, Diff: 147s
[task 2025-04-26T22:49:40.861Z]   Shard 98: Expected: 0s, Actual: 150s, Diff: 150s
[task 2025-04-26T22:49:40.861Z]   Shard 99: Expected: 0s, Actual: 52s, Diff: 52s
[task 2025-04-26T22:49:40.861Z] 
[task 2025-04-26T22:49:40.861Z] 
[task 2025-04-26T22:49:40.861Z] Command /usr/bin/java -jar /builds/worker/test-tools/flank.jar android run --config ./automation/taskcluster/androidTest/flank-arm64-v8a-detect-leaks.yml --app /builds/worker/checkouts/gecko/mobile/android/fenix/app.apk --local-result-dir /builds/worker/artifacts/results --project moz-fenix --client-details matrixLabel=mozilla-central,geckoRev=53aaae152b1d4546265c1f28c19d0b896bd2ee62 --test /builds/worker/checkouts/gecko/mobile/android/fenix/android-test.apk failed with exit code 10
[task 2025-04-26T22:49:40.903Z] TEST-UNEXPECTED-FAIL | org.mozilla.fenix.ui.MainMenuTestCompose#verifyTheHomePageNewTabButtonInPrivateBrowsingModeTest | leakcanary.NoLeakAssertionFailedError: Application memory leaks were detected:
[task 2025-04-26T22:49:40.903Z] ====================================
[task 2025-04-26T22:49:40.903Z] HEAP ANALYSIS RESULT
[task 2025-04-26T22:49:40.903Z] ====================================
[task 2025-04-26T22:49:40.903Z] 1 APPLICATION LEAKS
[task 2025-04-26T22:49:40.903Z] 
[task 2025-04-26T22:49:40.903Z] References underlined with "~~~" are likely causes.
[task 2025-04-26T22:49:40.903Z] Learn more at https://squ.re/leaks.
[task 2025-04-26T22:49:40.903Z] 
[task 2025-04-26T22:49:40.903Z] 217846 bytes retained by leaking objects
[task 2025-04-26T22:49:40.903Z] Signature: 0e210f2d6b43ec5cb09a92c1b9e5b3bea84f44a1
[task 2025-04-26T22:49:40.903Z] ┬───
[task 2025-04-26T22:49:40.903Z] │ GC Root: Thread object
[task 2025-04-26T22:49:40.903Z] │
[task 2025-04-26T22:49:40.903Z] ├─ kotlinx.coroutines.scheduling.CoroutineScheduler$Worker instance
[task 2025-04-26T22:49:40.903Z] │    Leaking: UNKNOWN
[task 2025-04-26T22:49:40.903Z] │    Retaining 220.2 kB in 3826 objects
[task 2025-04-26T22:49:40.903Z] │    Thread name: 'DefaultDispatcher-worker-14'
[task 2025-04-26T22:49:40.903Z] │    ↓ CoroutineScheduler$Worker<Java Local>
[task 2025-04-26T22:49:40.903Z] │                               ~~~~~~~~~~~~
[task 2025-04-26T22:49:40.903Z] ├─ org.mozilla.fenix.HomeActivity$onResume$1 instance
[task 2025-04-26T22:49:40.903Z] │    Leaking: UNKNOWN
[task 2025-04-26T22:49:40.903Z] │    Retaining 217.9 kB in 3764 objects
[task 2025-04-26T22:49:40.903Z] │    Anonymous subclass of kotlin.coroutines.jvm.internal.SuspendLambda
[task 2025-04-26T22:49:40.903Z] │    this$0 instance of org.mozilla.fenix.HomeActivity with mDestroyed = true
[task 2025-04-26T22:49:40.903Z] │    ↓ HomeActivity$onResume$1.this$0
[task 2025-04-26T22:49:40.903Z] │                              ~~~~~~
[task 2025-04-26T22:49:40.903Z] ╰→ org.mozilla.fenix.HomeActivity instance
[task 2025-04-26T22:49:40.903Z] ​     Leaking: YES (ObjectWatcher was watching this because org.mozilla.fenix.HomeActivity received Activity#onDestroy() callback and Activity#mDestroyed is true)
[task 2025-04-26T22:49:40.903Z] ​     Retaining 217.8 kB in 3763 objects
[task 2025-04-26T22:49:40.903Z] ​     key = b7e311da-862b-41df-8cd6-bc25a69668ae
[task 2025-04-26T22:49:40.903Z] ​     watchDurationMillis = 9669
[task 2025-04-26T22:49:40.903Z] ​     retainedDurationMillis = 4660
[task 2025-04-26T22:49:40.903Z] ​     mApplication instance of org.mozilla.fenix.DebugFenixApplication
[task 2025-04-26T22:49:40.903Z] ​     mBase instance of androidx.appcompat.view.ContextThemeWrapper
[task 2025-04-26T22:49:40.903Z] ====================================
[task 2025-04-26T22:49:40.903Z] 0 LIBRARY LEAKS
[task 2025-04-26T22:49:40.903Z] 
[task 2025-04-26T22:49:40.903Z] A Library Leak is a leak caused by a known bug in 3rd party code that you do not have control over.
[task 2025-04-26T22:49:40.903Z] See https://square.github.io/leakcanary/fundamentals-how-leakcanary-works/#4-categorizing-leaks
[task 2025-04-26T22:49:40.903Z] ====================================
[task 2025-04-26T22:49:40.903Z] 0 UNREACHABLE OBJECTS
[task 2025-04-26T22:49:40.903Z] 
[task 2025-04-26T22:49:40.903Z] An unreachable object is still in memory but LeakCanary could not find a strong reference path
[task 2025-04-26T22:49:40.903Z] from GC roots.
[task 2025-04-26T22:49:40.903Z] ====================================
[task 2025-04-26T22:49:40.903Z] METADATA
[task 2025-04-26T22:49:40.903Z] 
[task 2025-04-26T22:49:40.903Z] Please include this in bug reports and Stack Overflow questions.
[task 2025-04-26T22:49:40.903Z] 
[task 2025-04-26T22:49:40.903Z] Build.VERSION.SDK_INT: 34
[task 2025-04-26T22:49:40.903Z] Build.MANUFACTURER: Google
[task 2025-04-26T22:49:40.903Z] LeakCanary version: 2.14
[task 2025-04-26T22:49:40.903Z] App process name: org.mozilla.fenix.debug
[task 2025-04-26T22:49:40.903Z] Class count: 44650
[task 2025-04-26T22:49:40.903Z] Instance count: 283434
[task 2025-04-26T22:49:40.903Z] Primitive array count: 191194
[task 2025-04-26T22:49:40.903Z] Object array count: 46576
[task 2025-04-26T22:49:40.903Z] Thread count: 94
[task 2025-04-26T22:49:40.903Z] Heap total bytes: 40231211
[task 2025-04-26T22:49:40.903Z] Bitmap count: 49
[task 2025-04-26T22:49:40.903Z] Bitmap total bytes: 2842485
[task 2025-04-26T22:49:40.903Z] Large bitmap count: 0
[task 2025-04-26T22:49:40.903Z] Large bitmap total bytes: 0
[task 2025-04-26T22:49:40.903Z] Db 1: open /data/user/0/org.mozilla.fenix.debug/databases/crashes
[task 2025-04-26T22:49:40.903Z] Db 2: open /data/user/0/org.mozilla.fenix.debug/databases/manifests
[task 2025-04-26T22:49:40.903Z] Db 3: open /data/user/0/org.mozilla.fenix.debug/databases/top_sites
[task 2025-04-26T22:49:40.903Z] Db 4: open /data/user/0/org.mozilla.fenix.debug/databases/tab_collections
[task 2025-04-26T22:49:40.903Z] Db 5: open /data/user/0/org.mozilla.fenix.debug/databases/mozac_downloads_database
[task 2025-04-26T22:49:40.903Z] Db 6: open /data/user/0/org.mozilla.fenix.debug/databases/recently_closed_tabs
[task 2025-04-26T22:49:40.903Z] Db 7: open /data/user/0/org.mozilla.fenix.debug/databases/site_permissions_database
[task 2025-04-26T22:49:40.903Z] Db 8: open /data/user/0/org.mozilla.fenix.debug/databases/pocket_recommendations
[task 2025-04-26T22:49:40.903Z] Db 9: open /data/user/0/org.mozilla.fenix.debug/no_backup/androidx.work.workdb
[task 2025-04-26T22:49:40.903Z] Stats: LruCache[maxSize=3000,hits=130731,misses=277569,hitRate=32%] RandomAccess[bytes=13671041,reads=277569,travel=127667091470,range=48342125,size=59246659]
[task 2025-04-26T22:49:40.903Z] assertionTag: DetectMemoryLeaksRule
[task 2025-04-26T22:49:40.903Z] waitForRetainedDurationMillis: 5170
[task 2025-04-26T22:49:40.903Z] totalDurationMillis: 20520
[task 2025-04-26T22:49:40.903Z] Analysis duration: 10334 ms
[task 2025-04-26T22:49:40.903Z] Heap dump file path: /data/user/0/org.mozilla.fenix.debug/files/instrumentation_tests_2025-04-26_15-27-59_189.hprof
[task 2025-04-26T22:49:40.903Z] Heap dump timestamp: 1745706494534
[task 2025-04-26T22:49:40.903Z] Heap dump duration: 1187 ms
[task 2025-04-26T22:49:40.903Z] ====================================
[task 2025-04-26T22:49:40.903Z]  at leakcanary.NoLeakAssertionFailedError$Companion$throwOnApplicationLeaks$1.reportHeapAnalysis(NoLeakAssertionFailedError.kt:25)
[task 2025-04-26T22:49:40.903Z]  at leakcanary.AndroidDetectLeaksAssert.runLeakChecks(AndroidDetectLeaksAssert.kt:95)
[task 2025-04-26T22:49:40.903Z]  at leakcanary.AndroidDetectLeaksAssert.assertNoLeaks(AndroidDetectLeaksAssert.kt:34)
[task 2025-04-26T22:49:40.903Z]  at leakcanary.LeakAssertions.assertNoLeaks(LeakAssertions.kt:21)
[task 2025-04-26T22:49:40.903Z]  at org.mozilla.fenix.helpers.perf.DetectMemoryLeaksRule$apply$1.evaluate(DetectMemoryLeaksRule.kt:72)
[task 2025-04-26T22:49:40.903Z]  at leakcanary.TestDescriptionHolder$wrap$1.evaluate(TestDescriptionHolder.kt:43)
[task 2025-04-26T22:49:40.903Z]  at androidx.test.rule.ActivityTestRule$ActivityStatement.evaluate(ActivityTestRule.java:522)
[task 2025-04-26T22:49:40.903Z]  at androidx.test.rule.ActivityTestRule$ActivityStatement.evaluate(ActivityTestRule.java:522)
[task 2025-04-26T22:49:40.903Z]  at androidx.compose.ui.test.junit4.AndroidComposeTestRule$apply$1$evaluate$1.invoke(AndroidComposeTestRule.android.kt:272)
[task 2025-04-26T22:49:40.903Z]  at androidx.compose.ui.test.junit4.AndroidComposeTestRule$apply$1$evaluate$1.invoke(AndroidComposeTestRule.android.kt:271)
[task 2025-04-26T22:49:40.903Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.withDisposableContent(ComposeUiTest.android.kt:505)
[task 2025-04-26T22:49:40.903Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1$1$1.invoke(ComposeUiTest.android.kt:333)
[task 2025-04-26T22:49:40.903Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withComposeIdlingResource(ComposeUiTest.android.kt:385)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withComposeIdlingResource(ComposeUiTest.android.kt:219)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1$1.invoke(ComposeUiTest.android.kt:332)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withWindowRecomposer(ComposeUiTest.android.kt:359)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withWindowRecomposer(ComposeUiTest.android.kt:219)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1.invoke(ComposeUiTest.android.kt:331)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withTestCoroutines(ComposeUiTest.android.kt:372)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withTestCoroutines(ComposeUiTest.android.kt:219)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1.invoke(ComposeUiTest.android.kt:330)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.EspressoLink.withStrategy(EspressoLink.android.kt:66)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1.invoke(ComposeUiTest.android.kt:329)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.IdlingResourceRegistry.withRegistry(IdlingResourceRegistry.jvm.kt:155)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1.invoke(ComposeUiTest.android.kt:328)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.ComposeRootRegistry.withRegistry(ComposeRootRegistry.android.kt:146)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.runTest(ComposeUiTest.android.kt:327)
[task 2025-04-26T22:49:40.904Z]  at androidx.compose.ui.test.junit4.AndroidComposeTestRule$apply$1.evaluate(AndroidComposeTestRule.android.kt:271)
[task 2025-04-26T22:49:40.904Z]  at androidx.test.rule.GrantPermissionRule$RequestPermissionStatement.evaluate(GrantPermissionRule.java:150)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.Suite.runChild(Suite.java:128)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.Suite.runChild(Suite.java:27)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
[task 2025-04-26T22:49:40.904Z]  at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
[task 2025-04-26T22:49:40.904Z]  at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:68)
[task 2025-04-26T22:49:40.904Z]  at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
[task 2025-04-26T22:49:40.904Z]  at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:463)
[task 2025-04-26T22:49:40.904Z]  at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2402)
[task 2025-04-26T22:49:40.904Z] 
[task 2025-04-26T22:49:40.904Z]     
[task 2025-04-26T22:49:40.904Z] TEST-UNEXPECTED-FAIL | org.mozilla.fenix.ui.MainMenuTestCompose#verifyTheHomePageNewTabButtonInPrivateBrowsingModeTest | leakcanary.NoLeakAssertionFailedError: Application memory leaks were detected:
[task 2025-04-26T22:49:40.904Z] ====================================

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::UI Tests' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → UI Tests
Status: NEW → RESOLVED
Closed: 3 days ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.