Some LibreOffice Draw SVGs hang on pdf export (lots of masked objects and large canvas)
Migrated from https://bugs.launchpad.net/inkscape/+bug/913446
Summary:
The exemplar file was created by a user in LibreOffice Draw and opened in Inkscape. Upon attempting to save as PDF, the application hangs after clicking OK on the PDF options dialog. Original report:
I created the attached svg file in LibreOffice Draw. Then I opened it with Inkscape 0.48.2 and went to File->Save As. I chosed PDF and the default PDF generation options were used. When clicked OK the program entered an infinite loop or something and RAM consuption grew up "eating" all the system's memory (in Linux). The PDF was not generated. I tried the same in Windows with the same version of Inkscape and the same occured. Difference was that Windows didn't let memory consumption go beyond about 1GB and after a while Inkscape gave an internal error and quited.
I don't know whether this is an Inkscape problem or a LibreOffice Draw in gererating the svg. Maybe the second one, because both Gimp and Gwenview failed to even open the svg.
One commenter mentioned unchecking "rasterize filter effects" as a workaround, but the bug still reproduced for me in Inkscape 1.1 under those conditions.
Steps to reproduce:
- Open the exemplar file in Inkscape.
- Go to File > Save As
- Choose PDF and Save
- Click OK on the settings dialog.
What happened?
The application hangs and begins consuming excessive memory.
What should have happened?
The PDF file should have saved successfully and the options dialog should have been dismissed.
Version Info
Originally reported in 0.48 but reproduced in Inkscape 1.1 (c68e22c3, 2021-05-23) on Fedora Linux.
It was also reproduced in Debian Wheezy, Inkscape trunk revision 11159 but allegedly not reproducible in Inkscape 0.92pre1_64bit r15044 on Win 7 64-bit.