Evince cannot display ps file

Bug #58141 reported by psl
2
Affects Status Importance Assigned to Milestone
Evince
Fix Released
Critical
evince (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: evince

Ubuntu 6.06.1, Evince 0.5.2

I tried to open postscript (.ps) file in Ubuntu 6.06. Evince 0.5.2 was started but it displayed only "Loading". For long time. No error.

I found that postscript compiler (like gs-gpl) was not instaled on my system. After installing postscript interpreter, Evince worked fine.

I report this as a bug as there was no error message from Evince that it miss postscript support that is needed to open the file.

Observed on this package:
http://www.terryburton.co.uk/barcodewriter/files/postscriptbarcode.tgz

This is a gz archive, that has several ps files inside; it could be open with archiver (Fle Roller 2.14.4) and after that you can start Evince by selecting some ps file from this archive.

On the other side, I can open this file with the same Evince without any problem:
http://local.wasp.uwa.edu.au/~pbourke/dataformats/postscript/4.ps

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. evince Depends on "gs-esp | gs", did you have one of those installed? Is your bug about a Depends issue or about some files not being open? The example from the .tgz seem to be incorrect:

"Operand stack:
   (CODE 39) (includecheck includetext)
Execution stack:
   %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
   --dict:1123/1686(ro)(G)-- --dict:0/20(G)-- --dict:80/200(L)--
Current allocation mode is local
Current file position is 165
ESP Ghostscript 815.02: Unrecoverable error, exit code 1"

which is not an evince issue

Changed in evince:
assignee: nobody → desktop-bugs
importance: Untriaged → Low
status: Unconfirmed → Needs Info
Revision history for this message
psl (slansky) wrote : Re: [Bug 58141] Re: Evince cannot display ps file

Sebastien,

I tried it on two different PCs. I installed on one of them gs-gpl and after
that I was able to see ps document.

I report this as I miss error message in Evince that something is wrong.
Without message it is difficult for unexperienced user to fix it (like
instaling some missing gs package). I reported the bug as I am not happy that
Evince only prints "Loading...".

I don't know what is real problem; it could be mising dependency, or maybe
that my sample postrcript file was corrupted/incorrect. I am not expert on
this, developers should understand what is real issue and what is the best
workarround/fix.

From the point of desktop user I miss information from Evince that something
is wrong and document cannot be presented.

Thanks for your help,
Petr

------ Original Message ------
Received: Wed, 30 Aug 2006 11:50:09 AM CEST
From: Sebastien Bacher <email address hidden>
To: <email address hidden>
Subject: [Bug 58141] Re: Evince cannot display ps file

> Thanks for your bug. evince Depends on "gs-esp | gs", did you have one
> of those installed? Is your bug about a Depends issue or about some
> files not being open? The example from the .tgz seem to be incorrect:
>
> "Operand stack:
> (CODE 39) (includecheck includetext)
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2
--nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
> Dictionary stack:
> --dict:1123/1686(ro)(G)-- --dict:0/20(G)-- --dict:80/200(L)--
> Current allocation mode is local
> Current file position is 165
> ESP Ghostscript 815.02: Unrecoverable error, exit code 1"
>
> which is not an evince issue
>
> ** Changed in: evince (Ubuntu)
> Importance: Untriaged => Low
> Assignee: (unassigned) => Ubuntu Desktop Bugs
> Status: Unconfirmed => Needs Info
>
> --
> Evince cannot display ps file
> https://launchpad.net/bugs/58141
>

---------------------------------
  Petr Slansky, <email address hidden>
---------------------------------

Revision history for this message
psl (slansky) wrote :

Sebastien,

try to display barcodewriter.ps document. I guess that your error example is
from sample.ps.

I am not sure how postrcript works but you can get valid document when you
merge barcode.ps and sample.ps; sample.ps uses some definitions from
barcode.ps.

I got the same error as you when I tried ps2pdf on sample.ps. After merge
barcode.ps with sample.ps to the new document, ps2pdf generated pdf for me.

ps2pdf barcodewriter.ps works fine, it is valid postsrcipt file.

Try to display barcodewriter.ps in Evince. Try to remove gs interpreter from
your test PC and try again. After that try to display simple postscript
sample.

With regards,
Petr

------ Original Message ------
Received: Wed, 30 Aug 2006 11:50:09 AM CEST
From: Sebastien Bacher <email address hidden>
To: <email address hidden>
Subject: [Bug 58141] Re: Evince cannot display ps file

> Thanks for your bug. evince Depends on "gs-esp | gs", did you have one
> of those installed? Is your bug about a Depends issue or about some
> files not being open? The example from the .tgz seem to be incorrect:
>
> "Operand stack:
> (CODE 39) (includecheck includetext)
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2
--nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
> Dictionary stack:
> --dict:1123/1686(ro)(G)-- --dict:0/20(G)-- --dict:80/200(L)--
> Current allocation mode is local
> Current file position is 165
> ESP Ghostscript 815.02: Unrecoverable error, exit code 1"
>
> which is not an evince issue
>
> ** Changed in: evince (Ubuntu)
> Importance: Untriaged => Low
> Assignee: (unassigned) => Ubuntu Desktop Bugs
> Status: Unconfirmed => Needs Info
>
> --
> Evince cannot display ps file
> https://launchpad.net/bugs/58141
>

---------------------------------
  Petr Slansky, <email address hidden>
---------------------------------

Revision history for this message
psl (slansky) wrote :

Maybe that I was wrong and I my analyse was not correct. Problem is not missing gs-gpl package.

Try this from command line:

1) echo "This is just a evince bug demonstartion" >test.pdf
2) evince test.ps
3) you will see only "loading..." forever, no error message that test.ps is not correct postscript file.

