Bug 309536 - GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
Summary: GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-04 15:46 UTC by Bernd Oliver Sünderhauf
Modified: 2012-11-05 18:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Oliver Sünderhauf 2012-11-04 15:46:25 UTC
Many PDF documents still throw a number of errors such as this:
  GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
when previewing or saving to a (PDF/PS) file.

The console output is:
okular(2853)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-pancho/ksycoca4"
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kparts KParts::ReadWritePart::setModified: setModified( false )
okular(2853)/kparts KParts::ReadWritePart::setModified: setModified( false )
okular(2853)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "application/pdf" ,  "okular/Generator"  : returning  1  offers
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=3 1214x1717@0
okular(2853)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=3 1214x1717@0 async == true
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=3 1214x1717@0
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=4 78x110@0
okular(2853)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=4 78x110@0 async == true

And then upon preview:
okular(2853)/kdeprint Okular::FilePrinterPreview::FilePrinterPreview: kdeprint: creating preview dialog
okular(2853)/kdeprint Okular::FilePrinterPreviewPrivate::getPart: querying trader for application/ps service
okular(2853)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "application/postscript" ,  "KParts/ReadOnlyPart"  : returning  2  offers
okular(2853)/kdeprint Okular::FilePrinterPreviewPrivate::getPart: Trying to create a part
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2853)/kparts KParts::ReadWritePart::setModified: setModified( false )
okular(2853)/kparts KParts::ReadWritePart::setModified: setModified( false )
okular(2853)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "application/postscript" ,  "okular/Generator"  : returning  1  offers
okular(2853)/okular (Spectre) GSGenerator::loadDocument: Page count: 1
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=3 88x124@0
okular(2853)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=3 88x124@0 async == true
okular(2853)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#3, async, 88x124, page 0, prio 1)
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=3 88x124@0
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=4 78x110@0
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=3 555x785@0
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=3 555x785@0
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
okular(2853)/okular (app) Okular::Document::requestPixmaps: request id=3 555x785@0
okular(2853)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=3 555x785@0 async == true
okular(2853)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#3, async, 555x785, page 0, prio 1)
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
okular(2853)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=4 78x110@0 async == true
okular(2853)/okular (Spectre) GSGenerator::generatePixmap: receiving PixmapRequest(#4, async, 78x110, page 0, prio 2)
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1

Reproducible: Always

Steps to Reproduce:
Open the attached file (embedding a Type1 font) with Okular and preview it.



Using Kubuntu 12.10 with: okular: 0.15.2, ghostscript: 9.06, libfreetype6: 2.4.10 and libspectre 0.2.7

The Freetype patch:
https://savannah.nongnu.org/bugs/?func=detailitem&item_id=35833 /
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=9a55cb7a
and the followup:
https://savannah.nongnu.org/bugs/?func=detailitem&item_id=35847 / http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=b43e0f44
should have fixed the Font Renderer Plugin issue in 2.4.10, but obviously it didn't.
Does someone know whether libspectre comes bundled with an old version of freetype? Then I'd know whether to file this against freetype or libspectre.
Comment 1 Pino Toscano 2012-11-04 16:01:24 UTC
Which version of the poppler library are you using?
Comment 2 Bernd Oliver Sünderhauf 2012-11-05 09:39:29 UTC
libpoppler is version 20.4.
Comment 3 Pino Toscano 2012-11-05 09:42:09 UTC
(In reply to comment #2)
> libpoppler is version 20.4.

0.20.4, you mean.

Ask your distro to update to 0.20.5, and then try again.
Comment 4 Albert Astals Cid 2012-11-05 10:04:30 UTC
PIno: why you ask about poppler in a bug about viewing PS files?

Bernd: spectre is just a thin wrapper over libgs, so it's either libgs or freetype bug, not much we can do here so i'm closing the bug as upstream issue
Comment 5 Pino Toscano 2012-11-05 10:15:30 UTC
(In reply to comment #4)
> PIno: why you ask about poppler in a bug about viewing PS files?

Because it is about opening PDF documents and (print) previewing them to PS (so using poppler's PSOutputDev). Wasn't there a poppler report about it, recently?
Comment 6 Albert Astals Cid 2012-11-05 18:48:41 UTC
No poppler bug report about that that i can remember