converting svg with masks to eps crashes

Bug #1566653 reported by m2broth
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Unassigned

Bug Description

Hi all

We using the inskcape command line to convert svg file to eps.

inkscape test.svg -E test.eps

The svg file contains masks (elements with tag "<mask>"). Inkscape crashes when converts to eps. When we remove masks from svg the inkscape converts correctly without errors. See attached svg file.

Here is command line response:

inkscape test.svg -E test.eps
terminate called after throwing an instance of 'Inkscape::Extension::Output::save_failed'

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.
** Message: Error: Inkscape encountered an internal error and will close now.

Aborted

Here is the strace output:

write(2, "with a detailed description of t"..., 81with a detailed description of the steps leading to the crash, so we can fix it.
) = 81
write(2, "** Message: Error: Inkscape enco"..., 79** Message: Error: Inkscape encountered an internal error and will close now.

) = 79
rt_sigreturn() = 0
rt_sigaction(SIGABRT, {SIG_DFL, ~[], SA_RESTORER, 0x7f95221c8d40}, NULL, 8) = 0
tgkill(13731, 13731, SIGABRT) = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=13731, si_uid=1000} ---
+++ killed by SIGABRT +++
Aborted

Inkscape version : Inkscape 0.48.5 r (Jun 21 2014)
OS version : Linux Mint 17 Qiana (Ubuntu 14.04.3 LTS)

Revision history for this message
m2broth (m2broth) wrote :
description: updated
description: updated
jazzynico (jazzynico)
tags: added: exporting
tags: removed: svg
Revision history for this message
m2broth (m2broth) wrote :

It seems that bug is appears only for large canvas size (more then 100x100 inch). SVG with mask and size 90x90 inch has been converted well

Revision history for this message
m2broth (m2broth) wrote :

Any suggestion about this issue?

jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → High
Revision history for this message
jazzynico (jazzynico) wrote :

Crash reproduced on Windows XP, Inkscape trunk rev. 14909, when launched with the command line.
Not reproduced when saving from the graphical user interface.

Changed in inkscape:
status: New → Triaged
tags: added: cli
Revision history for this message
Nathan Lee (nathan.lee) wrote :

Replicated crash in 0.48.4 r9939 (Jan 22 2014) Ubuntu 14.04.6. No crash in GUI save as per comment 4, but save failed there too.

No crash in Inkscape 1.0.1-2 (3bc2e813f5, 2020-09-07) Arch. I get this error instead:

** (org.inkscape.Inkscape:2889438): CRITICAL **: 21:30:45.712: error while rendering output: invalid value (typically too big) for the size of the input (surface, pattern, etc.)

Running both through gdb and looking at what causes the failure, cairo_status_t status = CAIRO_STATUS_INVALID_SIZE in CairoRenderContext::finish for both cases.

So the same issue occurs with both, but in 1.0 and later, it fails gracefully. I'd consider this fixed (and closing as such)

Inability to export a large image still exists (tracked in https://bugs.launchpad.net/inkscape/+bug/955889). Yes, an eps export of a mask should produce a bitmap, confirmed with 0.48.4 and tracked in https://gitlab.com/inkscape/inbox/-/issues/4014

We're gradually migrating bug over to GitLab by the way, so the other launchpad issue will probably be closed earlier too https://alpha.inkscape.org/bug-migration/

Thanks for reporting! Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

Changed in inkscape:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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