View Issue Details

IDProjectCategoryView StatusLast Update
0007083ScribusImport / Exportpublic2011-09-15 19:35
Reporterpoliopeti Assigned Toavox  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS Version8.04
Product Version1.3.3.11 
Fixed in Version1.5.0svn 
Summary0007083: Postscript import fails for .ps files generated by Gnuplot
DescriptionWhen I try to import postscript graphs generated by Gnuplot, it fails.

I use Ubuntu 8.04, Scribus version is 1.3.3.11.

The Ghostscript version is 8.61.

It gives me the following output in the terminal window:

peti@peti-laptop:~$ PostScript import failed when calling gs as:
gs -q -dNOPAUSE -sDEVICE=nullpage -dBATCH -dDELAYBIND -g2016x2880 -r288 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -c -50 -50 translate -sTraceFile=/home/peti/.scribus/ps.out -sExportFiles=/home/peti/Document-1-kor /usr/lib/scribus/import.prolog /home/peti/Desktop/ioannina/kor.ps -c flush cfile closefile quit

Ghostscript diagnostics:

    [1.0 0.0 0.0 1.0 0.0 0.0]

    [1.0 0.0 0.0 1.0 -50.0 762.0]

    w x h =

    8.0

    8.0

    Error: /stackunderflow in --setpattern--

    Operand stack:

       --dict:8/8(ro)(L)--

    Execution stack:

       %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
       --nostringval-- --nostringval-- false 1 %stopped_push 1904 1 3 %oparray_pop 1903 1 3 %oparra
    y_pop 1887 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --no
    stringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval
    -- 1855 1 4 %oparray_pop

    Dictionary stack:

       --dict:1155/1684(ro)(G)-- --dict:0/20(G)-- --dict:185/200(L)-- --dict:160/256(L)--

    Current allocation mode is local

    Last OS error: 2

    Current file position is 14906

Steps To ReproduceSimply make any plot by Gnuplot in postscript format, for example

gnuplot> set term post color solid
gnuplot> set out 'sin.ps'
gnuplot> p sin(x)

and then try to open the 'sin.ps' file with Scribus, either File -> Open or
File -> Import -> Import EPS/PS will fail.
TagsNo tags attached.
Patch

Activities

plinnell

2008-06-09 19:43

viewer   ~0019826

Can you attach a couple of samples which fail ?

Thanks.

2008-06-10 09:31

 

sin.ps (17,726 bytes)

florian

2008-06-10 15:25

reporter   ~0019833

File/Open fails here with Scribus 1.3.5svn, ESP Ghostscript 8.15.3, Gnuplot 4.3. Same error message as above.

File/Import does work with the same configuration (but the resulting image is rotated by 90 degrees).

poliopeti

2008-06-10 19:43

reporter   ~0019834

Last edited: 2008-06-10 19:49

Well, I attached one, it can't be more simple, just a plot of the sine function, the filename is sin.ps. Neither File/Open, nor File/Import works...

If it helps, the gnuplot version is

    G N U P L O T
    Version 4.2 patchlevel 2
    last modified 31 Aug 2007

In the gnuplot i set the terminal with
gnuplot> set term post color solid


Interestingly, however, an other file - 'bigyo.ps' - could be imported. I uploaded that one as well. It was generated with gnuplot as well, if it was the same version of gnuplot, I don't remember, though. It is a 3D plot.

2008-06-10 19:50

 

bigyo.ps (33,146 bytes)

fschmid

2008-06-14 08:47

administrator   ~0019850

In 1.3.5svn the offending code in import.prolog is now commented out, it was the pattern parsing that didn't work.

fschmid

2011-07-30 09:14

administrator   ~0026658

Fixed with the new PDF importer in 1.5.0svn

Issue History

Date Modified Username Field Change
2008-06-09 19:37 poliopeti New Issue
2008-06-09 19:43 plinnell Note Added: 0019826
2008-06-10 09:30 fschmid Status new => assigned
2008-06-10 09:30 fschmid Assigned To => avox
2008-06-10 09:31 fschmid File Added: sin.ps
2008-06-10 15:25 florian Note Added: 0019833
2008-06-10 19:43 poliopeti Note Added: 0019834
2008-06-10 19:49 poliopeti Note Edited: 0019834
2008-06-10 19:50 poliopeti File Added: bigyo.ps
2008-06-14 08:47 fschmid Note Added: 0019850
2011-07-30 09:14 fschmid Note Added: 0026658
2011-07-30 09:14 fschmid Status assigned => resolved
2011-07-30 09:14 fschmid Fixed in Version => 1.5.0svn
2011-07-30 09:14 fschmid Resolution open => fixed
2011-09-15 19:35 cbradney Status resolved => closed