Closed Bug 1705181 Opened 3 years ago Closed 3 years ago

Intermittent org.mozilla.geckoview.test.SessionLifecycleTest#asyncScriptsSuspendedWhileInactive | java.lang.AssertionError: requestAnimationFrame should be called about once a second

Categories

(GeckoView :: General, defect, P2)

Unspecified
All

Tracking

(firefox88 unaffected, firefox89 wontfix, firefox90 fixed)

RESOLVED FIXED
90 Branch
Tracking Status
firefox88 --- unaffected
firefox89 --- wontfix
firefox90 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: agi)

References

(Regression)

Details

(Keywords: assertion, intermittent-failure, regression)

Attachments

(1 file)

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


[task 2021-04-14T18:11:32.156Z] 18:11:32     INFO -  04-14 19:11:30.904 D/GeckoViewProgress( 3169): receiveMessage: MozAfterPaint
[task 2021-04-14T18:11:32.156Z] 18:11:32     INFO -  04-14 19:11:30.971 E/GeckoSessionTestRule( 3169): after evaluate
[task 2021-04-14T18:11:32.157Z] 18:11:32     INFO -  04-14 19:11:30.972 D/GeckoViewConsole( 3169): onEvent GeckoView:WebExtension:PortMessageFromApp {"message":{"id":"3ab8a4c2-b26f-4a3b-860c-2ce6114667a6","args":{"oldPrefs":{"privacy.reduceTimerPrecision":true,"layout.throttled_frame_rate":null}},"type":"RestorePrefs"}}
[task 2021-04-14T18:11:32.157Z] 18:11:32     INFO -  04-14 19:11:30.978 E/GeckoSessionTestRule( 3169): after performTestEndCheck
[task 2021-04-14T18:11:32.157Z] 18:11:32     INFO -  04-14 19:11:30.980 D/GeckoViewContent( 3169): handleEvent: DOMWindowClose
[task 2021-04-14T18:11:32.157Z] 18:11:32     INFO -  04-14 19:11:30.982 D/GeckoViewConsole( 3169): onEvent GeckoView:WebExtension:List null
[task 2021-04-14T18:11:32.157Z] 18:11:32     INFO -  04-14 19:11:30.988 E/GeckoSessionTestRule( 3169): test_end c5ee677f-bc83-49bd-9e28-2d35f3d0f059 asyncScriptsSuspendedWhileInactive(org.mozilla.geckoview.test.SessionLifecycleTest)
[task 2021-04-14T18:11:32.157Z] 18:11:32  WARNING -  TEST-UNEXPECTED-FAIL | org.mozilla.geckoview.test.SessionLifecycleTest.asyncScriptsSuspendedWhileInactive | java.lang.AssertionError: requestAnimationFrame should be called about once a second
[task 2021-04-14T18:11:32.157Z] 18:11:32     INFO -  TEST-INFO took 4052ms```

Please try to identify what change causes this issue.

Flags: needinfo?(etoop)

Removing priority so that we can retriage.

Flags: needinfo?(etoop)
Priority: P5 → --

Agi, do you know who might have changed this code recently?

Flags: needinfo?(agi)
Assignee: nobody → agi
Priority: -- → P2
Whiteboard: [geckoview:m91?]
Flags: needinfo?(agi) → needinfo?(continuation)
Regressed by: 1704545
Has Regression Range: --- → yes
Keywords: regression

Looking at a few logs, it looks like it is expecting a value of 500ms, but instead it is getting values that are slightly smaller, like 499.86, 499.93, and 499.98499999999996. So there may just be a very small regression.

I think my first patch should not change behavior, unless Android is triggering the remote-browser-shown observer notification in some way I don't see in SearchFox. The second patch renames some functions so it really shouldn't change the behavior.

The third patch changes some process deprioritization from happening when ipc:browser-destroyed fires (in BrowserHost::DestroyComplete()) to BrowserParent::Deactivated(). Maybe we're ending up doing some deprioritization where we didn't before and that causes something to take a tiny bit longer?

The easiest fix here looks like it would be to change the threshold from 500ms to 499.5ms, but I don't know how important the precise value here is.

Flags: needinfo?(continuation)

Thanks Andrew! Looks like reducing the rAF rate required is enough, that value was already an approximation so that should be fine. https://treeherder.mozilla.org/jobs?repo=try&revision=dfdc2e6127cf656004406ccaf1fc6b384d00bc42

Pushed by asferro@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/03368909cd5c
Adjust rAF rate for asyncScriptsSuspendedWhileInactive. r=owlish
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Whiteboard: [geckoview:m91?]

6c6f5da9-bf33-4082-a19d-7d99e8083d97 Mass rename intermittents due to Bug 1723034.

Summary: Intermittent org.mozilla.geckoview.test.SessionLifecycleTest.asyncScriptsSuspendedWhileInactive | java.lang.AssertionError: requestAnimationFrame should be called about once a second → Intermittent org.mozilla.geckoview.test.SessionLifecycleTest#asyncScriptsSuspendedWhileInactive | java.lang.AssertionError: requestAnimationFrame should be called about once a second
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: