[Webkit-unassigned] [Bug 106621] New: Web Audio Api noteoff/stop is not releasing memory - crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 10 17:10:06 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=106621

           Summary: Web Audio Api noteoff/stop is not releasing memory -
                    crash
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: neuralll at gmail.com


Large or small. oneshot sources are not releasing buffers and will eat whole ram.
unfortunately there is no way to do it manually like it is in webgl right now.
following sample crashes webkit both mobile and dektop.as result of memory depletion ?
current ipad2 mobile safari ios 6.0.1 crash after 8 oneshots played.
current chrome 24.0.1312.52m crash after  17 oneshots played.


var context = new webkitAudioContext();
var total=0;

function onTouchStart(){
    setInterval(function(){
    total+=10;
    var source = context.createBufferSource();    
    source.connect(context.destination);
    source.buffer=context.createBuffer(1, 10*1024*1024, context.sampleRate);
    source.noteOn(0);
    source.noteOff(0); // acording to w3c spec resources should be deleted immediately.
    console.log(total,'mb'); 
    },1000);
}

document.addEventListener( "touchstart", onTouchStart );
document.addEventListener( "click", onTouchStart );

-- 
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