Closed
Bug 1219554
Opened 9 years ago
Closed 6 years ago
Fix leaking windows in some of memory tool's browser mochitests
Categories
(DevTools :: Memory, defect, P2)
DevTools
Memory
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: fitzgen, Assigned: fitzgen)
References
(Blocks 1 open bug)
Details
Attachments
(9 files, 10 obsolete files)
1.95 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
2.00 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
2.45 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
2.37 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
3.92 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
1.66 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
1.25 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
2.00 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
1.21 KB,
patch
|
fitzgen
:
review+
fitzgen
:
checkin+
|
Details | Diff | Splinter Review |
Pretty sure whatever is causing these windows to leak until shutdown on mochitests already existed, but we didn't have many browser mochitests.
In either case, it is worth it to land those patches now but disabled on DEBUG builds so we at least have the sanity test coverage on builds that don't do leak checking.
Assignee | ||
Updated•9 years ago
|
Blocks: memory-testing
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
I thought bug 1226217 would fix this, but it turns out not to.
See Also: → 1226217
Assignee | ||
Comment 3•9 years ago
|
||
The leak itself isn't hugely worrying to me, but this is pretty important since it is reducing our test coverage.
Priority: -- → P1
Assignee | ||
Comment 4•9 years ago
|
||
This is really strange: the only CC log I'm finding the leaking windows in are saying that they have no roots, which IIUC means they are garbage.
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8715351 -
Flags: review?(jsantell)
Assignee | ||
Comment 6•9 years ago
|
||
Keywords: leave-open
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8715377 -
Flags: review?(jsantell)
Assignee | ||
Comment 8•9 years ago
|
||
I haven't actually figured out what it is about waitUntilSnapshotState that sometimes causes leaks, but not all the time. I tried rewriting it in ways to avoid closing over variables as much as possible, no luck. I tried moving its definition inside the test function, no luck.
Going to just manually get all the tests running on DEBUG builds without leaks.
Try push for the new patch: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d11c11462931
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8715387 -
Flags: review?(jsantell)
Assignee | ||
Comment 10•9 years ago
|
||
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8715392 -
Flags: review?(jsantell)
Assignee | ||
Comment 12•9 years ago
|
||
Assignee | ||
Comment 13•9 years ago
|
||
Attachment #8715394 -
Flags: review?(jsantell)
Assignee | ||
Comment 14•9 years ago
|
||
Assignee | ||
Comment 15•9 years ago
|
||
Attachment #8715409 -
Flags: review?(jsantell)
Assignee | ||
Comment 16•9 years ago
|
||
memory-tests-on-fleek |
This last one actually worked on DEBUG without changes to the test, but I cleaned up some unused imports and wrong summary comment.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0c8771f3538f
Updated•9 years ago
|
Attachment #8715409 -
Flags: review?(jsantell) → review+
Updated•9 years ago
|
Attachment #8715351 -
Flags: review?(jsantell) → review+
Updated•9 years ago
|
Attachment #8715377 -
Flags: review?(jsantell) → review+
Updated•9 years ago
|
Attachment #8715387 -
Flags: review?(jsantell) → review+
Updated•9 years ago
|
Attachment #8715392 -
Flags: review?(jsantell) → review+
Updated•9 years ago
|
Attachment #8715394 -
Flags: review?(jsantell) → review+
Comment 17•9 years ago
|
||
This is weird. We should remove the utility function completely if it's leaking though so we don't have this again
Assignee | ||
Comment 18•9 years ago
|
||
Attachment #8715442 -
Flags: review?(jsantell)
Assignee | ||
Comment 19•9 years ago
|
||
This commit removes the assignment expression in a return statement thing that
was going on. It is easy to misread and we don't usually use this idiom anywhere
else in the codebase. Additionally, it makes the destroy method clean up some
more members set when opening the tool.
Attachment #8715445 -
Flags: review?(jsantell)
Assignee | ||
Comment 20•9 years ago
|
||
This makes attempts to use the HeapAnalysesClient after the worker has already
been destroyed into an earlier, less quiet error so we can catch more of them
and catch them sooner.
Attachment #8715449 -
Flags: review?(jsantell)
Updated•9 years ago
|
Attachment #8715442 -
Flags: review?(jsantell) → review+
Updated•9 years ago
|
Attachment #8715445 -
Flags: review?(jsantell) → review+
Updated•9 years ago
|
Attachment #8715449 -
Flags: review?(jsantell) → review+
Assignee | ||
Comment 21•9 years ago
|
||
This makes attempts to use the HeapAnalysesClient after the worker has already
been destroyed into an earlier, less quiet error so we can catch more of them
and catch them sooner.
Attachment #8715968 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8715351 -
Attachment is obsolete: true
Attachment #8715377 -
Attachment is obsolete: true
Attachment #8715387 -
Attachment is obsolete: true
Attachment #8715392 -
Attachment is obsolete: true
Attachment #8715394 -
Attachment is obsolete: true
Attachment #8715409 -
Attachment is obsolete: true
Attachment #8715442 -
Attachment is obsolete: true
Attachment #8715445 -
Attachment is obsolete: true
Attachment #8715449 -
Attachment is obsolete: true
Assignee | ||
Comment 22•9 years ago
|
||
Attachment #8715969 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8715968 -
Attachment is obsolete: true
Assignee | ||
Comment 23•9 years ago
|
||
Attachment #8715970 -
Flags: review+
Assignee | ||
Comment 24•9 years ago
|
||
Attachment #8715971 -
Flags: review+
Assignee | ||
Comment 25•9 years ago
|
||
Attachment #8715972 -
Flags: review+
Assignee | ||
Comment 26•9 years ago
|
||
Attachment #8715973 -
Flags: review+
Assignee | ||
Comment 27•9 years ago
|
||
Attachment #8715974 -
Flags: review+
Assignee | ||
Comment 28•9 years ago
|
||
Attachment #8715975 -
Flags: review+
Assignee | ||
Comment 29•9 years ago
|
||
This commit removes the assignment expression in a return statement thing that
was going on. It is easy to misread and we don't usually use this idiom anywhere
else in the codebase. Additionally, it makes the destroy method clean up some
more members set when opening the tool.
Attachment #8715976 -
Flags: review+
Assignee | ||
Comment 30•9 years ago
|
||
This makes attempts to use the HeapAnalysesClient after the worker has already
been destroyed into an earlier, less quiet error so we can catch more of them
and catch them sooner.
Attachment #8715977 -
Flags: review+
Assignee | ||
Comment 31•9 years ago
|
||
Assignee | ||
Comment 32•9 years ago
|
||
checkin-needed for all patches attached, please.
Keywords: checkin-needed
Comment 33•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/ab299cfe29c8
https://hg.mozilla.org/integration/fx-team/rev/59172c886f4e
https://hg.mozilla.org/integration/fx-team/rev/bbdae693b8db
https://hg.mozilla.org/integration/fx-team/rev/06908e33c209
https://hg.mozilla.org/integration/fx-team/rev/dc5a5cd40d67
https://hg.mozilla.org/integration/fx-team/rev/aaa82c7efa4e
https://hg.mozilla.org/integration/fx-team/rev/03c8e1c949a4
https://hg.mozilla.org/integration/fx-team/rev/61b3d4d0dfd4
https://hg.mozilla.org/integration/fx-team/rev/50e29526c717
Keywords: checkin-needed
Assignee | ||
Updated•9 years ago
|
Attachment #8715969 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8715970 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8715971 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8715972 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8715973 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8715974 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8715975 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8715976 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8715977 -
Flags: checkin+
Assignee | ||
Comment 34•9 years ago
|
||
Since we have most of the tests on DEBUG builds now, I don't think this is quite as urgent as it previously was.
Priority: P1 → P2
Comment 35•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ab299cfe29c8
https://hg.mozilla.org/mozilla-central/rev/59172c886f4e
https://hg.mozilla.org/mozilla-central/rev/bbdae693b8db
https://hg.mozilla.org/mozilla-central/rev/06908e33c209
https://hg.mozilla.org/mozilla-central/rev/dc5a5cd40d67
https://hg.mozilla.org/mozilla-central/rev/aaa82c7efa4e
https://hg.mozilla.org/mozilla-central/rev/03c8e1c949a4
https://hg.mozilla.org/mozilla-central/rev/61b3d4d0dfd4
https://hg.mozilla.org/mozilla-central/rev/50e29526c717
Assignee | ||
Updated•9 years ago
|
Assignee: nfitzgerald → nobody
Status: ASSIGNED → NEW
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 36•6 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:julienw, maybe it's time to close this bug?
Flags: needinfo?(felash)
Comment 37•6 years ago
|
||
I believe all patches landed here, let's close this and file new bugs if needed.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(felash)
Resolution: --- → FIXED
Updated•6 years ago
|
Assignee: nobody → nfitzgerald
Updated•6 years ago
|
Keywords: leave-open
You need to log in
before you can comment on or make changes to this bug.
Description
•