LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-09-2013, 04:14 AM   #1
Toutatis
Member
 
Registered: Feb 2013
Posts: 30

Rep: Reputation: Disabled
Problem with okular (or ghostscript ?)


When opening ps files with okular (from slackware64-current, kde-4.10.2), I get blank pages and messages of this type:
------------------------------------------------------------
okular(32278)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [926x1308]
QImage::scaled: Image is a null image
undefined -21
undefined -21
okular(32278)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [53x75]
QImage::scaled: Image is a null image
undefined -21
undefined -21
okular(32278)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [926x1308]
QImage::scaled: Image is a null image
undefined -21
undefined -21
------------------------------------------------------------

But the ps files open correctly with gv or gsview.

Any idea ?
 
Old 04-09-2013, 04:28 PM   #2
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Rep: Reputation: Disabled
Are the images displayed with gv with you're files?
I can open these ps files from the link with no problem
and I have the same version.
http://schneider.ncifcrf.gov/postscript.html
can you do that to?
 
Old 04-10-2013, 12:43 AM   #3
Toutatis
Member
 
Registered: Feb 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
I can open 'testprinter.ps' with gv, but with okular I get only a blank page and a lot of messages like this

----------------------------------------------------
okular(2683)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2683)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2683)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2683)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
undefined -21
okular(2683)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [943x943]
QImage::scaled: Image is a null image
undefined -21
okular(2683)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [943x943]
QImage::scaled: Image is a null image
undefined -21
okular(2683)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [943x943]
QImage::scaled: Image is a null image
undefined -21
okular(2683)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [943x943]
QImage::scaled: Image is a null image
----------------------------------------------------

I have tried to reinstall okular, ghostscript, poppler, libspectre with no result.
evince shows the same as okular.
But gv, gsview, mgv (an old postcript viewer) work well.
 
Old 04-10-2013, 02:19 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,380

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
testprinter.ps works fine here with okular, the only guess I can do is that you're probably not using a full install.

to fix this, run
Code:
slackpkg install slackware64
 
Old 04-10-2013, 04:36 AM   #5
Toutatis
Member
 
Registered: Feb 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
Thank you for your answers. All my packages are updated.

I downgraded 'ghostscript-9.07-x86_64-1' to 'ghostscript-9.05-x86_64-3' and now it works....
 
Old 04-10-2013, 06:38 AM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,995

Rep: Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737
Just because, I downloaded testprinter.ps and opened it with Okular:
Code:
okular testprinter.ps
QGtkStyle was unable to detect the current GTK+ theme.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QGtkStyle was unable to detect the current GTK+ theme.
kbuildsycoca4 running...
kbuildsycoca4(5301) KConfigGroup::readXdgListEntry: List entry MimeType in ".hidden/kommander.desktop" is not compliant with XDG standard (missing trailing semicolon). 
okular(5292)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(5292)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(5292)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(5292)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(5292)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(5292)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0xe60020 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
The file displayed all right, but the above stuff doesn't look all that good, eh? I'm using Xfce although KDE is fully installed; will wonders never cease (this is Slackware 64-bit stable).

Ghostview: no errors, works just fine, with these:
Code:
[
/var/log/packages/gv-3.7.3-x86_64-2
/var/log/packages/gvfs-1.12.3-x86_64-2
Ghostscript is at 9.06, no problems.
 
Old 05-22-2013, 03:58 AM   #7
Toutatis
Member
 
Registered: Feb 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
The problem is now solved with new ghostscript-9.07-x86_64-2 in slackware64-current.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem printing pdf files (okular 0.8.4 KDE 4.2.4) on openSuse 11.1 Kapten Beard Linux - Newbie 3 02-04-2010 08:06 AM
Problem with ghostscript fonts (maybe?) aldob73 Slackware 3 09-02-2007 10:41 AM
Ghostscript problem... HELP!!!! tranfuga Slackware 15 07-22-2007 12:24 PM
Cups/Ghostscript Problem lman817 Linux - Software 3 06-10-2005 12:34 AM
Ghostscript starting problem satimis *BSD 3 06-14-2004 09:38 PM


All times are GMT -5. The time now is 04:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration