Intermittent browser/base/content/test/performance/browser_appmenu.js | reflow at adjustArrowPosition@chrome://global/content/bindings/popup.xml was encountered 5 times,
Categories
(Firefox :: Menus, defect, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: smaug)
References
Details
(Keywords: intermittent-failure, Whiteboard: [retriggered])
Attachments
(1 file, 4 obsolete files)
807 bytes,
patch
|
mconley
:
review+
|
Details | Diff | Splinter Review |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
Started to fail from: https://treeherder.mozilla.org/#/jobs?repo=autoland&searchStr=os%2Cx%2C10.10%2Copt%2Cmochitests%2Cwith%2Ce10s%2Ctest-macosx64%2Fopt-mochitest-browser-chrome-e10s-3%2Cm-e10s%28bc3%29&revision=9f90c6e59169405e873e76f9c72e9b6fa70877ee&selectedJob=224170454 from https://bugzilla.mozilla.org/show_bug.cgi?id=1521719
:standard8 could you please take a look?
Comment 17•6 years ago
|
||
I don't think it is my code change. The only code change is currently in code that's preffed off by default, the CSS changes should also not be affecting anything since they're only a one-off anyway.
Cristina, I just noticed, my revision - 9f90c6e59169 - has browser_appmenu.js as bc3, however revision fb4f75995571 (the one with all green bc3) doesn't have browser_appmenu.js listed in bc3 - it is in bc5. So at some stage between those, the split of tests got re-arranged.
Therefore I think the current range is wrong. Looking a few changesets further back in the list, I think 2e27f3f1ebc6 (bug 1520607) would be a likely candidate.
Comment hidden (Intermittent Failures Robot) |
Comment 19•6 years ago
|
||
:standard8 thank you for looking.
:Gijs could you please take a look at comment 17?
Comment 20•6 years ago
|
||
(In reply to Cristina Coroiu [:ccoroiu] from comment #19)
:standard8 thank you for looking.
:Gijs could you please take a look at comment 17?
I can't reproduce locally, unfortunately.
The log has:
16:07:56 INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_appmenu.js | reflow at adjustArrowPosition@chrome://global/content/bindings/popup.xml was encountered 17 times,
16:07:56 INFO - it was expected to happen up to 3 times. - false == true - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/performance/head.js :: reportUnexpectedReflows :: line 180
16:07:56 INFO - Stack trace:
16:07:56 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:reportUnexpectedReflows:180
16:07:56 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:withPerfObserver:637
16:07:56 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/browser_appmenu.js:null:67
16:07:56 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1109
16:07:56 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1100
16:07:56 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:998
16:07:56 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:803
16:07:56 INFO - Full stack (hit 17 times):
16:07:56 INFO - adjustArrowPosition@chrome://global/content/bindings/popup.xml:290:13
16:07:56 INFO - onxblpopuppositioned@chrome://global/content/bindings/popup.xml:389:9
16:07:56 INFO -
So we're trying to show the popup in https://searchfox.org/mozilla-central/source/browser/base/content/test/performance/browser_appmenu.js#66-70 and we see https://searchfox.org/mozilla-central/source/toolkit/content/widgets/popup.xml#290 being hit loads, which means we're getting loads of popuppositioned events somehow. I don't understand why that'd be the case. Neil, can you help?
Comment hidden (Intermittent Failures Robot) |
Comment 22•6 years ago
|
||
Over the last 7 days there are 39 failures on this bug. All of the failures happen on osx-10-10.
Here is the latest log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=226419778&repo=autoland&lineNumber=985
22:28:27 INFO - Entering test bound
22:28:27 INFO - TEST-PASS | browser/base/content/test/performance/browser_appmenu.js | The panel is closed to begin with. - "closed" == "closed" -
22:28:27 INFO - Buffered messages logged at 22:28:27
22:28:27 INFO - TEST-FAIL | browser/base/content/test/performance/browser_appmenu.js | known reflow at openPopup/this._openPopupPromise<@resource:///modules/PanelMultiView.jsm was encountered 1 times -
22:28:27 INFO - Full stack:
22:28:27 INFO - openPopup/this._openPopupPromise<@resource:///modules/PanelMultiView.jsm:520:9
22:28:27 INFO -
22:28:27 INFO - Buffered messages finished
22:28:27 INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_appmenu.js | reflow at adjustArrowPosition@chrome://global/content/bindings/popup.xml was encountered 14 times,
22:28:27 INFO - it was expected to happen up to 3 times. - false == true - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/performance/head.js :: reportUnexpectedReflows :: line 180
22:28:27 INFO - Stack trace:
22:28:27 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:reportUnexpectedReflows:180
22:28:27 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:withPerfObserver:637
22:28:27 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/browser_appmenu.js:null:67
22:28:27 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1106
22:28:27 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1097
22:28:27 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:995
22:28:27 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:803
22:28:27 INFO - Full stack (hit 14 times):
22:28:27 INFO - adjustArrowPosition@chrome://global/content/bindings/popup.xml:290:13
22:28:27 INFO - onxblpopuppositioned@chrome://global/content/bindings/popup.xml:389:9
22:28:27 INFO -
22:28:27 INFO - TEST-FAIL | browser/base/content/test/performance/browser_appmenu.js | known reflow at _calculateMaxHeight@resource:///modules/PanelMultiView.jsm was encountered 7 times -
22:28:27 INFO - Full stack:
22:28:27 INFO - _calculateMaxHeight@resource:///modules/PanelMultiView.jsm:1061:9
22:28:27 INFO - handleEvent@resource:///modules/PanelMultiView.jsm:1122:27
22:28:27 INFO - EventListener.handleEventconnect@resource:///modules/PanelMultiView.jsm:391:5
22:28:27 INFO - openPopup/this._openPopupPromise<@resource:///modules/PanelMultiView.jsm:500:11
22:28:27 INFO - promise callbackopenPopup@resource:///modules/PanelMultiView.jsm:486:37
22:28:27 INFO - asyncopenPopup@resource:///modules/PanelMultiView.jsm:272:47
22:28:27 INFO - asyncshow/<@chrome://browser/content/customizableui/panelUI.js:211:13
22:28:27 INFO - asyncshow@chrome://browser/content/customizableui/panelUI.js:197:6
22:28:27 INFO - openMainMenu/<@resource://testing-common/CustomizableUITestUtils.jsm:80:41
22:28:27 INFO - openPanelMultiView@resource://testing-common/CustomizableUITestUtils.jsm:59:11
22:28:27 INFO - asyncopenMainMenu@resource://testing-common/CustomizableUITestUtils.jsm:79:11
22:28:27 INFO - async*@chrome://mochitests/content/browser/browser/base/content/test/performance/browser_appmenu.js:67:32
22:28:27 INFO - withPerfObserver@chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:633:3
22:28:27 INFO - async*@chrome://mochitests/content/browser/browser/base/content/test/performance/browser_appmenu.js:67:9
22:28:27 INFO - AsyncTester_execTest/<@chrome://mochikit/content/browser-test.js:1106:34
22:28:27 INFO - asyncTester_execTest@chrome://mochikit/content/browser-test.js:1097:16
22:28:27 INFO - nextTest/<@chrome://mochikit/content/browser-test.js:995:9
22:28:27 INFO - SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:803:59
Comment 23•6 years ago
|
||
(In reply to Stefan Hindli [:stefan_hindli] from comment #22)
Over the last 7 days there are 39 failures on this bug. All of the failures happen on osx-10-10.
I already diagnosed why that is, and I'm waiting on an answer from Neil to comment #20. Needinfo'ing extra people won't help.
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 25•6 years ago
|
||
I'm having hard time to see how the test can work with popuppositioned, which is dispatched as a result of a reflow, and then, when the event is dispatched, the whole frame tree is marked dirty again.
And since bug 1506376 let's us trigger RefreshDriver more often, causing interruptible reflow, but also triggering popuppositioned firing (which dirties frame tree, causing reflow...)
Assignee | ||
Comment 26•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d05b03fbed68d43d0fd9b9992cb1f4d5b0d59cb7
It is not super clear to me why we want addListenerForAllEvents usage here at
all, since that forces reflows even in cases where there wouldn't be such normally.
Especially any event which is dispatched because of a reflow won't work too well with that setup, if the event has listeners.
But this patch just filters out popuppositioned. Let's see what tryserver thinks about it. Locally tested only on Linux.
Assignee | ||
Comment 27•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=dd38e4407d6e1072dcf457264995d8f0c41e5685
apparently there can be still a reflow
Assignee | ||
Comment 28•6 years ago
|
||
Assignee | ||
Comment 29•6 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 32•6 years ago
|
||
Assignee | ||
Comment 33•6 years ago
|
||
17 seems to be the magic number.
Comment 34•6 years ago
|
||
Comment 35•6 years ago
|
||
Comment 36•6 years ago
|
||
bugherder |
Comment 37•6 years ago
|
||
Hi, after this landed it caused a rise in intermittents on devtools/client/inspector/animation/test/* tests https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&searchStr=windows%2C10%2Cx64%2Cdebug%2Cmochitests%2Cwith%2Ce10s%2Ctest-windows10-64%2Fdebug-mochitest-devtools-chrome-e10s-4%2Cm-e10s%28dt4%29&group_state=expanded&fromchange=c7fdf51b2b749cfde9df6742277c9fd2f7500a49&tochange=9f93017d5be057df482f938b4cff7872208214f1&selectedJob=228117419
also these TV failures appeared on central bug 1527550 and became tier 1 on autoland here: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=228122257&repo=autoland&lineNumber=1417
Olli, please take a look over this. Thank you.
Assignee | ||
Comment 38•6 years ago
|
||
oh, more reflows. Given the setup, it can be really anything. If something else is slow (for whatever reasons) but vsync is not, then we may get quite a few reflows.
Assignee | ||
Comment 39•6 years ago
|
||
I'll increase the reflow number and discuss with mconley.
Comment 40•6 years ago
|
||
Comment 41•6 years ago
|
||
bugherder |
Comment 44•6 years ago
|
||
bugherder |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 47•6 years ago
|
||
This is still happening: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=231628867&repo=mozilla-beta&lineNumber=978
05:45:01 INFO - TEST-PASS | browser/base/content/test/performance/browser_appmenu.js | The panel is closed to begin with. - "closed" == "closed" -
05:45:01 INFO - Buffered messages logged at 05:45:01
05:45:01 INFO - TEST-FAIL | browser/base/content/test/performance/browser_appmenu.js | known reflow at openPopup/this._openPopupPromise<@resource:///modules/PanelMultiView.jsm was encountered 1 times -
05:45:01 INFO - Full stack:
05:45:01 INFO - openPopup/this._openPopupPromise<@resource:///modules/PanelMultiView.jsm:520:9
05:45:01 INFO -
05:45:01 INFO - Buffered messages finished
05:45:01 INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_appmenu.js | reflow at adjustArrowPosition@chrome://global/content/bindings/popup.xml was encountered 17 times,
05:45:01 INFO - it was expected to happen up to 3 times. - false == true - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/performance/head.js :: reportUnexpectedReflows :: line 180
05:45:01 INFO - Stack trace:
05:45:01 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:reportUnexpectedReflows:180
05:45:01 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:withPerfObserver:637
05:45:01 INFO - Full stack (hit 17 times):
05:45:01 INFO - adjustArrowPosition@chrome://global/content/bindings/popup.xml:290:13
05:45:01 INFO - onxblpopuppositioned@chrome://global/content/bindings/popup.xml:389:9
05:45:01 INFO -
05:45:01 INFO - TEST-FAIL | browser/base/content/test/performance/browser_appmenu.js | known reflow at _calculateMaxHeight@resource:///modules/PanelMultiView.jsm was encountered 7 times -
05:45:01 INFO - Full stack:
05:45:01 INFO - _calculateMaxHeight@resource:///modules/PanelMultiView.jsm:1061:9
05:45:01 INFO - handleEvent@resource:///modules/PanelMultiView.jsm:1122:27
05:45:01 INFO -
05:45:01 INFO - Full stack:
05:45:01 INFO - _calculateMaxHeight@resource:///modules/PanelMultiView.jsm:1062:1
05:45:01 INFO - handleEvent@resource:///modules/PanelMultiView.jsm:1122:27
05:45:01 INFO -
05:45:01 INFO - Full stack:
05:45:01 INFO - _calculateMaxHeight@resource:///modules/PanelMultiView.jsm:1063:1
05:45:01 INFO - handleEvent@resource:///modules/PanelMultiView.jsm:1122:27
05:45:01 INFO -
05:45:01 INFO - Full stack:
05:45:01 INFO - _calculateMaxHeight@resource:///modules/PanelMultiView.jsm:1064:1
05:45:01 INFO - handleEvent@resource:///modules/PanelMultiView.jsm:1122:27
05:45:01 INFO -
05:45:01 INFO - Full stack:
05:45:01 INFO - _calculateMaxHeight@resource:///modules/PanelMultiView.jsm:1072:5
05:45:01 INFO - handleEvent@resource:///modules/PanelMultiView.jsm:1122:27
05:45:01 INFO -
05:45:01 INFO - Full stack (hit 2 times):
05:45:01 INFO - _calculateMaxHeight@resource:///modules/PanelMultiView.jsm:1075:11
05:45:01 INFO - handleEvent@resource:///modules/PanelMultiView.jsm:1122:27
Assignee | ||
Comment 48•6 years ago
|
||
ok, then it is about something else than the behavior change which bug 1506376 would cause, since that got backed out.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Updated•5 years ago
|
Comment 52•4 years ago
|
||
Before my patch we were skipping some popuppositioned events, so it's
not unexpected that this count can go up as a result.
Comment 53•4 years ago
|
||
Comment 54•4 years ago
|
||
Comment on attachment 9179616 [details]
Bug 1489259 - Increase the number of allowed reflows in browser_appmenu.js. r=mconley,gijs
Revision D92444 was moved to bug 1666497. Setting attachment 9179616 [details] to obsolete.
Comment 55•4 years ago
|
||
Err, wrong bug :(
Comment 56•4 years ago
|
||
Backed out for conflicting with the backout of Bug 1666497
Updated•4 years ago
|
Description
•