Closed
Bug 863918
Opened 12 years ago
Closed 11 years ago
Leak with many AudioContexts
Categories
(Core :: Web Audio, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: memory-leak, testcase)
Attachments
(2 files)
1. Run debug Firefox with XPCOM_MEM_LEAK_LOG=2
2. Load the testcase
3. Quit
Result: trace-refcnt reports leak of AudioNodeEngine, AudioNodeStream, MediaStream, StreamBuffer, TimeVaryingBase, nsTArray_base
Also, it takes a while to shut down (bug 821062?).
Reporter | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
The long pause is caused by many calls to cubeb_stream_stop, once for each AudioDestinationNode.
So, MediaStreamGraphImpl::AppendMessage contains special logic to handle messages dispatched during shutdown. Is there anything which can happen asynchronously which would cause some of the streams to not be deleted?
Blocks: webaudio
Comment 3•12 years ago
|
||
Also note that the leak is intermittent.
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #2)
> So, MediaStreamGraphImpl::AppendMessage contains special logic to handle
> messages dispatched during shutdown. Is there anything which can happen
> asynchronously which would cause some of the streams to not be deleted?
It sounds like there's a bug in that logic. I don't know what the bug is.
Comment 5•11 years ago
|
||
Mass moving Web Audio bugs to the Web Audio component. Filter on duckityduck.
Component: Video/Audio → Web Audio
Reporter | ||
Comment 7•11 years ago
|
||
Shutdown takes about 10 seconds, but the leak is gone.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(jruderman)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•