You can see some error message in command line but user that has no knowladge about command line and he only use mouse to open files will never see such message. And it is clear that evince ignores message from postscript interpreter. Evince is not user friendly software...

Revision history for this message
psl (slansky) wrote :

Sorry, the first step should be:

1) echo "This is just a evince bug demonstartion" >test.ps

But you cant try thesame with pdf file; you will get error message in that case.

Revision history for this message
Daniel Holbach (dholbach) wrote :

I forwarded the bug to the upstream developers: http://bugzilla.gnome.org/show_bug.cgi?id=353802

Changed in evince:
status: Needs Info → Confirmed
Changed in evince:
status: Unknown → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Upstream is discussing a patch.

Changed in evince:
status: Confirmed → Needs Info
Changed in evince:
status: Needs Info → Confirmed
Changed in evince:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

fixed upstream

Changed in evince:
status: Confirmed → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

That upload fixes the problem:

 evince (0.7.2-0ubuntu1) feisty; urgency=low
 .
   * New upstream version:
     New Features and UI Improvements:
     - Document thumbnail is used as window icon
     - Support for gzipped and bzipped document types (Ubuntu: #17399)
     - A lot of new icons
     - Finally working history button
     Internal Improvements:
     - Developer gtk-doc based documentation
     - More dogtail tests
     Bug Fixes:
     - Fontconfig lock to avoid crashes
     - Critical crash fix by checking return value from psscan (Ubuntu: #58141)
     - Critical crash fix in nautilus property page and broken ODF
     - Critical crash fix with multifile djvu documents
     - Multithreaded gtk problems fix by using async gnome-vfs (Ubuntu: #45957)
   * debian/control.in:
     - Build-Depends on libgnome2-dev (>= 2.14.0),
       and libdbus-glib-1-dev (>= 0.70) rather than (>= 0.71)
   * debian/patches/02_autoconf.patch:
     - updated

Changed in evince:
status: Fix Committed → Fix Released
Revision history for this message
teresita (terrypaccarangan) wrote :

I am using Ubuntu 8.04, and the evince document viewer installed in my system is 2.22.1.1.
I opened the document in Open Office and this is what the first four lines showed:

%!PS-Adobe-3.0
%%Title: (lee9801.pdf)
%%Creator: (Acrobat Exchange 3.0: LaserWriter 8 8.4.3)
%%CreationDate: (10:46 Jeudi, 28 mai 1998)

I don't know how to debug the problem. Please help.

Thank you very much.

Changed in evince:
importance: Unknown → Critical
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.