dia eps export broken in gutsy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dia |
Confirmed
|
Undecided
|
Unassigned | ||
dia (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I routinely exported dia diagrams to eps for several months under feisty with no problems; however, upon upgrading to gutsy, dia now produces flawed eps files on my system when exporting to eps.
The version of dia has been the same in both cases (0.96.1-3).
I am not certain this is a bug in dia, but I have not been able to localize the problem elsewhere.
The following behavior is identical with eps export using Pango or PS Latin-1 fonts:
The export from dia appears to proceed normally, and an .eps file is produced. However, the .eps file when viewed with evince shows only a small, seemingly random subset of the graphics primitives present in the original file (i.e., out of many virtually identical primitives only a few may appear). The bounding box is sized as though all graphics primitives were present, and the size of the .eps file is proportionate to the number of primitives in the original .dia file, however, most graphics primitives are invisible in the output. The .eps files also appear to have errors: for instance, while ps2pdf can produce a .pdf file with the same appearance as each .eps file, it produces errors in the conversion (shown below); also, LyX is unable to load the .eps files into documents ("error converting to loadable format").
New .dia files created from scratch appear to work correctly. However, when pasting graphics primitives from other .dia files into a new file, only those that appeared in the .eps export of the old file will appear in the .eps export of the new file. Even this is not the whole story, as in some cases I have gotten primitives that did not export from an old file to export from a new file after copy-pasting, and vice versa. However, I have not been able to discern a definite pattern here. The success of export may have something to do with the order in which primitives are added to the diagram (could all primitives after a certain point in the .eps file be ignored?). The upshot is that copying all the primitives from an old file to a new file essentially does not change anything.
I have tried completely removing all dia packages and reinstalling, with no effect.
This is a terrible problem for me, as I have created all the block diagrams for my thesis in dia, and have no other way to import them into LaTeX: dia's XFig export produces a very poor quality .fig file for my diagrams, and the SVG export produces files with numerous errors and omissions. I will be more than happy to further help debug this if anyone has an idea where to start.
Many thanks!
- Thomas Coffee
Sample error output from ps2pdf:
Error: /undefined in nan
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1889 1 3 %oparray_pop 1888 1 3 %oparray_pop --nostringval-- 1872 1 3 %oparray_pop 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:
Current allocation mode is local
Last OS error: 2
Current file position is 7533
GPL Ghostscript SVN PRE-RELEASE 8.61: Unrecoverable error, exit code 1
Here is an example .dia file I created prior to the gutsy upgrade