Bug 489919

Summary: Unable to view any PS/EPS files
Product: [Fedora] Fedora Reporter: udayb <udayreddy>
Component: urw-fontsAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 9CC: fonts-bugs, than, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-17 11:33:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A sample EPS file none

Description udayb 2009-03-12 15:15:11 UTC
Created attachment 334947 [details]
A sample EPS file

Description of problem:

After some recent yum updates, I'm unable to view a postscript file using any of the tools available (gv, evince). I've tried postscript files generated using latex/dvips as well as those generated directly from gnuplot. Having used latex and authoring/publishing tools on Linux for more than 9 years, this instability has shocked me. With gv, all pages are displayed blank (the right number of pages are displayed though). With evince, it is stuck in loading. On another f9 machine with the same version of gv, I don't have a problem. 

Version-Release number of selected component (if applicable):

xorg-x11-fonts-*-7.2-6.fc9
gv-3.6.3-3.fc9

How reproducible: Always

Steps to Reproduce:
1. Open a postscript or an encapsulated postscript file using gv or evince. I've attached a sample one.
  
Actual results:

All pages are displayed blank.


Expected results:


Additional info: I have attached a sample eps file.

Comment 1 udayb 2009-03-12 16:03:22 UTC
the problem seems to be font related. for eg. when i try to do an epstopdf on the attached file, i get

$ epstopdf /tmp/clock-freq.eps
Error: /invalidfont in /findfont
Operand stack:
   Symbol-Oblique   Symbol
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1905   1   3   %oparray_pop   1904   1   3   %oparray_pop   --nostringval--   1888   1  3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1863   2   4   %oparray_pop
Dictionary stack:
   --dict:1149/1684(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--   --dict:169/256(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.63: Unrecoverable error, exit code 1


now, when i run the same on the f9 machine that doesn't have this problem, it converts it to pdf just fine.

Comment 2 udayb 2009-03-12 16:14:47 UTC
on further investigation, i found that everything in my
/usr/share/fonts/default/Type1/ was missing. can't gv 
or evince be more verbose when they fail? the unix philosophy
has always been to be silent when everything goes fine and 
fail as noisily as possible when failing. is there some
way these files were deleted automatically, besides a
file system thrash? 

$ sudo rpm --verify urw-fonts
missing     /usr/share/fonts/default/Type1/a010013l.afm            
missing     /usr/share/fonts/default/Type1/a010013l.pfb            
missing     /usr/share/fonts/default/Type1/a010015l.afm            
missing     /usr/share/fonts/default/Type1/a010015l.pfb            
missing     /usr/share/fonts/default/Type1/a010033l.afm            
missing     /usr/share/fonts/default/Type1/a010033l.pfb            
missing     /usr/share/fonts/default/Type1/a010035l.afm            
missing     /usr/share/fonts/default/Type1/a010035l.pfb            
missing     /usr/share/fonts/default/Type1/b018012l.afm            
missing     /usr/share/fonts/default/Type1/b018012l.pfb            
missing     /usr/share/fonts/default/Type1/b018015l.afm            
missing     /usr/share/fonts/default/Type1/b018015l.pfb            
missing     /usr/share/fonts/default/Type1/b018032l.afm            
missing     /usr/share/fonts/default/Type1/b018032l.pfb            
missing     /usr/share/fonts/default/Type1/b018035l.afm            
missing     /usr/share/fonts/default/Type1/b018035l.pfb            
missing     /usr/share/fonts/default/Type1/c059013l.afm            
missing     /usr/share/fonts/default/Type1/c059013l.pfb            
missing     /usr/share/fonts/default/Type1/c059016l.afm            
missing     /usr/share/fonts/default/Type1/c059016l.pfb            
missing     /usr/share/fonts/default/Type1/c059033l.afm            
missing     /usr/share/fonts/default/Type1/c059033l.pfb            
missing     /usr/share/fonts/default/Type1/c059036l.afm            
missing     /usr/share/fonts/default/Type1/c059036l.pfb            
missing     /usr/share/fonts/default/Type1/d050000l.afm            
missing     /usr/share/fonts/default/Type1/d050000l.pfb            
missing     /usr/share/fonts/default/Type1/n019003l.afm            
missing     /usr/share/fonts/default/Type1/n019003l.pfb            
missing     /usr/share/fonts/default/Type1/n019004l.afm            
missing     /usr/share/fonts/default/Type1/n019004l.pfb            
missing     /usr/share/fonts/default/Type1/n019023l.afm            
missing     /usr/share/fonts/default/Type1/n019023l.pfb            
missing     /usr/share/fonts/default/Type1/n019024l.afm            
missing     /usr/share/fonts/default/Type1/n019024l.pfb            
missing     /usr/share/fonts/default/Type1/n019043l.afm            
missing     /usr/share/fonts/default/Type1/n019043l.pfb            
missing     /usr/share/fonts/default/Type1/n019044l.afm            
missing     /usr/share/fonts/default/Type1/n019044l.pfb            
missing     /usr/share/fonts/default/Type1/n019063l.afm            
missing     /usr/share/fonts/default/Type1/n019063l.pfb            
missing     /usr/share/fonts/default/Type1/n019064l.afm            
missing     /usr/share/fonts/default/Type1/n019064l.pfb            
missing     /usr/share/fonts/default/Type1/n021003l.afm            
missing     /usr/share/fonts/default/Type1/n021003l.pfb            
missing     /usr/share/fonts/default/Type1/n021004l.afm            
missing     /usr/share/fonts/default/Type1/n021004l.pfb            
missing     /usr/share/fonts/default/Type1/n021023l.afm            
missing     /usr/share/fonts/default/Type1/n021023l.pfb            
missing     /usr/share/fonts/default/Type1/n021024l.afm            
missing     /usr/share/fonts/default/Type1/n021024l.pfb            
missing     /usr/share/fonts/default/Type1/n022003l.afm            
missing     /usr/share/fonts/default/Type1/n022003l.pfb            
missing     /usr/share/fonts/default/Type1/n022004l.afm            
missing     /usr/share/fonts/default/Type1/n022004l.pfb            
missing     /usr/share/fonts/default/Type1/n022023l.afm            
missing     /usr/share/fonts/default/Type1/n022023l.pfb            
missing     /usr/share/fonts/default/Type1/n022024l.afm            
missing     /usr/share/fonts/default/Type1/n022024l.pfb            
missing     /usr/share/fonts/default/Type1/p052003l.afm            
missing     /usr/share/fonts/default/Type1/p052003l.pfb            
missing     /usr/share/fonts/default/Type1/p052004l.afm            
missing     /usr/share/fonts/default/Type1/p052004l.pfb            
missing     /usr/share/fonts/default/Type1/p052023l.afm            
missing     /usr/share/fonts/default/Type1/p052023l.pfb            
missing     /usr/share/fonts/default/Type1/p052024l.afm            
missing     /usr/share/fonts/default/Type1/p052024l.pfb            
missing     /usr/share/fonts/default/Type1/s050000l.afm            
missing     /usr/share/fonts/default/Type1/s050000l.pfb            
missing     /usr/share/fonts/default/Type1/z003034l.afm            
missing     /usr/share/fonts/default/Type1/z003034l.pfb

i reinstalled urw-fonts and everything's fine now.

Comment 3 Than Ngo 2009-03-17 11:33:10 UTC
evince should show the warnnings if the fonts are missing. Perhaps the warnings were saved in the log files in your case.