Bug 27290 - okular fails to open postscript files (.ps)
Summary: okular fails to open postscript files (.ps)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Stig-Ørjan Smelror
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-18 19:38 CEST by Barry Jackson
Modified: 2020-09-19 12:24 CEST (History)
1 user (show)

See Also:
Source RPM: okular-20.08.1-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Barry Jackson 2020-09-18 19:38:19 CEST
Description of problem:
As summary

It works fine in Mga7 and was working until recently in Cauldron.

[baz@jackodesktop ~]$ okular a_image.ps
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1175x1591]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [48x65]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [1158x1568]
QImage::scaled: Image is a null image


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

Oddly evince is also supposed to open .ps but it is not working in Mga7 or Cauldron either. I am assured that it works fine in Debian. Looking at the evince spec we do have the configure for ps enabled.
Maybe we need another report for evince although it seems the two are linked by ghostscript:

[baz@jackodesktop ~]$ evince a_image.ps
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100


How reproducible:
 

Steps to Reproduce:
1. wget https://www-eng-x.llnl.gov/documents/a_image.ps
2. try to open "a_image.ps" with okular.
3.
Comment 1 Stig-Ørjan Smelror 2020-09-18 23:29:42 CEST
$ gs a_image.ps

File opens and displays fine.

Am seeing the same results as you, Barry, when trying Okular and Evince.

At the moment, I believe it isn't really a problem with Ghostscript. Can't be sure, but it's my gut feeling.

Something else is missing and/or happening here. There is no mention on the Ghostscript bugzilla page on either of the error messages I saw.
https://bugs.ghostscript.com/describecomponents.cgi?product=Ghostscript

On the other hand, both Okular and Evince can't be doing the same mistake.

Am at a loss here and would love some input/advice/help.

CC: (none) => smelror

Comment 2 Stig-Ørjan Smelror 2020-09-18 23:36:17 CEST
The culprit is libspectre.

I've pushed a new build against the new version of Ghostscript after I had verified that it worked locally.

Please confirm once the new build has hit the mirrors.


Cheers,
Stig

Assignee: bugsquad => smelror

Comment 3 Barry Jackson 2020-09-19 00:45:21 CEST
Thanks Stig,
Yes I can confirm that this has fixed both okular and evince in Cauldron.

Nice work. :)

Evince was not working in Mga7, however okular was so I will double check that.
Could be a different issue.
Comment 4 Barry Jackson 2020-09-19 12:24:32 CEST
Yes evince is broken in Mga7 but from the terminal output it is not related to this, so it requires a new bug report.

So closing this as resolved, thanks!

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.