segfault when saving as pdf

Bug #1289471 reported by Carnë Draug
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
High
Unassigned

Bug Description

After opening the attached file as PDF, and trying to save it again as PDF, inkscape crashes. If I do this via the command line, I get the following error message:

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Segmentation fault

I can reproduce this crash 100% of times. To reproduce, open the PDF file, and then "Save as..." PDF. There is no need to make any modification to the file, simply open and try to resave it as PDF.

This file is the original PDF file, still untouched by inkscape.

I am using "Inkscape 0.48.3.1 r9886" with libcairo 1.12.2-3 from Debian Wheezy (the current Debian stable version).

Revision history for this message
Carnë Draug (carandraug) wrote :
description: updated
su_v (suv-lp)
tags: added: crash exporting pdf
Changed in inkscape:
importance: Undecided → High
Revision history for this message
su_v (suv-lp) wrote :

A main cause of the crash (or huge memory consumption & paging on OS X 10.7.5) when exporting to PDF seem to be the large number of masked bitmap images which represent the dashed lines (the PDF file reports 2034 images in poppler-glib-demo 0.24.5).

Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Windows XP, Inkscape rev 13123
backtrace attached

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

Same trouble on OS X 10.7.5 if using tools not involving Inkscape at all:
1) convert PDF to SVG using pdftocairo from poppler 2.24.5
2) convert SVG to PDF using rsvg-convert (librsvg 2.40.1, cairo 1.12.16)

-> rsvg-convert process hangs while grabbing huge amounts of memory (I killed it after 3 minutes - without a resulting PDF file - since heavy paging caused to bring the whole system close to a stand-still). Looks like a cairo issue to me, not specific (or limited) to inkscape.

tags: added: cairo
Revision history for this message
su_v (suv-lp) wrote :

Attaching SVG file generated by 'pdftocairo' (poppler 2.24.5) which fails to convert to PDF using rsvg-convert from librsvg.

Revision history for this message
su_v (suv-lp) wrote :

Likely related earlier report:
* Bug #799498 “inkscape generated excessively large PDF”
  https://bugs.launchpad.net/inkscape/+bug/799498
(apparently no crash or freeze with older cairo version 1.10.2, but file size of exported PDF file has largely increased with no relation to content added as overlay)

Revision history for this message
alexfloki (alexfloki) wrote :

It appears that you have encountered a bug in the version of Inkscape you are using. The bug causes Inkscape to crash when attempting to open a PDF file and then save it again as a PDF without any modifications. Since you can reproduce this issue consistently, it's likely a software bug rather than a problem with your specific file.

Here's what you can do to address this issue:

Check for Updates: Make sure you're using the latest version of Inkscape. Since your current version is quite old (0.48.3.1), there might have been bug fixes and improvements in newer releases.

Report the Bug: Visit the Inkscape website or the platform where you downloaded Inkscape from. Look for a bug tracker or a section to report issues. Provide a detailed description of the bug, including the steps you've mentioned and any error messages you receive. This will help the developers diagnose and fix the problem.

Try Alternative Software: While waiting for a bug fix, you might want to explore alternative software options for working with PDF files. LibreOffice Draw and Scribus are two other open-source tools that can handle PDF files and might provide a more stable experience.

Consider Upgrading Your Operating System: If possible, you might want to consider upgrading your operating system. Debian Wheezy is an older version of Debian, and newer versions might include more recent and stable software releases.

Remember that software bugs are a normal part of software development, and reporting them helps improve the software for everyone. Developers rely on user feedback to identify and fix these issues.
Source https://pagibigmp2calculator.net/pag-ibig-housing-loan-delayed-payment-2023/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.