Closed Bug 1672660 Opened 4 years ago Closed 4 years ago

Intermittent devtools/shared/resources/tests/browser_browser_resources_console_messages.js | leaked 1 docShell(s) until shutdown

Categories

(DevTools :: General, defect, P5)

defect

Tracking

(Fission Milestone:M7, firefox-esr78 unaffected, firefox82 unaffected, firefox83 unaffected, firefox84 fixed)

RESOLVED FIXED
84 Branch
Fission Milestone M7
Tracking Status
firefox-esr78 --- unaffected
firefox82 --- unaffected
firefox83 --- unaffected
firefox84 --- fixed

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: dt-fission-m2-mvp)

Attachments

(1 file)

Filed by: rmaries [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=319349193&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OfSzWVwcSYGgHmLLSfItIg/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OfSzWVwcSYGgHmLLSfItIg/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


[task 2020-10-22T11:19:02.907Z] 11:19:02     INFO - TEST-START | devtools/shared/resources/tests/browser_browser_resources_console_messages.js
[task 2020-10-22T11:19:21.882Z] 11:19:21     INFO - TEST-INFO | Confirming we saw 43 DOMWINDOW created and 43 destroyed log strings.
[task 2020-10-22T11:19:21.882Z] 11:19:21    ERROR - TEST-UNEXPECTED-FAIL | devtools/shared/resources/tests/browser_browser_resources_console_messages.js | leaked 1 docShell(s) until shutdown
[task 2020-10-22T11:19:21.882Z] 11:19:21     INFO - TEST-INFO | devtools/shared/resources/tests/browser_browser_resources_console_messages.js | docShell(s) leaked: [pid = 26056] [id = 1]
[task 2020-10-22T11:19:21.882Z] 11:19:21     INFO - TEST-INFO | devtools/shared/resources/tests/browser_browser_resources_console_messages.js | This test created 1 hidden window(s)
[task 2020-10-22T11:19:21.882Z] 11:19:21     INFO - TEST-INFO | devtools/shared/resources/tests/browser_browser_resources_console_messages.js | This test created 1 hidden docshell(s)
[task 2020-10-22T11:19:21.883Z] 11:19:21     INFO - runtests.py | Application ran for: 0:00:27.857436
[task 2020-10-22T11:19:21.883Z] 11:19:21     INFO - zombiecheck | Reading PID log: /tmp/tmp_KKOMVpidlog
[task 2020-10-22T11:19:21.883Z] 11:19:21     INFO - ==> process 25905 launched child process 25926
[task 2020-10-22T11:19:21.884Z] 11:19:21     INFO - ==> process 25905 launched child process 26056
[task 2020-10-22T11:19:21.884Z] 11:19:21     INFO - ==> process 25905 launched child process 26079
[task 2020-10-22T11:19:21.885Z] 11:19:21     INFO - ==> process 25905 launched child process 26136
[task 2020-10-22T11:19:21.886Z] 11:19:21     INFO - ==> process 25905 launched child process 26165
[task 2020-10-22T11:19:21.888Z] 11:19:21     INFO - ==> process 25905 launched child process 26225
[task 2020-10-22T11:19:21.889Z] 11:19:21     INFO - zombiecheck | Checking for orphan process with PID: 25926
[task 2020-10-22T11:19:21.890Z] 11:19:21     INFO - zombiecheck | Checking for orphan process with PID: 26056
[task 2020-10-22T11:19:21.891Z] 11:19:21     INFO - zombiecheck | Checking for orphan process with PID: 26225
[task 2020-10-22T11:19:21.892Z] 11:19:21     INFO - zombiecheck | Checking for orphan process with PID: 26165
[task 2020-10-22T11:19:21.893Z] 11:19:21     INFO - zombiecheck | Checking for orphan process with PID: 26136
[task 2020-10-22T11:19:21.895Z] 11:19:21     INFO - zombiecheck | Checking for orphan process with PID: 26079
[task 2020-10-22T11:19:21.896Z] 11:19:21     INFO - Stopping web server
[task 2020-10-22T11:19:21.897Z] 11:19:21     INFO - Stopping web socket server
[task 2020-10-22T11:19:21.918Z] 11:19:21     INFO - Stopping ssltunnel```
Flags: needinfo?(poirot.alex)
Regressed by: 1620248
Summary: Intermittent TV devtools/shared/resources/tests/browser_browser_resources_console_messages.js | leaked 1 docShell(s) until shutdown → Intermittent devtools/shared/resources/tests/browser_browser_resources_console_messages.js | leaked 1 docShell(s) until shutdown
Has Regression Range: --- → yes
Keywords: regression

On it. It seems easy to reproduce locally, surprising this isn't a permafail.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Flags: needinfo?(poirot.alex)
Whiteboard: dt-fission-m2-reserve

It looks like we are destroying the target actor immediately, without having time
to call _watchDocshells. And given that removeObserver throws if there is no matching listener
already registered, it prevent detaching the target correctly, and, introduces a leak.

Whiteboard: dt-fission-m2-reserve → dt-fission-m2-mvp

Tracking dt-fission-m2-mvp bugs for Fission Beta milestone (M7).

Fission Milestone: --- → M7
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/673c29179104
[devtools] Unregister docshell listeners only if we had time to register them. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch

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

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: