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

XLSX.read() not working. #106

Closed
ashu-daffodil opened this issue Sep 4, 2014 · 4 comments
Closed

XLSX.read() not working. #106

ashu-daffodil opened this issue Sep 4, 2014 · 4 comments

Comments

@ashu-daffodil
Copy link

Hi
I'm using Cent Os 7 on linode server and getting "Segmentation fault ".

var xlsx = XLSX.read(file.data, {type: "binary"});

@notatestuser
Copy link

Are you running node v0.10.31? There appears to be a non-fixable issue with this version, see #100.

@SheetJSDev
Copy link
Contributor

@ashu-daffodil this issue ultimately stems from an issue with nodejs 0.10.31:

The command-line utility xlsx shows an error message on 0.10.31:

$ sudo n 0.10.30 # using https://www.npmjs.org/package/n
$ xlsx test.xlsx
Sheet1
foo,bar,baz
1,2,3

$ sudo n 0.10.31
$ xlsx test.xlsx
node v0.10.31 is known to crash on OSX and Linux, refusing to proceed.
see https://github.com/SheetJS/j/issues/4 for the relevant discussion.
see https://github.com/joyent/node/issues/8208 for the relevant node issue

@notatestuser the aforementioned message is in the nodejs script and explicitly checks for the node version: https://github.com/SheetJS/js-xlsx/blob/master/bin/xlsx.njs#L38-L47 Is this something worth adding to the main script?

@notatestuser
Copy link

Hi @SheetJSDev, yeah, I think so... at least to be shown as a warning message when the library is imported.

@ashu-daffodil
Copy link
Author

Ya its v0.10.31.
I'm rolling back to v0.10.28

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

3 participants