PS/EPS export fails when using pattern

Bug #425529 reported by Joakim Lundvall
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

SaveAs EPS/PS failes with this line
<text id="Y" x="122.5mm" y="265mm" text-anchor="middle" opacity="0.3" fill="#FFE6D5" font-family="'TrebuchetMS-Bold'" style="font-family:Trebuchet MS" font-size="55mm">

But works with this

<text id="year" x="122.5mm" y="265mm" text-anchor="middle" opacity="1" fill="#FFE6D5" font-family="'TrebuchetMS-Bold'" style="font-family:Trebuchet MS" font-size="55mm">

The only differens is the opacity. IDE error is "file c:\test.eps cannot be saved"

in command line the result is as follows. (inkscapec --export-eps=c:\test2.eps -T -dpi=300 c:\test_opacity1.svg)
** Message: Error: Inkscape encountered an internal error and will close now.

Workaround for me was to replace opacity with other color and move down object.

Revision history for this message
theAdib (theadib) wrote :

Please provide/attach a complete svg sample that fails.
Also please report your version number of Inkscape and what system you are running.

Adib.

tags: added: crash exporting
Revision history for this message
Joakim Lundvall (joakim-lundvall) wrote :

Operating system VISTA business sp2

version: Inkscape 0.46+devel 22040, built Aug 10 2009

Command line running via Inkscapec.exe

Revision history for this message
Joakim Lundvall (joakim-lundvall) wrote :

Also noted that the failing file works when <pattern> is not used.

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

    the file "opacity_fails.svg" contains a number of unexpected/illegal characters in it. For example hex codes EF, BB, BF at the start, before the '<'. Also, unusual carriage return/linefeed sequences such as Ascii code 10, 13, 10, 13, 10 instead of just 13, 10.
    was this file generated by Inkscape?
    I pre-processed this file by loading it into Inkscape and then immediately re-saving it to produce opacity_fails_new.svg, which appears to contain normal syntax.

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

running Windows XP, Inkscape 0.47pre2-2

I then saved this file as .ps to produce the attached result. As far as I can tell this is an accurate rendition of the original .svg file. No unexpected error messages were encountered, other than the missing link to the file bgr_body.jpg, which I assume will not occur on your machine.

Could you retry this by cleaning up the file and re-saving it?

Revision history for this message
Joakim Lundvall (joakim-lundvall) wrote : SV: [Bug 425529] Re: PS/EPS export when using opacity

Hi Alvin,

File is produced from Visual Studio 2008, and hand changed by me in notepad, I am not 100% certain about the code sequence you tell me about, but I believe that is windows telling this file is UTF-8. 13/10 etc, I believe this is Unix to windows conversions that don't work correctly.

Did it work to save it as eps after you loaded it? Mine didn't.

As I said, it works perfect when not using opacity in the text together with the pattern.

I have recoded my program and it know works good (without opacity).

The font-style, which appears also in the style, is because otherwise Batik dont do its work. Inkscape don't seem to bother about this duality.

/Joakim

-----Ursprungligt meddelande-----
Från: <email address hidden> [mailto:<email address hidden>] För Alvin Penner
Skickat: den 7 september 2009 13:49
Till: <email address hidden>
Ämne: [Bug 425529] Re: PS/EPS export when using opacity

    the file "opacity_fails.svg" contains a number of unexpected/illegal characters in it. For example hex codes EF, BB, BF at the start, before the '<'. Also, unusual carriage return/linefeed sequences such as Ascii code 10, 13, 10, 13, 10 instead of just 13, 10.
    was this file generated by Inkscape?
    I pre-processed this file by loading it into Inkscape and then immediately re-saving it to produce opacity_fails_new.svg, which appears to contain normal syntax.

** Attachment added: "opacity_fails_new.svg"
   http://launchpadlibrarian.net/31437276/opacity_fails_new.svg

--
PS/EPS export when using opacity
https://bugs.launchpad.net/bugs/425529
You received this bug notification because you are a direct subscriber
of the bug.

Status in Inkscape: A Vector Drawing Tool: New

Bug description:
SaveAs EPS/PS failes with this line
<text id="Y" x="122.5mm" y="265mm" text-anchor="middle" opacity="0.3" fill="#FFE6D5" font-family="'TrebuchetMS-Bold'" style="font-family:Trebuchet MS" font-size="55mm">

But works with this

<text id="year" x="122.5mm" y="265mm" text-anchor="middle" opacity="1" fill="#FFE6D5" font-family="'TrebuchetMS-Bold'" style="font-family:Trebuchet MS" font-size="55mm">

The only differens is the opacity. IDE error is "file c:\test.eps cannot be saved"

