Closed Bug 1777457 Opened 2 years ago Closed 2 years ago

Intermittent devtools/client/netmonitor/test/browser_net_fonts.js | Test timed out -

Categories

(DevTools :: Netmonitor, defect, P5)

defect

Tracking

(firefox104 fixed, firefox105 fixed)

RESOLVED FIXED
105 Branch
Tracking Status
firefox104 --- fixed
firefox105 --- fixed

People

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

References

Details

(Keywords: intermittent-failure, Whiteboard: [stockwell needswork:owner])

Attachments

(1 file, 1 obsolete file)

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


[task 2022-06-30T09:42:18.747Z] 09:42:18     INFO - TEST-START | devtools/client/netmonitor/test/browser_net_fonts.js
[task 2022-06-30T09:42:18.777Z] 09:42:18     INFO - GECKO(3021) | [Parent 3021: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 22 (7efe286db520) [pid = 3021] [serial = 355] [outer = 0] [url = chrome://devtools/content/inspector/index.xhtml]
[task 2022-06-30T09:42:18.777Z] 09:42:18     INFO - GECKO(3021) | [Parent 3021: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 21 (7efe286db6f0) [pid = 3021] [serial = 357] [outer = 0] [url = chrome://devtools/content/inspector/markup/markup.xhtml]
[task 2022-06-30T09:42:18.780Z] 09:42:18     INFO - GECKO(3021) | [Parent 3021: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7efdfc1ad400 == 9 [pid = 3021] [id = 138] [url = about:devtools-toolbox]
[task 2022-06-30T09:42:18.781Z] 09:42:18     INFO - GECKO(3021) | [Parent 3021: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 20 (7efe17404820) [pid = 3021] [serial = 347] [outer = 0] [url = chrome://devtools/content/netmonitor/index.html]
[task 2022-06-30T09:42:18.782Z] 09:42:18     INFO - GECKO(3021) | [Parent 3021: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 19 (7efe17404480) [pid = 3021] [serial = 344] [outer = 0] [url = about:devtools-toolbox]
[task 2022-06-30T09:42:18.860Z] 09:42:18     INFO - GECKO(3021) | [Child 5617: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f20a8f91d90) [pid = 5617] [serial = 1] [outer = 0] [url = https://example.net/document-builder.sjs?html=testnet]
[task 2022-06-30T09:42:18.864Z] 09:42:18     INFO - GECKO(3021) | [Child 5617: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f2092f7c800) [pid = 5617] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-06-30T09:42:18.866Z] 09:42:18     INFO - GECKO(3021) | [Child 5617: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f2092f80000) [pid = 5617] [serial = 3] [outer = 0] [url = https://example.net/document-builder.sjs?html=testnet]
[task 2022-06-30T09:42:18.868Z] 09:42:18     INFO - GECKO(3021) | [Child 5617, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
<...>
[task 2022-06-30T09:43:49.056Z] 09:43:49     INFO - → panel reloaded
[task 2022-06-30T09:43:49.058Z] 09:43:49     INFO - Wait for Responsive UI to reload
[task 2022-06-30T09:43:49.059Z] 09:43:49     INFO - > Network event progress: NetworkEvent: 4/3, PayloadReady: 5/3, EventTimings: 2/4, got NetMonitor:NetworkEventUpdated:EventTimings for server0.conn0.netEvent83
[task 2022-06-30T09:43:49.061Z] 09:43:49     INFO - > Network event progress: NetworkEvent: 4/3, PayloadReady: 5/3, EventTimings: 3/4, got NetMonitor:NetworkEventUpdated:EventTimings for server0.conn0.netEvent94
[task 2022-06-30T09:43:49.062Z] 09:43:49     INFO - Buffered messages finished
[task 2022-06-30T09:43:49.063Z] 09:43:49     INFO - TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_fonts.js | Test timed out - 
[task 2022-06-30T09:43:49.704Z] 09:43:49     INFO - Removing tab.
[task 2022-06-30T09:43:49.707Z] 09:43:49     INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2022-06-30T09:43:49.749Z] 09:43:49     INFO - Got event: 'TabClose' on [object XULElement].
[task 2022-06-30T09:43:49.774Z] 09:43:49     INFO - GECKO(3021) | [Parent 3021, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:162
[task 2022-06-30T09:43:49.776Z] 09:43:49     INFO - GECKO(3021) | [Parent 3021, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:162
[task 2022-06-30T09:43:49.781Z] 09:43:49     INFO - Tab removed and finished closing
[task 2022-06-30T09:43:49.798Z] 09:43:49     INFO - GECKO(3021) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-06-30T09:43:49.820Z] 09:43:49     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-06-30T09:43:49.821Z] 09:43:49     INFO - TEST-PASS | devtools/client/netmonitor/test/browser_net_fonts.js | The main process DevToolsServer has no pending connection when the test ends - 
[task 2022-06-30T09:43:49.822Z] 09:43:49     INFO - finish() was called, cleaning up...
[task 2022-06-30T09:43:49.857Z] 09:43:49     INFO - GECKO(3021) | [Parent 3021, IPDL Background] WARNING: IPC Connection Error: [Parent][PBackgroundParent] RunMessage(msgname=PRemoteWorkerService::Msg___delete__) Channel closing: too late to send/recv, messages will be lost: file /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1876
[task 2022-06-30T09:43:49.862Z] 09:43:49     INFO - GECKO(3021) | [Parent 3021, Compositor] WARNING: IPC Connection Error: [Parent][PImageBridgeParent] RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost: file /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1876
[task 2022-06-30T09:43:49.869Z] 09:43:49     INFO - GECKO(3021) | [Parent 3021: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7efe10d7c800 == 6 [pid = 3021] [id = 147] [url = chrome://devtools/content/netmonitor/index.html]
[task 2022-06-30T09:43:49.876Z] 09:43:49     INFO - GECKO(3021) | MEMORY STAT | vsize 3806MB | residentFast 644MB | heapAllocated 297MB
[task 2022-06-30T09:43:49.879Z] 09:43:49     INFO - TEST-OK | devtools/client/netmonitor/test/browser_net_fonts.js | took 91133ms
[task 2022-06-30T09:43:49.920Z] 09:43:49     INFO - GECKO(3021) | [Child 3124: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7efeae68c400 == 1 [pid = 3124] [id = 33]
[task 2022-06-30T09:43:49.921Z] 09:43:49     INFO - GECKO(3021) | [Child 3124: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7efec9791820) [pid = 3124] [serial = 69] [outer = 0]
[task 2022-06-30T09:43:49.922Z] 09:43:49     INFO - GECKO(3021) | [Child 3124: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7efeae68cc00) [pid = 3124] [serial = 70] [outer = 7efec9791820]
[task 2022-06-30T09:43:49.986Z] 09:43:49     INFO - GECKO(3021) | [Child 3190, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-06-30T09:43:50.013Z] 09:43:50     INFO - GECKO(3021) | [Child 5675: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fb57864f000 == 0 [pid = 5675] [id = 0] [url = http://example.com/browser/devtools/client/netmonitor/test/html_fonts-test-page.html?name=fonts]
[task 2022-06-30T09:43:50.039Z] 09:43:50     INFO - checking window state
[task 2022-06-30T09:43:50.134Z] 09:43:50     INFO - GECKO(3021) | [Child 5675: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fb58e591d90) [pid = 5675] [serial = 1] [outer = 0] [url = http://example.com/browser/devtools/client/netmonitor/test/html_fonts-test-page.html?name=fonts]
[task 2022-06-30T09:43:50.148Z] 09:43:50     INFO - GECKO(3021) | [Child 5675: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fb5786bf800) [pid = 5675] [serial = 5] [outer = 0] [url = http://example.com/browser/devtools/client/netmonitor/test/html_fonts-test-page.html?name=fonts]
[task 2022-06-30T09:43:50.153Z] 09:43:50     INFO - GECKO(3021) | [Child 5675, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-06-30T09:43:50.160Z] 09:43:50     INFO - GECKO(3021) | [Child 5675, Main Thread] WARNING: NS_ENSURE_TRUE(InitStaticMembers()) failed: file /builds/worker/workspace/obj-build/dist/include/mozilla/Preferences.h:129
[task 2022-06-30T09:43:50.174Z] 09:43:50     INFO - GECKO(3021) | [Child 5675, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4595
[task 2022-06-30T09:43:50.193Z] 09:43:50     INFO - TEST-START | devtools/client/netmonitor/test/browser_net_footer-summary.js

There have been 76 total failures in the last 7 days, recent failure log.
Affected platforms are:

  • linux1804-64-asan-qr
  • linux1804-64-qr
  • linux1804-64-shippable-qr
Flags: needinfo?(odvarko)
Whiteboard: [stockwell needswork:owner]

Bomsy, can you please take a look, thank you.

Flags: needinfo?(odvarko) → needinfo?(hmanilla)

Bomsy on PTO this week, I will take it.

Flags: needinfo?(hmanilla) → needinfo?(jdescottes)

Likely linked to Bug 1764349

Flags: needinfo?(jdescottes)
See Also: → 1764349

There are potentially several sources for the recent netmonitor intermittent failures.
One of them is that we have several helpers to "wait" for requests, and they have a logic so that when they spot a request, they will wait for the request to be
completed.
However if a navigation occurs in the middle, the corresponding resource will be cleared and the updates will not be processed.
So here we emit a test-only event when the netmonitor attempts to clear resources, so that test helpers can update accordingly.

depends on D152726

This seems necessary to fix the har test intermittents

Seems to improve with the two main offenders: browser_net_fonts.js and browser_net_har_copy_all_as_har.js (Bug 1767792) but the suite is still very flaky ...

Comment on attachment 9287012 [details]
Bug 1777457 - [devtools] Ignore actor destroyed errors in Firefox data provider

Revision D152727 was moved to bug 1767792. Setting attachment 9287012 [details] to obsolete.

Attachment #9287012 - Attachment is obsolete: true
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/08a0a6a25123 [devtools] Update netmonitor test helpers when resources are cleared r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: