Closed denniske closed 11 months ago
That file is 533MB decompressed; strings in JavaScript can be at most 512MB. You can try to solve this by converting to strings with streams and using a streaming JSON parser; let me know if you want more info on how to do that.
How to reproduce
https://aoe4world.com/dumps File: Games - RM 1v1 - Season 3 - 44 MB
Grab the file url and put it into
url
variable.The problem
The following error occurs in Line 4 in
strFromU8(decompressed)
:I can download the file on mac os and extract it by double click in the finder and then open in visual studio code without problems. Visual studio code shows
UTF-8
in the status bar.