Bug 329704 - Okular is unable to display a printed manual page.
Summary: Okular is unable to display a printed manual page.
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PS backend (show other bugs)
Version: 0.17.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-07 22:48 UTC by Christopher Yeleighton
Modified: 2016-05-01 22:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
the offending document (19.37 KB, application/postscript)
2014-01-07 23:16 UTC, Christopher Yeleighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2014-01-07 22:48:21 UTC
Okular is unable to display a printed manual page.  The page needs standard font Times to render.

Reproducible: Always

Steps to Reproduce:
  1. { man -t ISO-8859-1 >/tmp/latin1.ps && okular /tmp/latin1.ps; }

Actual Results:  
  1. 3 pages, nothing rendered, messages:
kular(10291)/okular (Spectre) GSGenerator::loadDocument: Page count: 3
okular(10291)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#15481080, async, 1013x1433, page 0, prio 1)
undefined -21
okular(10291)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [1013x1433]
QImage::scaled: Image is a null image
okular(10291)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#15481080, async, 996x1409, page 0, prio 1)
undefined -21
okular(10291)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [996x1409]
QImage::scaled: Image is a null image
okular(10291)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#15387496, async, 146x207, page 0, prio 2)
undefined -21
okular(10291)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [146x207]
QImage::scaled: Image is a null image
okular(10291)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#15387496, async, 146x207, page 1, prio 2)
undefined -21
okular(10291)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [146x207]
QImage::scaled: Image is a null image
okular(10291)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#15481080, async, 996x1409, page 0, prio 1)
undefined -21
okular(10291)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [996x1409]
QImage::scaled: Image is a null image
okular(10291)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#15387496, async, 146x207, page 2, prio 2)
undefined -21
okular(10291)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [146x207]
QImage::scaled: Image is a null image
okular(10291)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#15481080, async, 996x1409, page 0, prio 1)
undefined -21
okular(10291)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [996x1409]
QImage::scaled: Image is a null image


Expected Results:  
  1. The same rendering as when you tell Okular to convert the printout to PDF first, or from { gs /tmp/latin1.ps; }
Comment 1 Albert Astals Cid 2014-01-07 22:53:13 UTC
Works for me, which spectre and libgs versions do you have?
Comment 2 Christopher Yeleighton 2014-01-07 22:59:04 UTC
libspectre1-0.2.7-4.1.2.x86_64
ghostscript-9.07-3.1.3.x86_64
Comment 3 Christopher Yeleighton 2014-01-07 23:16:21 UTC
Created attachment 84503 [details]
the offending document
Comment 4 Albert Astals Cid 2014-01-08 00:44:29 UTC
do you have evince installed? does it show the file for you?
Comment 5 Christopher Yeleighton 2014-01-08 02:06:17 UTC
I do not have evince. 
Okular renders the document if LANG is unset, empty, invalid, C, POSIX, en_*, zh_TW, or_IN, aa_ZA or otherwise non-European (even nan-TW@latin works).
Otherwise the same blank pages and error messages.
Comment 6 Albert Astals Cid 2014-01-08 08:22:41 UTC
Ah yes, that, update your ghostscript.
Comment 7 cheesus 2016-04-13 20:53:57 UTC
Hello, as user of SuSE 13.1 (now evergreen) I cannot upgrade so easily, but start encountering more PDFs that won't print with error messages exactly like above.

So could you please provide us with a bug id or reference ?
I could not find anything related against 9.07 ...

(Would a downgrade of gs and/or libspectre1 also do ? How far down ?)
Comment 8 Albert Astals Cid 2016-04-19 23:00:44 UTC
cheesus this bug is not about pdf at all.
Comment 9 cheesus 2016-04-19 23:13:41 UTC
Albert, I'd say this bug is about postscript, which is probably embedded as eps in the PDFs I can't print...
I get the messages below, so this looks related to my non-expert eye.
Any other pointers are of course welcome.
Thanks.

syntaxerror -18
syntaxerror -18
okular(25510)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [88x124]
QImage::scaled: Image is a null image
syntaxerror -18
syntaxerror -18
okular(25510)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [555x785]
QImage::scaled: Image is a null image
syntaxerror -18
syntaxerror -18
okular(25510)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [78x110]
QImage::scaled: Image is a null image
Comment 10 Albert Astals Cid 2016-04-28 22:40:41 UTC
The log you mention is impossible to happen when you print a pdf file.

Or you mean print preview?
Comment 11 cheesus 2016-05-01 22:26:56 UTC
Yes you are right, the messages are from a (failed) print preview.
Printing just stalls in CUPS.
Comment 12 Albert Astals Cid 2016-05-01 22:29:49 UTC
There's nothing we can do if CUPS breaks.

Regarding 

> I could not find anything related against 9.07 ...

A quick search for "ghostscript 9.07 locale bug" in google gives me http://bugs.ghostscript.com/show_bug.cgi?id=693843

So yeah, thanks for not trusting my word and making me lose 5 minutes of my live.