Internal error and crash when exporting PDF

Post questions on how to use or achieve an effect in Inkscape.
Southwest
Posts: 2
Joined: Fri Feb 22, 2019 4:06 pm

Internal error and crash when exporting PDF

Postby Southwest » Fri Feb 22, 2019 4:24 pm

Summary: When exporting a SVG as PDF for printing, Inkscape produces a dialog reading "Inkscape encountered an internal error and will close now.", and crashes without properly creating the desired PDF.

System details:
  • OS: Windows 10
  • Inkscape version: 0.92.4
  • Installed RAM: 8.0 GB
Steps to reproduce:
  1. Download this SVG file and open it in Inkscape.
  2. Using the "Save As" dialog, save it as a PDF, with the following settings:
    • PDF version: 1.5
    • Text output: Convert text to paths
    • Rasterize filter effects: checked
    • Resolution for rasterization: 300 dpi
    • Output page size: Use document's page size
    • Bleed/margin: 0
Expected result:
Inkscape saves the PDF successfully.

Actual result:
Inkscape stalls for a minute or more, then produces a dialog reading "Inkscape encountered an internal error and will close now." Inkscape then crashes. The PDF is not created.

Additional details:
I know 300dpi is a high resolution, but I'm trying to create a file for printing.

When I looked up this issue, some people suggested that having huge paths could cause this issue. I'm using a couple complex paths and imported raster images, both clipped, in the SVG file. If these are causing the issue, is there a workaround that doesn't involve completely removing these elements?

I'd greatly appreciate anyone's help on this one, because I'm stumped. Thanks!

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Internal error and crash when exporting PDF

Postby tylerdurden » Fri Feb 22, 2019 10:42 pm

^^^This is like the perfect first post.^^^

No problem saving a copy as pdf here, using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1.

There is however, one bogus object you might delete: path18771. Maybe that is choking the pdf on your version?
ZeroSizeCircle.png
ZeroSizeCircle.png (139.96 KiB) Viewed 1001 times


Another observation... since you are rasterizing on export anyway, you might use the bitmap copy tool (Alt-B) to replace the filtered objects in the originals that the clones are struck from. Then you will have a bunch of clones of a few bitmaps, not clones of filters to render on the canvas... Speeds up things. (You can still keep an original vector to the side, not cloned, for revisions.) Gotta remember to delete the filtered object from the parent of the clones after Alt-B.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Internal error and crash when exporting PDF

Postby Moini » Sat Feb 23, 2019 12:36 am

How about turning this into a bug report? It looks like the 'perfect first bug report' to me, not so much like a forum post for requesting user support.

https://www.youtube.com/watch?v=3Y7_T_tbGAM
https://gitlab.com/inkscape/inbox/issues/
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Southwest
Posts: 2
Joined: Fri Feb 22, 2019 4:06 pm

Re: Internal error and crash when exporting PDF

Postby Southwest » Sat Feb 23, 2019 2:17 am

tylerdurden wrote:^^^This is like the perfect first post.^^^

Thanks; I know my way around forums and help requests pretty well. ;)

tylerdurden wrote:There is however, one bogus object you might delete: path18771. Maybe that is choking the pdf on your version?

Good spot! I think I found that and deleted it, but nevertheless, the crash persists.

tylerdurden wrote:Another observation... since you are rasterizing on export anyway, you might use the bitmap copy tool (Alt-B) to replace the filtered objects in the originals that the clones are struck from.

Interesting idea. I may try that next.

Edit to add: I did this, and the PDF exported successfully. Thanks for the suggestion!

Moini wrote:How about turning this into a bug report? It looks like the 'perfect first bug report' to me, not so much like a forum post for requesting user support.

Fair enough. I've posted it over on the bug tracker. Thanks.


Return to “Help with using Inkscape”