Closed
Bug 981931
Opened 10 years ago
Closed 10 years ago
Leak of realP and imagP in PeriodicWave::createBandLimitedTables
Categories
(Core :: Web Audio, defect)
Core
Web Audio
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: mccr8, Assigned: ehsan.akhgari)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lsan][MemShrink])
Attachments
(1 file)
1.37 KB,
patch
|
padenot
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
According to LSAN, we leak 590KB of memory when running the web audio mochitests, from |realP| and |imagP| in PeriodicWave::createBandLimitedTables. These local variables are allocated, but never freed. Simply calling |delete| on them at the end of their block fixes the leak, but I don't know if that's the approach you want to take. Blink trunk seems to do something different (no explicit new call), but I'm not sure how it frees the memory: https://chromium.googlesource.com/chromium/blink/+/master/Source/modules/webaudio/PeriodicWave.cpp
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8388899 -
Flags: review?(paul)
Reporter | ||
Comment 3•10 years ago
|
||
It looks like createOscillator (which seems to be the audio node that uses PeriodicWave) is called in two places in Gaia: http://mxr.mozilla.org/gaia/search?string=createOscillator Kyle, do you think this would be worth backporting for Terako?
Flags: needinfo?(khuey)
Updated•10 years ago
|
Attachment #8388899 -
Flags: review?(paul) → review+
Comment 4•10 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #3) > It looks like createOscillator (which seems to be the audio node that uses > PeriodicWave) is called in two places in Gaia: > http://mxr.mozilla.org/gaia/search?string=createOscillator > Kyle, do you think this would be worth backporting for Terako? Andrew, fwiw, those particular uses of OscillatorNode don't use PeriodicWave.
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f86398fa5fac
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8388899 [details] [diff] [review] Stop leaking the allocated buffers in PeriodicWave::createBandLimitedTables; r=padenot I think we should consider this for Aurora. [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 865256 User impact if declined: memory leak on pages which use this feature. Testing completed (on m-c, etc.): locally Risk to taking this patch (and alternatives if risky): none String or IDL/UUID changes made by this patch: none
Attachment #8388899 -
Flags: approval-mozilla-aurora?
Doesn't seem like it's worth the effort for Tarako.
Flags: needinfo?(khuey)
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f86398fa5fac
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Updated•10 years ago
|
status-firefox29:
--- → affected
status-firefox30:
--- → fixed
Updated•10 years ago
|
Attachment #8388899 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in
before you can comment on or make changes to this bug.
Description
•