[Webkit-unassigned] [Bug 134606] New: Audio Context isn't being collected sufficiently eagerly.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 3 12:33:44 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=134606
Summary: Audio Context isn't being collected sufficiently
eagerly.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: Web Audio
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: gprog.dev at gmail.com
CC: crogers at google.com, jer.noble at apple.com
If I do this as below , after I click on the "TEST 1" button, it creates Audio Context thread but if I click it again it doesn't destroy the older Audio Context object rather creates another Audio Context (spawning another thread) on top of it.
After doing this multiple times, it fails because of the cap limit on the number of Audio Context that can be created simultaneously.
I also tried forcing a Javascript GC (calling JSC::Heap::collectAllGarbage) by opening the inspector window but it doesn't clear these Audio Context objects which are there until I do a reload on the page which calls JSC::Heap::collectAllGarbage and clear off all the Audio Context objects created.
<html>
<body>
<h4> WEB AUDIO TEST </h4>
<canvas id='canvas' width='800px' height='500px'></canvas>
<button type="button" onclick="test()" width="200" height="300">TEST 1</button>
<script type='text/javascript'>
function test()
{
if(true)
{
var testCtx = new webkitAudioContext();
var audioSource = testCtx.createBufferSource();
}
}
</script>
</body>
</html>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list