Hi,
When I try to compress a file larger than 200MB, I run into this RangeError and the operation gets stuck. I donot get a promise error callback or even a try-catch block is not catching it. Any help would be apperciated. 1st with the Range Error and 2nd with the Error Handling.
Chrome Version 96.0.4664.110 (Official Build) (x86_64)
zip
.generateAsync({
type: 'blob',
compression: 'DEFLATE',
compressionOptions: {
level: 8,
}
},
function updateCallback(metadata) {
console.log('completed: ', metadata.percent);
}).then(function (content) { //code
}).catch(function (err) { //error handling not called
});
Error I am getting is.
jszip.js:6595 Uncaught (in promise) RangeError: Maximum call stack size exceeded
at Config.deflate_slow [as func] (jszip.js:6595)
at Object.deflate (jszip.js:7534)
at Deflate.push (jszip.js:4819)
at FlateWorker.processChunk (jszip.js:365)
at DataLengthProbe.<anonymous> (jszip.js:2393)
at DataLengthProbe.emit (jszip.js:2361)
at DataLengthProbe.push (jszip.js:2287)
at DataLengthProbe.processChunk (jszip.js:2449)
at DataLengthProbe.processChunk (jszip.js:2116)
at Crc32Probe.<anonymous> (jszip.js:2393)
Hi,
When I try to compress a file larger than 200MB, I run into this RangeError and the operation gets stuck. I donot get a promise error callback or even a try-catch block is not catching it. Any help would be apperciated. 1st with the Range Error and 2nd with the Error Handling.
Chrome Version 96.0.4664.110 (Official Build) (x86_64)
Error I am getting is.