This problem is persisting for more than 6 months now…
I started to try to understand what happen in the loader.js, so I auto-indented it and found that the error was throwed in this, line 21 :
function d() {
i().then(function(e) {
e(u)
});
var e = s("dataUrl");
u.preRun.push(function() {
u.addRunDependency("dataUrl"), e.then(function(e) {
var t = new DataView(e.buffer, e.byteOffset, e.byteLength),
r = 0,
n = "UnityWebData1.0\0";
if (!String.fromCharCode.apply(null, e.subarray(r, r + n.length)) == n) throw "unknown data format";
r += n.length;
var o = t.getUint32(r, !0);
for (r += 4; r < o;) {
var a = t.getUint32(r, !0);
r += 4;
var s = t.getUint32(r, !0);
r += 4;
var i = t.getUint32(r, !0);
r += 4;
var d = String.fromCharCode.apply(null, e.subarray(r, r + i));
r += i;
for (var l = 0, c = d.indexOf("/", l) + 1; c > 0; l = c, c = d.indexOf("/", l) + 1) u.FS_createPath(d.substring(0, l), d.substring(l, c - 1), !0, !0);
u.FS_createDataFile(d, null, e.subarray(a, a + s), !0, !0, !0)
}
u.removeRunDependency("dataUrl")
})
})
}
Precisly here :
var d = String.fromCharCode.apply(null, e.subarray(r, r + i));
Where e is a Uint8array of 70011211 values, so i’m guessing it’s my whole data file. r is 32, and r+i is the size of the rest of the array…
So the problem seems to be that 70 millions arguments (~70mo .data file) is to much for that fromCharCode function, but it doesn’t make much sens…
I don’t know if I’m getting to far with this…
Anyone has an idea if this is the problem ?