Description: A lot of memories are exhausted(This means LibreOffice killed by OOM killer) when Soffice tries to open xlsx files containing hatched auto-shape. ex) "hatched_auto-shapes.png" or "badFile_faild.xlsx" I attached. It is same when soffice tries to convert to pdf via command lines. =============================================== [Environment] 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 ex) ./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:
Created attachment 157680 [details] sample file
Created attachment 157681 [details] hatched file example(Graphic)
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: 6.4.0.3 (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.
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
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.
Created attachment 164471 [details] The minimized example file saved as non-strict xlsx