Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Segmentation fault when accessing a xlsb file #4

Closed
lightbringer1991 opened this issue Aug 21, 2014 · 6 comments
Closed

Segmentation fault when accessing a xlsb file #4

lightbringer1991 opened this issue Aug 21, 2014 · 6 comments

Comments

@lightbringer1991
Copy link

EDIT: this is a bug in node v0.10.31 (nodejs/node-v0.x-archive#8208). If you find repeated segmentation faults, try rolling back to node 0.10.30. On linux and OSX, n on npm (https://www.npmjs.org/package/n) removes most of the hassle of switching between node versions.

Hi,

I'm trying to extract a sheet from a xlsb file. However when I open the file, I get the message "Segmentation Fault".
Same error occurred when I ran "j -l file.xlsb"
I'm just wondering how do I resolve that.

@SheetJSDev
Copy link
Contributor

@lightbringer1991 I notice the segfault in node 0.10.31 but not in 0.10.30. Can you try switching to node 0.10.30 and see if the segfault occurs? (FYI I use https://www.npmjs.org/package/n to switch between node versions)

EDIT: sounds like the issue is related to nodejs/node-v0.x-archive#8208 -- hopefully the node issue can be resolved soon. In the interim, I recommending installing node 0.10.30

@lightbringer1991
Copy link
Author

Hi,

I switched back to 0.10.30 and it works.
Thank you for this. J is the only option I have for reading xlsb.

I hope we can resolve the issue in the future release

SheetJSDev added a commit to SheetJS/sheetjs that referenced this issue Aug 23, 2014
@SheetJSDev
Copy link
Contributor

@lightbringer1991 I don't know when the node developers will resolve the issue. In the interim, the command-line tool checks for the node version and gives an error message:

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

@SheetJSDev
Copy link
Contributor

@lightbringer1991 the j module (as of version 0.3.14) now writes a message to stderr and throws an error if required in v0.10.31.

@randalldonovan
Copy link

I don't see a segfault when processing XLS files, only when processing XLSX. Any particular reason why?

@SheetJSDev
Copy link
Contributor

@randalldonovan This is coming from the zip library. There is a related issue: Stuk/jszip#166

XLS does not use zip files. They use a different container format: https://github.com/SheetJS/js-cfb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants