Closed Bug 1758768 Opened 2 years ago Closed 2 years ago

Frequent Windows debug devtools/client/inspector/rules/test/browser_rules_user-property-reset.js | leaked 2 window(s) until shutdown [url = about:devtools-toolbox]

Categories

(DevTools :: Inspector: Rules, defect, P2)

defect

Tracking

(firefox-esr91 unaffected, firefox99 unaffected, firefox100 fixed, firefox101 fixed)

RESOLVED FIXED
101 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox99 --- unaffected
firefox100 --- fixed
firefox101 --- fixed

People

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

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

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


[task 2022-03-09T16:42:48.722Z] 16:42:48     INFO - TEST-START | devtools/client/inspector/rules/test/browser_rules_user-property-reset.js
[task 2022-03-09T16:42:48.732Z] 16:42:48     INFO - GECKO(1120) | [Child 7992, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:506
[task 2022-03-09T16:42:48.745Z] 16:42:48     INFO - GECKO(1120) | [Child 8164: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 21fcde08400 == 1 [pid = 8164] [id = 102]
[task 2022-03-09T16:42:48.747Z] 16:42:48     INFO - GECKO(1120) | [Child 8164: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (21fc8c69430) [pid = 8164] [serial = 312] [outer = 0]
[task 2022-03-09T16:42:48.748Z] 16:42:48     INFO - GECKO(1120) | [Child 8164: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (21fcde08c00) [pid = 8164] [serial = 313] [outer = 21fc8c69430]
[task 2022-03-09T16:42:48.776Z] 16:42:48     INFO - GECKO(1120) | [Child 7992: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1cef2606000 == 0 [pid = 7992] [id = 0] [url = http://example.com/browser/devtools/client/inspector/rules/test/doc_author-sheet.html]
[task 2022-03-09T16:42:48.794Z] 16:42:48     INFO - GECKO(1120) | [Child 8164: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (21fcde14400) [pid = 8164] [serial = 314] [outer = 21fc8c69430]
[task 2022-03-09T16:42:48.814Z] 16:42:48     INFO - GECKO(1120) | [Child 7992, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:506
[task 2022-03-09T16:42:48.842Z] 16:42:48     INFO - GECKO(1120) | [Child 7992, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:506
[task 2022-03-09T16:42:48.851Z] 16:42:48     INFO - GECKO(1120) | [Child 7992: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (1ceed467430) [pid = 7992] [serial = 1] [outer = 0] [url = http://example.com/browser/devtools/client/inspector/rules/test/doc_author-sheet.html]
[task 2022-03-09T16:42:48.852Z] 16:42:48     INFO - GECKO(1120) | [Child 7992: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (1cef260b800) [pid = 7992] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-03-09T16:42:48.852Z] 16:42:48     INFO - GECKO(1120) | [Child 7992: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (1cef260e000) [pid = 7992] [serial = 3] [outer = 0] [url = http://example.com/browser/devtools/client/inspector/rules/test/doc_author-sheet.html]
[task 2022-03-09T16:42:48.861Z] 16:42:48     INFO - GECKO(1120) | [Child 7992, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:506
[task 2022-03-09T16:42:48.867Z] 16:42:48     INFO - GECKO(1120) | [Child 7992, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:506
[task 2022-03-09T16:42:48.871Z] 16:42:48     INFO - GECKO(1120) | [Child 7992, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-03-09T16:42:48.874Z] 16:42:48     INFO - GECKO(1120) | [2022-03-09T16:42:48Z WARN  audioipc2::ipccore] AudioIPC Server RPC: EventLoop drop - closing connection for Token(7) failed: Custom { kind: NotFound, error: "I/O source not registered with `Registry`" }
[task 2022-03-09T16:42:48.874Z] 16:42:48     INFO - GECKO(1120) | [Child 7992, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:506
<...>
[task 2022-03-09T16:42:58.438Z] 16:42:58     INFO - GECKO(1120) | [Parent 8336: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (21848912800) [pid = 8336] [serial = 1017] [outer = 0] [url = about:blank]
[task 2022-03-09T16:42:58.453Z] 16:42:58     INFO - GECKO(1120) | [Parent 8336, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-03-09T16:42:58.525Z] 16:42:58     INFO - GECKO(1120) | [Parent 8336, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4470
[task 2022-03-09T16:42:58.555Z] 16:42:58     INFO - TEST-INFO | Main app process: exit 0
[task 2022-03-09T16:42:58.556Z] 16:42:58     INFO - TEST-INFO | Confirming we saw 731 DOCSHELL created and 731 destroyed log strings.
[task 2022-03-09T16:42:58.556Z] 16:42:58     INFO - TEST-INFO | Confirming we saw 1766 DOMWINDOW created and 1766 destroyed log strings.
[task 2022-03-09T16:42:58.557Z] 16:42:58    ERROR - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_user-property-reset.js | leaked 2 window(s) until shutdown [url = about:devtools-toolbox]
[task 2022-03-09T16:42:58.557Z] 16:42:58    ERROR - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_user-property-reset.js | leaked 1 window(s) until shutdown [url = about:blank]
[task 2022-03-09T16:42:58.557Z] 16:42:58    ERROR - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_user-property-reset.js | leaked 1 window(s) until shutdown [url = chrome://devtools/content/inspector/index.xhtml]
[task 2022-03-09T16:42:58.558Z] 16:42:58     INFO - TEST-INFO | devtools/client/inspector/rules/test/browser_rules_user-property-reset.js | windows(s) leaked: [pid = 8336] [serial = 1017], [pid = 8336] [serial = 1015], [pid = 8336] [serial = 1013], [pid = 8336] [serial = 1016]
[task 2022-03-09T16:42:58.558Z] 16:42:58     INFO - TEST-INFO | devtools/client/inspector/rules/test/browser_rules_user-property-reset.js | This test created 1 hidden window(s)

Backfill range and retriggers this shows that Bug 1757193 is the culprit for this. But it doesn't really look like it could be the culprit from the files that it changed.
Mark, can you please take a look at this. Thank you!

Flags: needinfo?(standard8)

(In reply to Iulian Moraru from comment #1)

Backfill range and retriggers this shows that Bug 1757193 is the culprit for this. But it doesn't really look like it could be the culprit from the files that it changed.

The code there is disabled by default so it would be very hard for it to impact anything else, and as you say, it also isn't related to the inspect, so I think that's showing the wrong thing. Maybe it is older? or possibly timing related and didn't show up as much before?

Flags: needinfo?(standard8)
Severity: S4 → --
Keywords: regression
Priority: P5 → --
Summary: Intermittent devtools/client/inspector/rules/test/browser_rules_user-property-reset.js | leaked 2 window(s) until shutdown [url = about:devtools-toolbox] → Frequent Windows debug devtools/client/inspector/rules/test/browser_rules_user-property-reset.js | leaked 2 window(s) until shutdown [url = about:devtools-toolbox]
Whiteboard: [devtools-triage]

Hi Hubert! Could this be caused by your changes from Bug 1740202?
This is the backfill range and retriggers I know that it points to Bug 1757193 but your changes look more related to the issue.

Flags: needinfo?(hmanilla)

Bomsy will take a look, we can skip on windows debug if no solution is found

Whiteboard: [devtools-triage]

There is really nothing odd about this test, and the logs also don't show anything interesting.
This is the last test from devtools/client/inspector/rules/test/browser_part2.ini, so maybe something changed in that suite, or in the way we shutdown tests?

I wonder if skipping the test would just move the intermittent to the previous test from the suite: browser_rules_user-agent-styles-uneditable.js

Has Regression Range: --- → yes

Forwarding the request to jonco.

Maybe we could try bisecting the patches in that range?

Flags: needinfo?(jdemooij) → needinfo?(jcoppeard)

I will try to bisect!
Clearing the ni? for bomsy, it's not related to the bug we initially suspected.

Flags: needinfo?(hmanilla)

intermittent only starts with the last patch from the stack: https://hg.mozilla.org/integration/autoland/rev/28829816a629b28125db3b4c65c5e22518e167e8

The try push is at https://treeherder.mozilla.org/jobs?repo=try&revision=5c8906d7e3b2a00cfc27e18c3a8001b8c754703e. It's called "part5" because I forgot to update the push message, but it points to part 6. The real part 5 was at https://treeherder.mozilla.org/jobs?repo=try&revision=dbae1c6859550876ec259ff15d53a5c90a1f9719 and has no failure.

(In reply to Julian Descottes [:jdescottes] from comment #15)

intermittent only starts with the last patch from the stack: https://hg.mozilla.org/integration/autoland/rev/28829816a629b28125db3b4c65c5e22518e167e8

Thanks for bisecting. That patch does seem to have triggered this.

Flags: needinfo?(jcoppeard)
Assignee: nobody → jcoppeard

Set release status flags based on info from the regressing bug 1643586

Severity: -- → S4
Priority: -- → P2

Something about bug 1643586 seems to have triggered this to start failing in CI, but I can reproduce this failure locally before this landed. I'm using a linux optdebug build with MOZ_HEADLESS=1 and it's failing pretty much every time. I think it's sensitive to GC timing.

I can reproduce this at least as far back as bug 1737865.

Assignee: jcoppeard → nobody
No longer regressed by: 1643586
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Thanks for the investigation :jonco. Let's skip this on windows debug for now.

Blocks: 1763787

Filed Bug 1763787 for the follow up investigation.

Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6070125c444e
[devtools] Skip browser_rules_user-property-reset.js on windows debug r=ochameau
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

The patch landed in nightly and beta is affected.
:jdescottes, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(jdescottes)

Comment on attachment 9271432 [details]
Bug 1758768 - [devtools] Skip browser_rules_user-property-reset.js on windows debug

Beta/Release Uplift Approval Request

  • User impact if declined: skip test to avoid intermittent failures
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky):
  • String changes made/needed:
Flags: needinfo?(jdescottes)
Attachment #9271432 - Flags: approval-mozilla-beta?

Comment on attachment 9271432 [details]
Bug 1758768 - [devtools] Skip browser_rules_user-property-reset.js on windows debug

Approved for 100.0b5

Attachment #9271432 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: