Closed Bug 1557031 Opened 5 years ago Closed 5 years ago

devtools/client/inspector/<computed|boxmodel>/test/<browser_computed_pseudo-element_01.js | browser_boxmodel_pseudo-element.js> | leaked 2 window(s) until shutdown [url = <random_url>

Categories

(DevTools :: Inspector, defect, P5)

defect

Tracking

(firefox-esr60 unaffected, firefox67 unaffected, firefox68 unaffected, firefox69 fixed)

RESOLVED FIXED
Firefox 69
Tracking Status
firefox-esr60 --- unaffected
firefox67 --- unaffected
firefox68 --- unaffected
firefox69 --- fixed

People

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

Details

(Keywords: intermittent-failure, regression, Whiteboard: [stockwell disable-recommended])

Attachments

(1 file)

Filed by: malexandru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=250099817&repo=autoland
Full log: https://queue.taskcluster.net/v1/task/PaXGORVDRKOz_fUnTvrVkQ/runs/0/artifacts/public/logs/live_backing.log


[task 2019-06-05T07:49:25.676Z] 07:49:25 INFO - GECKO(1449) | --DOMWINDOW == 31 (0x7f68ab621020) [pid = 1449] [serial = 261] [outer = (nil)] [url = chrome://devtools/content/inspector/markup/markup.xhtml]
[task 2019-06-05T07:49:25.677Z] 07:49:25 INFO - GECKO(1449) | --DOMWINDOW == 30 (0x7f67184574c0) [pid = 1449] [serial = 252] [outer = (nil)] [url = about:blank]
[task 2019-06-05T07:49:25.752Z] 07:49:25 INFO - GECKO(1449) | MEMORY STAT | vsize 3191MB | residentFast 415MB | heapAllocated 138MB
[task 2019-06-05T07:49:25.752Z] 07:49:25 INFO - TEST-OK | devtools/client/inspector/computed/test/browser_computed_select-and-copy-styles-02.js | took 7043ms
[task 2019-06-05T07:49:25.768Z] 07:49:25 INFO - GECKO(1449) | ++DOCSHELL 0x7f5550b57000 == 1 [pid = 1572] [id = {bf84f5b8-60ac-4139-949a-f2f3f72bd3ef}]
[task 2019-06-05T07:49:25.769Z] 07:49:25 INFO - GECKO(1449) | ++DOMWINDOW == 5 (0x7f5550bfb020) [pid = 1572] [serial = 32] [outer = (nil)]
[task 2019-06-05T07:49:25.785Z] 07:49:25 INFO - GECKO(1449) | [Child 1572, Main Thread] WARNING: No active window: file /builds/worker/workspace/build/src/js/xpconnect/src/XPCJSContext.cpp, line 662
[task 2019-06-05T07:49:25.793Z] 07:49:25 INFO - GECKO(1449) | [Child 1572, Main Thread] WARNING: No active window: file /builds/worker/workspace/build/src/js/xpconnect/src/XPCJSContext.cpp, line 662
[task 2019-06-05T07:49:25.833Z] 07:49:25 INFO - GECKO(1449) | ++DOMWINDOW == 6 (0x7f554f445400) [pid = 1572] [serial = 33] [outer = 0x7f5550bfb020]
[task 2019-06-05T07:49:25.854Z] 07:49:25 INFO - checking window state
[task 2019-06-05T07:49:25.922Z] 07:49:25 INFO - GECKO(1449) | ++DOMWINDOW == 31 (0x7f68a1975400) [pid = 1449] [serial = 276] [outer = 0x7f68b0c6cd40]
[task 2019-06-05T07:49:25.991Z] 07:49:25 INFO - GECKO(1449) | ++DOMWINDOW == 32 (0x7f68a1970400) [pid = 1449] [serial = 277] [outer = 0x7f68b0c6cd40]
[task 2019-06-05T07:49:27.176Z] 07:49:27 INFO - GECKO(1449) | --DOCSHELL 0x7faef8e55000 == 0 [pid = 1522] [id = {e2432f9c-9bb4-4562-8d02-dfe89455508b}] [url = about:blank]
<...>
[task 2019-06-05T07:49:44.036Z] 07:49:44 INFO - GECKO(1449) | => mFreeCount: 517808
[task 2019-06-05T07:49:44.036Z] 07:49:44 INFO - GECKO(1449) | => mShareCount: 554195
[task 2019-06-05T07:49:44.039Z] 07:49:44 INFO - GECKO(1449) | => mAdoptCount: 12780
[task 2019-06-05T07:49:44.040Z] 07:49:44 INFO - GECKO(1449) | => mAdoptFreeCount: 12950
[task 2019-06-05T07:49:44.040Z] 07:49:44 INFO - GECKO(1449) | => Process ID: 1449, Thread ID: 140088184350528
[task 2019-06-05T07:49:44.078Z] 07:49:44 INFO - TEST-INFO | Main app process: exit 0
[task 2019-06-05T07:49:44.078Z] 07:49:44 ERROR - TEST-UNEXPECTED-FAIL | devtools/client/inspector/computed/test/browser_computed_pseudo-element_01.js | leaked 2 window(s) until shutdown [url = http://example.com/browser/devtools/client/inspector/computed/test/doc_pseudoelement.html]
[task 2019-06-05T07:49:44.078Z] 07:49:44 INFO - TEST-INFO | devtools/client/inspector/computed/test/browser_computed_pseudo-element_01.js | windows(s) leaked: [pid = 1572] [serial = 17], [pid = 1572] [serial = 19]
[task 2019-06-05T07:49:44.078Z] 07:49:44 INFO - TEST-INFO | devtools/client/inspector/computed/test/browser_computed_pseudo-element_01.js | This test created 1 hidden window(s)
[task 2019-06-05T07:49:44.078Z] 07:49:44 INFO - TEST-INFO | devtools/client/inspector/computed/test/browser_computed_pseudo-element_01.js | This test created 1 hidden docshell(s)
[task 2019-06-05T07:49:44.078Z] 07:49:44 INFO - TEST-INFO | devtools/client/inspector/computed/test/browser_computed_browser-styles.js | This test created 1 hidden window(s)
[task 2019-06-05T07:49:44.078Z] 07:49:44 INFO - TEST-INFO | devtools/client/inspector/computed/test/browser_computed_browser-styles.js | This test created 1 hidden docshell(s)
[task 2019-06-05T07:49:44.078Z] 07:49:44 INFO - TEST-INFO | devtools/client/inspector/computed/test/browser_computed_cycle_color.js | This test created 1 hidden window(s)

Flags: needinfo?(rcaliman)
Regressed by: 1555064

It's unlikely that Bug 1555064 causes this. That patch only deals with pseudo-classes like :hover, :active, etc., not with pseudo-elements like ::before or ::after which are the ones tested here.

I checked whether the fix for an earlier Bug 1546621, which does treat pseudo-elements, may be the cause. But that one landed a week ago and the intermittents seem to be more recent. That's probably not the culprit either.

Flags: needinfo?(rcaliman)
No longer regressed by: 1555064

Nicolas can you take a look? can this be from bug 1551586 or bug 1555339?

Flags: needinfo?(nchevobbe)

Could be Bug 1555339 maybe? We're adding a new test, and I know from experience that might cause some effects in other tests.

Flags: needinfo?(nchevobbe)

Nicolas could you work on a fix? it will soon reach the disable recommended queue. Should we disable the tests?

Flags: needinfo?(nchevobbe)

Maybe this is caused because we are now checking invalid width properties, and the test finished while we are doing some computation about that?
Andreea, Is there something to run the tests with the devtools.inspector.inactive.css.enabled preference set to false? That would be nice to see if my guess is valid.

Flags: needinfo?(nchevobbe) → needinfo?(apavel)
Flags: needinfo?(nchevobbe)
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Flags: needinfo?(nchevobbe)

Here's a TRY TV push on the 2 tests with a fix attempt: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c049fa9651ce24bcd673c4b37385584f19d8cc6b (locally TV ran fine, looks promising)

We put some objects on the InactivePropertyHelper (node, rule),
but never reset those properties, which was causing leaks in some
inspector tests.
This patch adds a unselect function that clears all the references
added in the select function.

Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b7914b5a848e
Fix test leaks caused by InactivePropertyHelper. r=miker.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69
Component: Inspector: Computed → Inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: