GPL Ghostscript 9.04: Error: Font Renderer Plugin ( FreeType ) return code = -1

Bug #846646 reported by Daniel Cordeiro
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

After upgrading to Ubuntu Oneiric, I'm getting *lots* of lines with this error message from evince when opening ps | eps files:
GPL Ghostscript 9.04: Error: Font Renderer Plugin ( FreeType ) return code = -1

Evince is taking a long time to open these ps | eps file. But I can't tell if it gets rendered correctly or not.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: evince 3.1.90.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
Uname: Linux 3.0.0-10-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 1.22.1-0ubuntu2
Architecture: i386
Date: Sat Sep 10 17:54:09 2011
ExecutablePath: /usr/bin/evince
SourcePackage: evince
UpgradeStatus: Upgraded to oneiric on 2011-09-07 (3 days ago)

Revision history for this message
Daniel Cordeiro (dcordeiro) wrote :
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

The following apparmor denials were found in the kern.log:
Sep 10 17:41:58 varzea kernel: [21712.385345] type=1400 audit(1315687318.262:427): apparmor="DENIED" operation="exec" parent=15296 profile="/usr/bin/evince" name="/usr/local/texlive/bin/i386-linux/mktexpk" pid=15297 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000
Sep 10 17:41:58 varzea kernel: [21712.390202] type=1400 audit(1315687318.266:428): apparmor="DENIED" operation="exec" parent=15296 profile="/usr/bin/evince" name="/usr/local/texlive/bin/i386-linux/mktexpk" pid=15298 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000
Sep 10 17:41:58 varzea kernel: [21712.393863] type=1400 audit(1315687318.270:429): apparmor="DENIED" operation="exec" parent=15296 profile="/usr/bin/evince" name="/usr/local/texlive/bin/i386-linux/mkofm" pid=15299 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000
Sep 10 17:41:58 varzea kernel: [21712.395712] type=1400 audit(1315687318.270:430): apparmor="DENIED" operation="exec" parent=15296 profile="/usr/bin/evince" name="/usr/local/texlive/bin/i386-linux/mktextfm" pid=15300 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000
Sep 10 17:41:58 varzea kernel: [21712.398711] type=1400 audit(1315687318.274:431): apparmor="DENIED" operation="exec" parent=15296 profile="/usr/bin/evince" name="/usr/local/texlive/bin/i386-linux/mkofm" pid=15301 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000
Sep 10 17:41:58 varzea kernel: [21712.400605] type=1400 audit(1315687318.278:432): apparmor="DENIED" operation="exec" parent=15296 profile="/usr/bin/evince" name="/usr/local/texlive/bin/i386-linux/mktextfm" pid=15302 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000
Sep 10 17:41:58 varzea kernel: [21712.433072] type=1400 audit(1315687318.310:433): apparmor="DENIED" operation="exec" parent=15296 profile="/usr/bin/evince" name="/usr/local/texlive/bin/i386-linux/mktexpk" pid=15303 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000
Sep 10 17:41:58 varzea kernel: [21712.437811] type=1400 audit(1315687318.314:434): apparmor="DENIED" operation="exec" parent=15296 profile="/usr/bin/evince" name="/usr/local/texlive/bin/i386-linux/mktexpk" pid=15304 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000

It seems you are using a non-standard texlive. If so, you can update your /etc/apparmor.d/local/usr.bin.evince file to contain entries allowing access to these files. You can also put the profile into complain mode until you can refine the profile for your needs using 'sudo aa-complain /etc/apparmor.d/usr.bin.evince'. See https://wiki.ubuntu.com/DebuggingAppArmor for details.

Changed in evince (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
status: New → Incomplete
Revision history for this message
Daniel Cordeiro (dcordeiro) wrote :

After applying the solution used on the other bug:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/846639/comments/3

i.e, adding the (very permissive) line

/usr/local/texlive/** rux,

to my /etc/apparmor.d/local/usr.bin.evince the error messages still appears.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Did you reload the profile with 'sudo apparmor_parser -r /etc/apparmor.d/usr.bin.evince'? If so, can you attach you dmesg output?

Revision history for this message
Daniel Cordeiro (dcordeiro) wrote :

I also restarted my computer just do be sure.

No new lines are added to the output of dmesg when I try to open a .ps with evince. Still, I get the error message a lot of times in my terminal. I attached the file dmesg.out with the output I get just after logging to the system and trying to open a .ps file with evince.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thanks Daniel, I think we can rule apparmor out as the problem then.

Changed in evince (Ubuntu):
assignee: Jamie Strandboge (jdstrand) → nobody
status: Incomplete → New
tags: removed: apparmor
Revision history for this message
In , Skippy (skippy-redhat-bugs) wrote :

Description of problem:
When I run evince on ps files, I get many times the following error message in the terminal :
GPL Ghostscript 9.04: Error: Font Renderer Plugin ( FreeType ) return code = -1

Not sure if and how the display is affected.

Version-Release number of selected component (if applicable):
evince i686 3.2.1 2.fc16
ghostscript i686 9.04 7.fc16
ghostscript-fonts noarch 5.50 27.fc16

Additional info:
Ubuntu seems to be affected by a similar bug : https://bugs.launchpad.net/ubuntu/+source/evince/+bug/846646

Revision history for this message
In , Skippy (skippy-redhat-bugs) wrote :

(In reply to comment #0)
> Not sure if and how the display is affected.

Actually on the files I try to read, only the first page is displayed. I can read them correctly if I process them through ps2pdf, although the following errors appears when viewing the PDF file with evince (not sure it is related, but in case it can help) :
--------------------------------------------------------------------------------
Gtk-Message: Failed to load module "pk-gtk-module"
Entity: line 5: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xFF 0xFF 0xFF 0xFF
<rdf:Description rdf:about='2afbcc86-8354-11ec-0000-4467ff3eb1c�����uuid:2afbcc8
                                                               ^
Entity: line 5: parser error : xmlParseCharRef: invalid xmlChar value 7
f3eb1c2012-01-30T12:43:25+01:00pA�p*&#9;�EWDTYpAL2012-01-30T12:43:25+01:00WD&#7;
                                                                               ^
Entity: line 6: parser error : xmlParseCharRef: invalid xmlChar value 7
f3eb1c2012-01-30T12:43:25+01:00pA�p*&#9;�EWDTYpAL2012-01-30T12:43:25+01:00WD&#7;
                                                                               ^
--------------------------------------------------------------------------------

Revision history for this message
In , Tim (tim-redhat-bugs) wrote :

Could you please attach an example document that fails to render?

Revision history for this message
In , Skippy (skippy-redhat-bugs) wrote :

Created attachment 558304
Example PS file

Revision history for this message
In , Tim (tim-redhat-bugs) wrote :

I don't see the message described in comment #0, only this once per page:

(evince:6529): Gdk-CRITICAL **: gdk_pixbuf_get_from_surface: assertion `width > 0 && height > 0' failed

(evince:6529): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

I also only see the first page, and running gs directly on the PostScript file works fine.

Changing component.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 16 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Revision history for this message
penalvch (penalvch) wrote :

Not reproducible in Trusty.

Changed in evince (Ubuntu):
status: New → Invalid
Changed in evince (Fedora):
importance: Unknown → Undecided
status: Unknown → Won't Fix
penalvch (penalvch)
no longer affects: evince (Ubuntu)
affects: evince (Fedora) → evince (Ubuntu)
Changed in evince (Ubuntu):
status: Won't Fix → New
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.