I have 64Gb of RAM on my Windows 10 PC, but Chrome crashes after using 4Gb of RAM due to decoding multiple large MP3 files with decodeAudioData
.
Here is example of page that will crash after several minutes of loading MP3 files: http://artportal.su/ctools/job.php?j_id=55766&tab=multitrack
Here is example of page that will not crash due to smaller files: http://artportal.su/ctools/job.php?j_id=55791&tab=multitrack
Here is the code:
loader.context.decodeAudioData(
request.response,
function(buffer) {
if (!buffer) {
alert('error decoding file data: ' + url);
return;
}
loader.bufferList[index] = buffer;
},
function(error) {
console.error('decodeAudioData error', error);
}
);