Skip to content

out of memory when trying to parse Excel 2016 xlsx file > 3mb #93

Description

@drvolk

Hello,

the issue for "out of memory" for large files seams not to be fixed in the environment i use.

I have a Win10 64bit System , 8GB RAM and running ActiveState perl v5.24.2 (MSWin32-x86-multi-thread-64int).
The Version of the Spreadsheet::ParseXLSX packages is 0.27 and the XML::Twig is 3.52 so everything seams to be up to date ...

I tried to parse an Excel 2016 file with a size of nearly 3000 kb (see attachments), wih following script an getting the "out of memory" problem:

use Spreadsheet::ParseXLSX;
my $parser = Spreadsheet::ParseXLSX->new;
print("parsing <$ARGV[0]> ...\n");
XML::Twig::_set_weakrefs(0);
my $workbook = $parser->parse($ARGV[0]);

perl test_excel.pl test_exelv2.xlsx
parsing <test_exelv1.xlsx> ...
Out of memory!

test_exelv2.xlsx
systeminfo.docx
spreadsheet_parsexllx_Twig_version.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions