mholt / PapaParse

Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
http://PapaParse.com
MIT License
12.54k stars 1.15k forks source link

"allocation size overflow" error on large files #469

Open mef opened 6 years ago

mef commented 6 years ago

Hi, The following error shows up in the console when processing large CSV files

allocation size overflow    > papaparse.js:710:4

how to reproduce

expected result

Parse result shows up in the console

actual result

Error quoted above happens.

First noticed it when working on my own csv to json converter based on papaparse: works perfectly when using complete callback, the error only happens when introducing chunk function.

pokoli commented 6 years ago

Which browser are you using? It seems that firefox has an allocattion limit of 250MB which throws this erro.

Probably using workers to split up the work in chunks will solved this use. Could you confirm?

mef commented 6 years ago

Firefox, indeed.