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

process out of memory Exception #9

Closed
JohnJeong123 opened this issue Apr 9, 2015 · 3 comments
Closed

process out of memory Exception #9

JohnJeong123 opened this issue Apr 9, 2015 · 3 comments

Comments

@JohnJeong123
Copy link

When xlsjs convert a big excel file(.xls) as readFile(), node get error below

FATAL ERROR: JS Allocation failed - process out of memory

Can you help me? How to sole it.

I attempted below setting

$ node --max-old-space-size=8192 my-node-script.js

If anyone has solution, please response it. : )

@SheetJSDev
Copy link
Contributor

@JohnJeong123 sorry for belated reply! Can you give a sense for how large the file is (in MB, as well as row/col)? If possible, can you share the file?

Also, can you check whether you encounter the allocation problem with the cfb utility (want to see where the issue is happening):

$ npm install -g cfb
$ cfb -q your_file.xls; echo $?

What this does is try to reassemble the file and exit (rather than perform the xls processing)

Again, sorry for such a slow response.

@githistory
Copy link

FATAL ERROR: JS Allocation failed - process out of memory
fish: Job 1, 'cfb -q asdf.xls' terminated by signal SIGABRT (Abort)

when running

cfb -q asdf.xls

@reviewher
Copy link
Contributor

@JohnJeong123 @githistory we have merged this project into js-xlsx. It replicates the full js-xls API -- please test against the latest version there and if you are still seeing problems please raise an issue there with a sample file.

@SheetJSDev SheetJSDev transferred this issue from SheetJS/js-word Mar 23, 2020
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

4 participants