in command line the result is as follows. (inkscapec --export-eps=c:\test2.eps -T -dpi=300 c:\test_opacity1.svg)
** Message: Error: Inkscape encountered an internal error and will close now.

Workaround for me was to replace opacity with other color and move down object.

Revision history for this message
Joakim Lundvall (joakim-lundvall) wrote :

Ok I will.

/Joakim

-----Ursprungligt meddelande-----
Från: <email address hidden> [mailto:<email address hidden>] För Alvin Penner
Skickat: den 7 september 2009 13:56
Till: <email address hidden>
Ämne: [Bug 425529] Re: PS/EPS export when using opacity

running Windows XP, Inkscape 0.47pre2-2

I then saved this file as .ps to produce the attached result. As far as
I can tell this is an accurate rendition of the original .svg file. No
unexpected error messages were encountered, other than the missing link
to the file bgr_body.jpg, which I assume will not occur on your machine.

Could you retry this by cleaning up the file and re-saving it?

** Attachment added: "opacity_fails_new.ps"
   http://launchpadlibrarian.net/31437422/opacity_fails_new.ps

--
PS/EPS export when using opacity
https://bugs.launchpad.net/bugs/425529
You received this bug notification because you are a direct subscriber
of the bug.

Status in Inkscape: A Vector Drawing Tool: New

Bug description:
SaveAs EPS/PS failes with this line
<text id="Y" x="122.5mm" y="265mm" text-anchor="middle" opacity="0.3" fill="#FFE6D5" font-family="'TrebuchetMS-Bold'" style="font-family:Trebuchet MS" font-size="55mm">

But works with this

<text id="year" x="122.5mm" y="265mm" text-anchor="middle" opacity="1" fill="#FFE6D5" font-family="'TrebuchetMS-Bold'" style="font-family:Trebuchet MS" font-size="55mm">

The only differens is the opacity. IDE error is "file c:\test.eps cannot be saved"

in command line the result is as follows. (inkscapec --export-eps=c:\test2.eps -T -dpi=300 c:\test_opacity1.svg)
** Message: Error: Inkscape encountered an internal error and will close now.

Workaround for me was to replace opacity with other color and move down object.

Revision history for this message
Alvin Penner (apenner) wrote : Re: PS/EPS export when using opacity

I think you need to change the syntax of the '-dpi' option.

On my machine the DOS command

inkscapec --export-eps=test2.eps -T -dpi=300 c:\Windows\temp\opacity_fails.svg

leads to a crash as you had.
However, the command :
inkscapec --export-eps=test2.eps -T --export-dpi=300 c:\Windows\temp\opacity_fails.svg

leads to the attached eps file. The difference is the syntax of the dpi option.

Revision history for this message
Joakim Lundvall (joakim-lundvall) wrote :

This file is created in inkscape, same problem arise as on mine.

With the change of -dpi to --export-dpi command line seems to work on my files.

But the inkcluded file fails from within Inkscape. It is created completly in Inkscape, no handcoding at all.

Try "save as" eps, gives me file can't be saved

from command line I get this:

** Message: Error: Inkscape encountered an internal error and will close now.

terminate called after throwing an instance of 'Inkscape::Extension::Output::sav
e_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.

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

- confirmed on Windows XP, 0.47pre2
- it looks like the pattern is causing a problem when saving opacity_1.svg
- error message is : File C:\WINDOWS\Temp\test2.eps could not be saved.

Changed in inkscape:
status: New → Confirmed
summary: - PS/EPS export when using opacity
+ PS/EPS export fails when using pattern
Revision history for this message
su_v (suv-lp) wrote :

Crash not reproduced with Inkscape 0.46+devel r22200 on OS X 10.5.8

File used: opacity_1.svg from comment #9

output as PS/EPS brought the system almost to a standstill, consuming up to 1.2 GB memory, but both files were exported and are readable.

su_v (suv-lp)
tags: added: eps pattern
Revision history for this message
Chidhu (cchidhu) wrote :

I am facing same problem.. It is failing to save as .eps when pattern is used. Please advice as early as possible.

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

Reproduced on Windows XP, Inkscape trunk rev. 14527. Inkscape doesn't crash, but fails to export the file.

Changed in inkscape:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Xubuntu 15.10, Inkscape 0.91 and trunk rev. 14527. The file is exported with no error message.

Unfortunately, the pattern is not exported (only the text shows in evince), both with PS and EPS exports.

Revision history for this message
jazzynico (jazzynico) wrote :

Xubuntu 15.10 has Cairo 1.14.2 (the official win32 devlibs use Cairo 1.11.2).

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.