Bug 129892 - error loading a huge spreadsheet in ods format (no error in xlsx format)
Summary: error loading a huge spreadsheet in ods format (no error in xlsx format)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.8.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf, wantBacktrace
Depends on:
Blocks: Memory Performance CPU-AT-100%
  Show dependency treegraph
 
Reported: 2020-01-08 21:09 UTC by johannes.geest
Modified: 2025-05-10 12:57 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
spreadsheet to generate the spreadsheet making troubles (8.93 MB, application/vnd.oasis.opendocument.spreadsheet)
2020-01-08 21:09 UTC, johannes.geest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johannes.geest 2020-01-08 21:09:04 UTC
Created attachment 157017 [details]
spreadsheet to generate the spreadsheet making troubles

using the attached spreadsheet I created a huge spreadsheet executing the 2 commands in line 3 of table _Tabelle2_ . Saving this file is possible in format xlsx and ods. Loading the saved file without error is only possible in format xlsx but not in format ods. To handle the file you will need 16GB RAM .

Using Ubuntu 18.04 (LibreOffice 6.0.7.3) I can save the created file without error only in format xlsx but not in format ods.
Comment 1 Oliver Brinzing 2020-01-09 18:45:59 UTC
The problem starts before one can load the generated file:

steps to reproduce:

- open attached file
- select "Tabelle2"
- select cell range "A9:X373256"
- press ctrl + D

LO crashed with a "Bad Allocation Error" on my Win 10 x64 Notebook (8GB RAM) after "soffice.bin" grows up to ~ 4,3GB. Notebook gets instable, e.g. Firefox browser crashed, screen went black.
Comment 2 Oliver Brinzing 2020-01-09 19:01:57 UTC
(In reply to johannes.geest from comment #0)
> Loading the saved file without error is only possible in format xlsx but 
> not in format ods. To handle the file you will need 16GB RAM .

With a different Notebook (Win 10 x64, Core i7 32GB RAM) i was able 
to generate the data. It took ~ 10 minutes and "soffice.bin" was ~ 10GB.
The *.tmp file grew up to 5GB, saving *.ods took ~10 minutes, file size 170 MB. 
Loading *.ods will fail wih an error - did not try to save as *xlsx.
Comment 3 QA Administrators 2022-01-09 03:41:15 UTC Comment hidden (obsolete)
Comment 4 Roman Kuznetsov 2022-01-12 20:03:22 UTC
So (here is Intel Core 2 Quad 9450 with 8 Gb of memory):

I had 100% CPU loaded of one CPU core and allocated over 5 Gb of memory after Ctrl+D pressing. Time for (never) ending is around 25 minutes and then I killed the process. I didn't have the crash in this case.


Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 1be170d0629cf761f0ee4173007a3c021966546e
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL
Comment 5 Luboš Luňák 2022-03-06 12:41:38 UTC
This is at least partially bug #129892. The uncompressed xml content is larger than 4GiB, we don't support zip64, and ZipOutputStream::writeEXT() throws.
Comment 6 QA Administrators 2024-03-06 03:14:20 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2025-05-10 08:55:41 UTC
(In reply to Luboš Luňák from comment #5)
> This is at least partially bug #129892. The uncompressed xml content is
> larger than 4GiB, we don't support zip64, and ZipOutputStream::writeEXT()
> throws.

zip64 is now supported.

(In reply to Oliver Brinzing from comment #1)
> The problem starts before one can load the generated file:
> 
> steps to reproduce:
> 
> - open attached file
> - select "Tabelle2"
> - select cell range "A9:X373256"
> - press ctrl + D
> 
> LO crashed with a "Bad Allocation Error" on my Win 10 x64 Notebook (8GB RAM)
> after "soffice.bin" grows up to ~ 4,3GB. Notebook gets instable, e.g.
> Firefox browser crashed, screen went black.

No problem for me, please everyone test again.

Arch Linux 64-bit
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0d62ab61e982a0967386e40f21829fc95870b969
CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 10 May 2025
Comment 8 Roman Kuznetsov 2025-05-10 12:57:07 UTC
No problem in

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: bff3d755c8c11721054f4ff40a3d5f723b0c6b96
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded

Closed as WFM