Evince misses font and only displays squares in menus

Bug #1396048 reported by [mrs_sheep]
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Evince misses some font and only displays squares in menus, text is displayed okay, screenshot attached.

Console:
$ evince

(evince:8959): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu 11'

(evince:8959): Pango-WARNING **: font_face status is: out of memory

(evince:8959): Pango-WARNING **: scaled_font status is: out of memory

(evince:8959): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Ubuntu 11', text='●'

(evince:8959): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu 11'

(evince:8959): Pango-WARNING **: font_face status is: out of memory

(evince:8959): Pango-WARNING **: scaled_font status is: out of memory

(evince:8959): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu 15.83984375'

(evince:8959): Pango-WARNING **: font_face status is: out of memory

(evince:8959): Pango-WARNING **: scaled_font status is: out of memory

(evince:8959): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Ubuntu 15.83984375', text='This document is locked and can only be read by entering the correct password.'

(evince:8959): Gtk-CRITICAL **: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed

(evince:8959): Gtk-CRITICAL **: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed

(evince:8959): Gtk-CRITICAL **: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed

(evince:8959): Gtk-CRITICAL **: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed

(evince:8959): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu Italic 13.1982421875'

(evince:8959): Pango-WARNING **: font_face status is: out of memory

(evince:8959): Pango-WARNING **: scaled_font status is: out of memory

(evince:8959): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Ubuntu Italic 13.1982421875', text='Loading…'

(evince:8959): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu Italic 11'

(evince:8959): Pango-WARNING **: font_face status is: out of memory

(evince:8959): Pango-WARNING **: scaled_font status is: out of memory

(evince:8959): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu Italic 11'

(evince:8959): Pango-WARNING **: font_face status is: out of memory

(evince:8959): Pango-WARNING **: scaled_font status is: out of memory

(evince:8959): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Ubuntu Italic 11', text='The quick brown fox jumps over the lazy dog.'

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: evince 3.14.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-24.32-generic 3.16.4
Uname: Linux 3.16.0-24-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Nov 25 10:23:21 2014
ExecutablePath: /usr/bin/evince
InstallationDate: Installed on 2013-09-08 (442 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: evince
UpgradeStatus: Upgraded to utopic on 2014-10-24 (32 days ago)

Revision history for this message
[mrs_sheep] (mrs-sheep) wrote :
Changed in evince (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in evince (Ubuntu):
status: New → Confirmed
Revision history for this message
danmb (danmbox) wrote :

For me it seems to happen with symlinks from /usr/share/fonts to a different partition

Revision history for this message
[mrs_sheep] (mrs-sheep) wrote :

I had managed to fix this in 14.10, but I never understood how.
After upgrade to 15.04 it's back again.

@danmbox - Is there a quick way to check if I have symlinks in that directory? Maybe I have the same situation...

Revision history for this message
Seth Arnold (seth-arnold) wrote :

mrs sheep, your kernel logs indicate AppArmor is blocking attempts to load fonts located in /home/mrssheep/Documents/SystemFonts/truetype/ubuntu-font-family/

The ttf-ubuntu-font-family package installs fonts into the directory /usr/share/fonts/truetype/ubuntu-font-family/

It's possible you've got symlinks from /usr/share/fonts or /usr/share/fonts/truetype to your home directory.

You could either add /home/mrssheep/Document/SystemFonts/** to the /etc/apparmor.d/abstractions/font file or add an entry:

alias /usr/share/fonts/truetype/ -> /home/mrssheep/Documents/SystemFonts/truetype/
to the /etc/apparmor.d/tunables/alias file

(I'd pick the first if you copied the files, I'd pick the second if you configured a symbolic link.)

After either change you'll need to reload the profiles; easiest is to reboot, but you can also run sudo service apparmor restart

Thanks

Changed in evince (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
[mrs_sheep] (mrs-sheep) wrote :

Thanks, I had forgotten about my symbolic link setup and just moved the entire folder back into /usr/share and now it works!

Revision history for this message
Tong Sun (suntong001) wrote :

I've got the exact same problem, and the cause is exactly the same as well -- It happens because of symlinks from /usr/share/fonts to a different partition.

symlinking fonts to a different partition is quite harmless in my view, and Pango should not treat them any differently. Thus it is a bug that should be fixed. If you have this same view, please head to https://bugs.launchpad.net/ubuntu/+source/pango1.0/+bug/1639513, and confirm the problem at least.

Thanks

Revision history for this message
Antoine Amarilli (a3nm) wrote :

I had the same problem. Another related problem is that, if /usr/share/icons is a symlink to a different partition, then evince crashes at startup:

$ evince
**
Gtk:ERROR:../../../../gtk/gtkrecentmanager.c:1999:get_icon_fallback: assertion failed: (retval != NULL)
zsh: abort evince

Revision history for this message
Seth Arnold (seth-arnold) wrote :

Antoine, you'll need to add an alias line:

alias /usr/share/icons/ -> /path/to/whatever/

to the /etc/apparmor.d/tunables/alias file

You'll need to reload the profiles; easiest is to reboot.

Thanks

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.