Bug 316169

Summary: okular cannot open some eps files
Product: [Applications] okular Reporter: thomas.gastine
Component: PS backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid, arojas, susundberg, u.michel, yurchor
Priority: NOR    
Version: 0.16.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: example eps file
example eps file

Description thomas.gastine 2013-03-05 13:22:53 UTC
okular 0.16 cannot open some eps files:
undefined -21
okular(19291)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [691x698]
QImage::scaled: Image is a null image
undefined -21

It used to work flawlessly with previous versions. It is only happening for some eps files.

Reproducible: Always

Steps to Reproduce:
1. try to open some eps files
2. 
3.
Actual Results:  
only a white frame is visible

Expected Results:  
see the proper figure

An example is provided in the URL: this file can be opened with okular 0.10.4 but not with the 0.16.
Comment 1 thomas.gastine 2013-03-05 13:24:26 UTC
Created attachment 77770 [details]
example eps file

This file can be opened with okular 0.10.4 but not with 0.16
Comment 2 thomas.gastine 2013-03-05 13:25:35 UTC
Created attachment 77771 [details]
example eps file

This file can be opened with okular 0.10.4 but not with 0.16
Comment 3 Yuri Chornoivan 2013-03-06 05:47:14 UTC
The attached image is shown as expected in Okular 0.16.1 (Ghostscript backend (gs 9.05), 32-bits).

What Ghostscript version do you use?
Comment 4 Antonio Rojas 2013-03-06 07:41:25 UTC
This is caused by the ghostscript 9.07 update, which breaks libspectre:

https://bugs.archlinux.org/task/33971
https://bugs.freedesktop.org/show_bug.cgi?id=61506
Comment 5 Albert Astals Cid 2013-03-06 23:12:56 UTC
Not much we can do at the Okular level, i'll try to have a look at the spectre sources and see what's going on.
Comment 6 thomas.gastine 2013-03-07 10:52:45 UTC
Indeed, downgrading to ghostscrip 9.06 works. In addition, it seems that a simple eps2eps on the figure is enough to make it visible with okular 0.16, gs 9.07.
Comment 7 Albert Astals Cid 2014-01-17 08:05:07 UTC
*** Bug 330019 has been marked as a duplicate of this bug. ***