Closed
Bug 806754
Opened 13 years ago
Closed 13 years ago
"ASSERTION: Stream already destroyed"
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: jruderman, Assigned: roc)
References
Details
(Keywords: assertion, testcase)
Attachments
(4 files)
|
490 bytes,
text/html
|
Details | |
|
3.50 KB,
text/plain
|
Details | |
|
4.43 KB,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
|
4.84 KB,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
1. Save the testcase.
2. Fix the path in the testcase so it points at frames.webm in your tree.
3. Load the testcase.
4. Wait until the video finishes (~5 seconds).
Result:
###!!! ASSERTION: Stream already destroyed: '!aMessage->GetStream() || !aMessage->GetStream()->IsDestroyed()', file content/media/MediaStreamGraph.cpp, line 1717
The testcase is a slight perturbation of http://mxr.mozilla.org/mozilla-central/source/layout/reftests/webm-video/bug686957.html?force=1
| Reporter | ||
Comment 1•13 years ago
|
||
| Assignee | ||
Comment 2•13 years ago
|
||
Jesse, what's the state of the art in writing tests that require GCs at particular times? Can we do that reliably?
Assignee: nobody → roc
Attachment #705233 -
Flags: review?(cpearce)
| Reporter | ||
Comment 3•13 years ago
|
||
As part of the test suite? Try SpecialPowers.gc() or SpecialPowers.forceGC().
http://hg.mozilla.org/mozilla-central/file/e9f39220b8e7/testing/specialpowers/content/specialpowersAPI.js#l937
Updated•13 years ago
|
Attachment #705233 -
Flags: review?(cpearce) → review+
| Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Jesse Ruderman from comment #3)
> As part of the test suite? Try SpecialPowers.gc() or
> SpecialPowers.forceGC().
Does that actually reliably destroy unreachable wrapped DOM objects synchronously during the gc() call?
| Reporter | ||
Comment 5•13 years ago
|
||
I don't know. It's possible you'll need a CC too. Play with it?
| Assignee | ||
Comment 6•13 years ago
|
||
See comments in patch.
Attachment #707431 -
Flags: review?(cpearce)
Comment 7•13 years ago
|
||
Comment on attachment 707431 [details] [diff] [review]
Part 2: fix bogus assertions and add test
Review of attachment 707431 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/test/test_streams_gc.html
@@ +26,5 @@
> +
> + a.addEventListener("seeked", function() {
> + a.play();
> +
> + a.addEventListener("play", function() {
Mixing tabs and spaces here?
Attachment #707431 -
Flags: review?(cpearce) → review+
| Assignee | ||
Comment 8•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/62f4bc028c72
https://hg.mozilla.org/integration/mozilla-inbound/rev/d4a6570ca6b0
Flags: in-testsuite+
Comment 9•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/62f4bc028c72
https://hg.mozilla.org/mozilla-central/rev/d4a6570ca6b0
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•