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

Specific file created with LibreOffice causes 'JavaScript heap out of memory' error #117

Open
sagarjoshi-sct opened this issue Nov 15, 2024 · 1 comment

Comments

@sagarjoshi-sct
Copy link

We use this package to read and parse relatively small xlsx files containing user records.
For a specific file from a customer, calling readXlsxFile causes the process to crash with the following error -

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

We know that the file was created (or at least opened and saved) in LibreOffice but are unable to diagnose any issues with it.
Reducing the row count has no effect. It is reproducible with the file below containing just a single row.
Blank Sheet.xlsx (11.3 KB)

Snippet to reproduce the crash with read-excel-file@5.8.6 -

const readXlsxFile = require('read-excel-file/node');

const filePath = 'Blank Sheet.xlsx';

readXlsxFile(filePath).then((rows) => {
    console.log('rows: ', JSON.stringify(rows));
}).catch((error) => {
    console.log('error: ', error);
});
@catamphetamine
Copy link
Owner

Cool, thx. I won't be looking into the issue though.

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

2 participants