Summary: | firefox doesn't display text | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michal Špondr <michal.spondr> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | VERIFIED INVALID | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
"Empty" page with no text
Comparison of Chromium and Firefox generating the same page |
Description
Michal Špondr
2010-01-31 11:31:12 UTC
Created attachment 217985 [details]
"Empty" page with no text
This is www.google.com as shown in my Firefox.
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. 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 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. 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. 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 ? (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. ~/.fontconfig *dir* is for cache The file is ~/.fonts.conf (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. 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.
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. |