Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"allocation size overflow" error on large files #38

Open
cormander opened this issue Jan 20, 2019 · 0 comments
Open

"allocation size overflow" error on large files #38

cormander opened this issue Jan 20, 2019 · 0 comments

Comments

@cormander
Copy link

Large files throw an "allocation size overflow" error on the console when you select a large enough csv file (happening in firefox):

http://localhost:3000/#/import/

react-csv-reader under the hood uses papaparse, so probably related to this issue: mholt/PapaParse#469

The following will create a ~ 288MB large.csv file pretty quick to test this with:

echo "1,2,3,4,5,6,7,8,9" > large.csv; for i in $(seq 1 8); do cat large.csv large.csv large.csv large.csv large.csv large.csv large.csv large.csv > large.csv2; mv large.csv2 large.csv; done

A quick google query pull this up: https://stackoverflow.com/questions/31722808/how-to-papa-unparse-a-huge-json-object

It probably boils down to we have to be careful how we manage processing of a large file, and use byte streams instead of full copies in memory.

@cormander cormander transferred this issue from another repository Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant