Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302961 - firefox doesn't display text
Summary: firefox doesn't display text
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-31 11:31 UTC by Michal Špondr
Modified: 2010-02-01 23:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
"Empty" page with no text (screen.png,30.51 KB, image/png)
2010-01-31 11:33 UTC, Michal Špondr
Details
Comparison of Chromium and Firefox generating the same page (chromium_firefox.png,69.07 KB, image/png)
2010-02-01 22:42 UTC, Michal Špondr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Špondr 2010-01-31 11:31:12 UTC
One day Firefox stopped displaying text in web sites. See the attached picture.

Reproducible: Always

Steps to Reproduce:
1. run firefox
2. visit www.google.com
3.

Actual Results:  
Firefox doesn't show text

Expected Results:  
Firefox should display text normally.

Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 31 Jan 2010 09:15:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa amd64 ao audiofile bluetooth bzip2 cairo cdda cddb cli cracklib crypt cups cxx dbus dri dvd dvdr flac gdbm geoip gif glut gnome gnutls gpm gstreamer gtk2 hal iconv imagemagick ipv6 jpeg jpeg2k lm_sensors mikmod mmap mmx modules mp3 mplayer mudflap multilib ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre pdf plotutils png pppd qt3support qt4 quicktime readline reflection sdl session sharedmem smartcard spl sqlite sse sse2 ssl ssse3 sysfs tcpd threads trayicon truetype type1 unicode vim-syntax vorbis wifi xinerama xorg xulrunner zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Michal Špondr 2010-01-31 11:33:03 UTC
Created attachment 217985 [details]
"Empty" page with no text

This is www.google.com as shown in my Firefox.
Comment 2 Michal Špondr 2010-01-31 11:38:20 UTC
I've found out this behaviour:

1. If I run it from the terminal, warning messages like this appear:
(firefox:8754): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Arial Bold 17.3330078125', text='Web'
(firefox:8754): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Arial 17.3330078125', text=' '
(firefox:8754): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Arial 13.3330078125', text=' ▼'
(firefox:8754): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Arial 21.3330078125', text=' '
...

I've reemerged Pango, but it doesn't fix it.

2. Another browser, Chromium, displays text correctly. I also haven't found any other application affected by this bug.

3. If I run Firefox as root, text is displayed correctly. However if I create a new user and run Firefox, it displays empty text. Removing ~/.mozilla and running new profile doesn't help either.
Comment 3 Michal Špondr 2010-01-31 11:42:10 UTC
USE flags for mozilla-firefox. BTW enabling/disabling the "bindist" flag doesn't help.

# equery uses mozilla-firefox
...
[ Found these USE variables for www-client/mozilla-firefox-3.5.6 ]
 U I
 + + alsa                 : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - bindist              : Flag to enable or disable options for prebuilt (GRP)  packages (eg. due to licensing issues)
 - - custom-optimization  : Fine-tune custom compiler optimizations
 + + dbus                 : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 + + gnome                : Adds GNOME support
 - - iceweasel            : Enable iceweasel branding
 + + java                 : Adds support for Java
...
 + + linguas_cs           : Czech locale
...
 - - mozdevelop           : Enable features for web developers (e.g. Venkman)
 + + sqlite               : Adds support for sqlite - embedded sql database
 - - startup-notification : Enable application startup event feedback mechanism

And USE flags for xulrunner
# equery uses xulrunner
...
[ Found these USE variables for net-libs/xulrunner-1.9.1.6 ]
 U I
 + + alsa                 : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - custom-optimization  : Fine-tune custom compiler optimizations
 + + dbus                 : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - - debug                : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - elibc_FreeBSD        : ELIBC setting for systems that use the FreeBSD C library
 + + gnome                : Adds GNOME support
 + + java                 : Adds support for Java
 - - python               : Adds support/bindings for the Python language
 + + sqlite               : Adds support for sqlite - embedded sql database
 - - startup-notification : Enable application startup event feedback mechanism
Comment 4 Michal Špondr 2010-01-31 11:46:24 UTC
Appropriate "font" section from /etc/X11/xorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder58)  Fri Aug 14 18:33:37 PDT 2009

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (root@usambara)  Thu Oct  1 14:18:46 CEST 2009

...

Section "Files"
    ModulePath      "/usr/lib64/xorg/modules"
    FontPath        "/usr/share/fonts/misc/"
    FontPath        "/usr/share/fonts/TTF/"
    FontPath        "/usr/share/fonts/OTF"
    FontPath        "/usr/share/fonts/Type1/"
    FontPath        "/usr/share/fonts/100dpi/"
    FontPath        "/usr/share/fonts/75dpi/"
    FontPath        "/usr/share/fonts/sharefonts/"
    FontPath        "/usr/share/fonts/terminus/"
    FontPath        "/usr/share/fonts/ttf-bitstream-vera/"
    FontPath        "/usr/share/fonts/unifont/"
    FontPath        "/usr/share/fonts/artwiz/"
    FontPath        "/usr/share/fonts/dejavu/"
    FontPath        "/usr/share/fonts/cyrillic/"
    FontPath        "/usr/share/fonts/latex-xft-fonts"
    FontPath        "/usr/share/fonts/lyx"
EndSection

# ls -ld /usr/share/fonts/
drwxr-xr-x 18 root root 4096 13. pro 00.00 /usr/share/fonts/

All the subdirectories and fonts in the /usr/share/fonts/ could be read by standard user.
Comment 5 Michal Špondr 2010-01-31 11:52:42 UTC
I've found the exception:
If I visit www.twitter.com , I can see the text "Share and discover what’s happening right now, anywhere in the world." in the title. Sign up buttons etc. are displayed with empty text.
Comment 6 Rafał Mużyło 2010-01-31 14:29:11 UTC
Firefox uses fontconfig, so it's not like
those sections in xorg.conf should affect it.

Check differences between fontconfig files between that user and root,
try starting a new profile in firefox.

Does it affect other gtk+ apps ?
Comment 7 Michal Špondr 2010-01-31 15:26:10 UTC
(In reply to comment #6)
> Firefox uses fontconfig, so it's not like
> those sections in xorg.conf should affect it.
> 
> Check differences between fontconfig files between that user and root,
> try starting a new profile in firefox.
> 
> Does it affect other gtk+ apps ?
> 

I can't find any gtk+ application which is affected by this.
Starting a new profile doesn't help. Even if I create a new user and run firefox, it is still without any text.

How to check differences between fontconfig files? There is no ~/.fontconfig directory in user $HOME and root $HOME.
Comment 8 Rafał Mużyło 2010-01-31 17:39:16 UTC
~/.fontconfig *dir* is for cache
The file is ~/.fonts.conf
Comment 9 Michal Špondr 2010-01-31 23:57:14 UTC
(In reply to comment #8)
> ~/.fontconfig *dir* is for cache
> The file is ~/.fonts.conf
> 

I've got no ~/.fonts.conf as a normal user nor root user. So I suppose it takes the configuration from /etc/fonts/fonts.conf, which is generated automatically.
Comment 10 Michal Špondr 2010-02-01 22:42:33 UTC
Created attachment 218112 [details]
Comparison of Chromium and Firefox generating the same page

This is a comparision between functional Chromium browser (on the left) and Firefox (on the right) displaying empty text. As you can see, some text is displayed.
Comment 11 Michal Špondr 2010-02-01 23:22:54 UTC
Problem solved.

It was because all my fonts in /usr/share/TTF/ directory were with these rights:
-rw------- 1 root root
I don't know what changed it, but the problem is solved now.