Download it now!
Bug 130472 - The xlsx files containing hatched auto-shapes cannot open
Summary: The xlsx files containing hatched auto-shapes cannot open
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: OOXML-Import-Strict XLSX-Shapes
  Show dependency treegraph
Reported: 2020-02-06 02:13 UTC by Shogo Yamaguchi
Modified: 2020-08-31 14:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

sample file (12.45 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-02-06 02:15 UTC, Shogo Yamaguchi
hatched file example(Graphic) (6.86 KB, image/png)
2020-02-06 02:16 UTC, Shogo Yamaguchi
Attachment 157680 imported (29.29 KB, image/png)
2020-02-06 07:21 UTC, Mike Kaganski
Minimized test document (10.94 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-08-19 13:52 UTC, NISZ LibreOffice Team
The minimized example file saved as non-strict xlsx (10.77 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-08-19 14:02 UTC, NISZ LibreOffice Team

Note You need to log in before you can comment on or make changes to this bug.
Description Shogo Yamaguchi 2020-02-06 02:13:51 UTC
A lot of memories are exhausted(This means LibreOffice killed by OOM killer) when Soffice tries to open xlsx files containing hatched auto-shape.
"hatched_auto-shapes.png" or "badFile_faild.xlsx" I attached.

It is same when soffice tries to convert to pdf via command lines.



OS : Cent OS 7.6

LibreOffice : 6.4


Steps to Reproduce:
[When trying to open file]
1.Open the xlsx file contains hatched auto-shape file via Calc on GUI.

[When trying to convert to PDF]
1.Try to convert the file to pdf via command
./soffice --convert-to "pdf:calc_pdf_Export" ~/badFile_faild.xlsx --headless --outdir ~/

Actual Results:
The "soffice.bin" process try to consume a lot of memories and killed by OOM killer.

Expected Results:
The file is safely opend or convert to PDF.

Reproducible: Always

User Profile Reset: No

Additional Info:
Comment 1 Shogo Yamaguchi 2020-02-06 02:15:36 UTC
Created attachment 157680 [details]
sample file
Comment 2 Shogo Yamaguchi 2020-02-06 02:16:32 UTC
Created attachment 157681 [details]
hatched file example(Graphic)
Comment 3 Mike Kaganski 2020-02-06 07:21:32 UTC
Created attachment 157686 [details]
Attachment 157680 [details] imported

Could not confirm the OOM; but that's just the matter of available memory. In my testing with Version: (x64)
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 12; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL

it took more than 8 200 000 KB on loading. After that, the document was irresponsive (took tens of seconds to perform any action like click on any cell).

Additionally, the appearance was wrong (likely the hatch was in wrong scale, resulting in many times more elements than it should).

So this is both import problem, and (possibly) performance problem.
Comment 4 Julien Nabet 2020-02-14 21:34:42 UTC
On pc Debian x86-64 with master sources updated today, I noticed these kinds of  logs:
warn:vcl.gdi:280028:280028:vcl/source/bitmap/BitmapFastScaleFilter.cxx:112: no resize
warn:vcl.gdi:280028:280028:vcl/source/bitmap/bitmapfilter.cxx:26: Bitmap filter failed
warn:vcl.gdi:280028:280028:vcl/source/bitmap/bitmapfilter.cxx:26: Bitmap filter failed
Comment 5 NISZ LibreOffice Team 2020-08-19 13:52:16 UTC
Created attachment 164470 [details]
Minimized test document

Only one shape without grouped textbox.

Also please note the hatching is not really a hatching, it's an image fill that has a hatched pattern.
Another note: the file is in strict XLSX format, saving as transitional XLSX with Excel makes it open quickly in Calc.
Comment 6 NISZ LibreOffice Team 2020-08-19 14:02:11 UTC
Created attachment 164471 [details]
The minimized example file saved as non-strict xlsx