Closed
Bug 916387
Opened 11 years ago
Closed 9 years ago
ScriptProcessorNode stops calling onaudioprocess when a connected input is GCed.
Categories
(Core :: Web Audio, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: karlt, Assigned: karlt)
References
Details
Attachments
(4 files)
681 bytes,
text/html
|
Details | |
2.68 KB,
patch
|
padenot
:
review+
|
Details | Diff | Splinter Review |
2.35 KB,
patch
|
padenot
:
review+
|
Details | Diff | Splinter Review |
6.69 KB,
patch
|
padenot
:
review+
|
Details | Diff | Splinter Review |
Load testcase, then click "Minimize memory usage" in about:memory. http://lists.w3.org/Archives/Public/public-audio/2013JulSep/1824.html " > If an AudioNode connected to the ScriptProcessorNode is deleted > because it has no references, then the ScriptProcessNode will stop > firing onaudioprocess at the time when the connected node is deleted. I don't think so. In this case, the observable behavior that must be preserved is that the AudioNode is connected and the ScriptProcessorNode keeps dispatching onaudioprocess. Automatic removal of the AudioNode can only be done insofar as we preserve that observable behavior. In other words, the onaudioprocess event must keep firing." http://lists.w3.org/Archives/Public/public-audio/2013JulSep/1835.html " > I don't really see how you can fix it in this case other than by making an > AudioNode + ScriptProcessorNode pair an uncollectable cycle that leaks > forever if you release it. That's what we do." We can collect the AudioNode, but we'd have to tell the ScriptProcessorNode that it has an input that will never be removed (because there are no references to the input).
Yes.
Updated•11 years ago
|
Priority: -- → P2
Assignee | ||
Comment 2•9 years ago
|
||
The effects of garbage collection must not be observable. We can collect an AudioNode if it is not going to cause any further changes, but we must keep any current effects.
Attachment #8644198 -
Flags: review?(padenot)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8644199 -
Flags: review?(padenot)
Assignee | ||
Comment 4•9 years ago
|
||
Zero output channels are used on ScriptProcessorNodes to improve efficiency in tests when output is not required.
Attachment #8644200 -
Flags: review?(padenot)
Assignee | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9807ec6525ef https://treeherder.mozilla.org/#/jobs?repo=try&revision=d73baba7b76f
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → karlt
Updated•9 years ago
|
Attachment #8644198 -
Flags: review?(padenot) → review+
Updated•9 years ago
|
Attachment #8644199 -
Flags: review?(padenot) → review+
Updated•9 years ago
|
Attachment #8644200 -
Flags: review?(padenot) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b2852b6ae7db https://hg.mozilla.org/integration/mozilla-inbound/rev/4dd0bec5365b https://hg.mozilla.org/integration/mozilla-inbound/rev/ef89d3dfb137
Assignee | ||
Updated•9 years ago
|
Flags: in-testsuite+
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b2852b6ae7db https://hg.mozilla.org/mozilla-central/rev/4dd0bec5365b https://hg.mozilla.org/mozilla-central/rev/ef89d3dfb137
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•