QXlsx icon indicating copy to clipboard operation
QXlsx copied to clipboard

"std::bad_alloc" while create xlsx document with more then 20000 rows

Open thevatyak opened this issue 4 years ago • 2 comments

Hi dear author! You have very good lib. I try create new xlsx document with 88 columns and more then 20000 rows. And catch exception "std::bad_alloc" This exception throws in "xlsxdocument.cpp" method "zipWriter.addFile(QStringLiteral("xl/worksheets/sheet%1.xml").arg(i + 1), sheet->saveToXmlData());" But if decrease rows count for 18000, all worked correct. Could you give the cue me how i can fixed it? Thank you!

thevatyak avatar Jun 18 '20 05:06 thevatyak

Dear @skholstinin

Sorry for the late reply.
I haven't tested on a large number.
I will register this as an issue.
Can you tell the specifications of the Qt, operating system, and hardware that ran the test?

j2doll avatar Jun 20 '20 06:06 j2doll

`Exception thrown at 0x00007FFC1892CB69 (located in WEB2DB.exe): Microsoft C++Exception: std:: bad_ Alloc, located at memory location 0x000000334B4F9E20.

Unhandled exception at 0x00007FFC1892CB69 (located in WEB2DB.exe): Microsoft C++Exception: std:: bad_ Alloc, located at memory location 0x000000334B4F9E20.`

I made the same error reading the xlsx file with 7 million lines on my end, but the small file reading is normal

reghtml avatar May 04 '23 10:05 reghtml