Bug 186344

Summary: Okular fails to display some PostScript files generated by SeaMonkey
Product: [Applications] okular Reporter: Tristan Miller <psychonaut>
Component: PS backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Tristan Miller 2009-03-06 15:08:31 UTC
Version:            (using KDE 4.2.0)
Installed from:    SuSE RPMs

Reproducibility: Always

Steps to reproduce:
1. In SeaMonkey, go to http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2?language=en
2. Enter a starting point and destination and hit the "Search" button.
3. On the results page, hit the "View" button next to one of the results.
4. File->Print
5. Select "postscript/default" as the printer and check the "Print to File" box.  Click Print and enter a filename.
5. Attempt to open the printed PostScript file in okular.

Expected results:

6. Okular should display the file.

Observed results:

6. Okular displays a blank page with an icon in the upper left corner.  The following is output to the console:

[psy@weasel:/tmp]$ okular bar.ps
okular(18872): Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!
rangecheck -15
rangecheck -15
okular(18872)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size  0   844   0   1194
QImage::scaled: Image is a null image
rangecheck -15
rangecheck -15
okular(18872)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size  0   829   0   1173
QImage::scaled: Image is a null image
rangecheck -15
rangecheck -15
okular(18872)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size  0   147   0   208
QImage::scaled: Image is a null image
[2]+  Done                    firefox 'http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2?language=en'
[psy@weasel:/tmp]$

Notes:  So far I've been able to reproduce the problem only with PostScript files produced by SeaMonkey.  PostScript files of the same websites produced by Konqueror and Firefox seem to be OK.  Also, gv has no problems opening and displaying the files; it's only okular which seems to choke.  Not sure if this is a problem with Okular or with SeaMonkey, though since gv handles the files fine I am posting the bug report here first.
Comment 1 Pino Toscano 2009-03-06 15:29:34 UTC
libspectre bug: http://bugs.freedesktop.org/show_bug.cgi?id=17379