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.
Created attachment 77770 [details] example eps file This file can be opened with okular 0.10.4 but not with 0.16
Created attachment 77771 [details] example eps file This file can be opened with okular 0.10.4 but not with 0.16
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?
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
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.
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.
*** Bug 330019 has been marked as a duplicate of this bug. ***