Gentoo Forums
Gentoo Forums
Quick Search: in
Installing fontconfig >= 2.3.2-r2 causes firefox to crash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
astor84
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2007
Posts: 87
Location: Dallas, Tx

PostPosted: Tue Jun 12, 2007 9:29 pm    Post subject: Installing fontconfig >= 2.3.2-r2 causes firefox to crash Reply with quote

Installing fontconfig 2.3.2-r2 or newer causes firefox (firefox-bin) to crash when viewing certain sites.

I had this problem before and posted a similar thread, but was unable to get a resolution. Now, however, with media-libs/freetype-2.3.4-r2, a font-config-2.3.2-r2 or higher is required and I'm at an impass.

I am pretty sure that firefox is crashing because of a particular font on the websites that I am going to (Tahoma I think), but I am at a loss as to how to fix this.

Any ideas?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 09 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Jun 12, 2007 10:49 pm    Post subject: Reply with quote

And you've tested this with all the >=2.3.2-r2 versions? I've gotten some inexplicable crashes lately, so maybe this is the same issue. What were some of the sites that killed the browser?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
astor84
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2007
Posts: 87
Location: Dallas, Tx

PostPosted: Wed Jun 13, 2007 12:35 pm    Post subject: Reply with quote

didymos wrote:
And you've tested this with all the >=2.3.2-r2 versions? I've gotten some inexplicable crashes lately, so maybe this is the same issue. What were some of the sites that killed the browser?
Yes, I've tried it with every version of font-config since 2.3.2-r2.

The main website that I go to which crashes Firefox with >=2.3.2-r2 of font-config is http://forums.tabit.net , a guitar tablature site I like to frequent. Firefox crashes almost immediately when I go to that site.

I've tried running Firefox with strace and that's where I arrived at Tahoma as being the font that was crashing it (seemed to be the last thing that it did before it died was trying to render that font).
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 09 Oct 2005
Posts: 4798
Location: California

PostPosted: Wed Jun 13, 2007 9:13 pm    Post subject: Reply with quote

Well, it works great for me. Figures. Now I just have to go back to blaming the browser.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 461

PostPosted: Fri Aug 03, 2007 2:01 pm    Post subject: Reply with quote

Exact same problem. Anyone resolved it?

I've opened a bug for it. Please add your experiences there as well. Thanks.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
dirtyepic
Developer
Developer


Joined: 22 Oct 2004
Posts: 1563
Location: sk.ca

PostPosted: Fri Aug 03, 2007 6:23 pm    Post subject: Reply with quote

There were some problems with Tahoma that caused me to remove it again from corefonts. Please make sure you're using a recent version.

I need some help reproducing this since I'm unable to here. It's also important that this be fixed since using fontconfig versions below 2.4 are not an option since a lot of font improvements i'd like to do require it. I have a feeling there are a lot of people who may have hit this and not reported it.

Do you have any fonts installed that aren't in portage? Are you using mozilla-firefox or mozilla-firefox-bin? What do you have default font set to? Sans or Serif? Enter about:config in the address bar and filter on "freetype". Are any of the settings changed from default (they'll be bold if they are)? Filter on "font". Anything changed other than font names / sizes? Are there any other applications crashing? Can you reproduce this using ftstring, ftdiff, or ftview?

Of course emerge --info, gdb backtraces, and strace to find what font firefox is crashing on would be a help too.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 461

PostPosted: Fri Aug 03, 2007 6:51 pm    Post subject: Reply with quote

I'm running firefox, not firefox-bin.

I'll try updating to the most recent (~x86) corefonts (am in the middle of a long emerge right now).

Default font is Helvetica.

The following are not set to the default in about:config:

Code:

font.FreeType2.autohinted
font.FreeType2.enable
font.minimum-size.x-western
font.name.serif.x-western
print.printer_PostScript/default.print_downloadfonts
print.tmp.printerfeatures.PostScript/default.can_change_downloadfonts
print.tmp.printerfeatures.PostScript/default.supports_downloadfonts_change


Everything else is at the default value. Should we be even looking inside about:config? I have this problem even when in safe mode.

Haven't seen anything else crash, but this is a very recent update, so haven't run much since. FWIW, xv did segfault, and re-emerging it fixed that (doesn't fix Firefox, though).

My emerge --info is in that bug report, along with an strace.

Just downloaded (manually - not via Portage) a the bin version of Firefox. It's actually working fine.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 461

PostPosted: Fri Aug 03, 2007 6:56 pm    Post subject: Reply with quote

Might as well add that the forum site that the earlier poster listed works fine with me.

Examples of sites that crash for me:

http://en.wikipedia.org/wiki/Mozilla
http://en.wikipedia.org/wiki/Hebrew
Main Wikipedia page (!!)

Will keep editing this post and adding more as I come across them.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 461

PostPosted: Fri Aug 03, 2007 7:18 pm    Post subject: Reply with quote

I still had a copy of the old Mozilla. Things worked on it. I just got rid of it and installed Seamonkey (via Portage). Just as with Firefox, it crashes on the same sites.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
dirtyepic
Developer
Developer


Joined: 22 Oct 2004
Posts: 1563
Location: sk.ca

PostPosted: Fri Aug 03, 2007 8:15 pm    Post subject: Reply with quote

are you using USE="moznopango"?
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 616
Location: Vancouver, BC

PostPosted: Sat Aug 04, 2007 10:32 pm    Post subject: Reply with quote

dirtyepic wrote:
I need some help reproducing this since I'm unable to here. It's also important that this be fixed since using fontconfig versions below 2.4 are not an option since a lot of font improvements i'd like to do require it. I have a feeling there are a lot of people who may have hit this and not reported it.


Sort of a fluke that I found this thread - I had the problem with Firefox crashing after updating to fontconfig 2.4.2 and installing new fonts. After *much* head scratching, I found out that some fonts in /usr/share/fonts/ did not have world readable permissions, and that firefox segfaulted trying to load a font a certain website required. I literally just created a bug for this issue and was browsing through the forums and found this by accident. I posted my solution on another thread in this forum a while back. I'd forgotten to add a bug for this as it isn't entirely expected behaviour.

I don't know if this is the same issue but it sure sounds darn familiar.
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 461

PostPosted: Mon Aug 13, 2007 3:14 pm    Post subject: Reply with quote

Thanks - it actually did work for me.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
dirtyepic
Developer
Developer


Joined: 22 Oct 2004
Posts: 1563
Location: sk.ca

PostPosted: Mon Aug 13, 2007 8:20 pm    Post subject: Reply with quote

cool. this might actually be the cause of several bugs we have open. i'll look into
adding some checks to be sure all the fonts we install have the correct
permissions. i'm not sure what we can do about user-installed fonts though.

maybe i can make a case to fontconfig upstream to filter out fonts that aren't
world readable.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 616
Location: Vancouver, BC

PostPosted: Mon Aug 13, 2007 8:51 pm    Post subject: Reply with quote

In my case I was looking at a website and it looked horrible since they used some nonstandard font. I downloaded and installed it myself, and tried loading the page. Every time after that firefox would segfault on me as soon as I tried to load *any* webpage.

So, yeah... it was my own dumb fault and I found the solution accidentally. :oops:

Of course I didn't associate myself installing fonts and firefox crashing right away... it took me a couple days of head-scratching to figure it out. Isn't that always how it goes? :wink:
Back to top
View user's profile Send private message
astor84
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2007
Posts: 87
Location: Dallas, Tx

PostPosted: Tue Aug 14, 2007 11:55 pm    Post subject: Reply with quote

dirtyepic wrote:
There were some problems with Tahoma that caused me to remove it again from corefonts. Please make sure you're using a recent version.

I need some help reproducing this since I'm unable to here. It's also important that this be fixed since using fontconfig versions below 2.4 are not an option since a lot of font improvements i'd like to do require it. I have a feeling there are a lot of people who may have hit this and not reported it.

Do you have any fonts installed that aren't in portage? Are you using mozilla-firefox or mozilla-firefox-bin? What do you have default font set to? Sans or Serif? Enter about:config in the address bar and filter on "freetype". Are any of the settings changed from default (they'll be bold if they are)? Filter on "font". Anything changed other than font names / sizes? Are there any other applications crashing? Can you reproduce this using ftstring, ftdiff, or ftview?

Of course emerge --info, gdb backtraces, and strace to find what font firefox is crashing on would be a help too.

I appreciate you (an actual devel) helping me solve this issue.

I went to about:config and filtered on freetype on then on font; none of the settings were changed from the Firefox defaults. I have no issues with any other applications crashing (Konqueror works fine for web browsing ... other than that I mostly use Kmail, Pidgin, Konsole, Akregator, pgadmin3, and audacious, and KDE-3.5.7, none of which crash).

Here is emerge --info
Code:
coruscant ~ # emerge --info
Portage 2.1.2.11 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r2 i686)
=================================================================
System uname: 2.6.22-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 14 Aug 2007 11:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distfiles.gentoo.org http://open-systems.ufl.edu/mirrors/gentoo"
LINGUAS="en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aiglx alsa asf audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli cracklib crypt cups curl dbus divx4linux dri dts dvd dvdr dvdread eds emboss encode fam ffmpeg firefox flac flash fortran gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 hal iconv imagemagick ipv6 isdnlog java jpeg kde kdeenablefinal lcms logitech-mouse mad midi mikmod mmx mng motif mozilla mozilla-firefox mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre perl png ppds pppd python qt3 qt4 quicktime rdesktop readline real reflection remote rrdtool samba scanner sdl session snmp speex spell spl sse sse2 sse3 ssl tcpd theora tiff tk truetype truetype-fonts type1-fonts unicode usb v5l vdr vidix visualization vorbis win32codecs wma wxwindows x86 xcb xine xinerama xml xorg xosd xv xvid zlib" ALSA_CARDS="emu10k1 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I don't exactly know how to get a gdb backtrace, but if you will explain how I will be more than happy to provide one.

As far as a Firefox strace, here is an strace run by launching Firefox from a terminal and going to the url wikipedia.org
Code:
chris@coruscant ~ $ firefox
No running windows found

(Gecko:13754): Pango-WARNING **: shape engine failure, expect ugly output. the offending font is 'Verdana Not-Rotated 8.5986328125'

(Gecko:13754): Pango-WARNING **: shape engine failure, expect ugly output. the offending font is 'Verdana Not-Rotated 9.9990234375'

(Gecko:13754): Pango-WARNING **: shape engine failure, expect ugly output. the offending font is 'Verdana Not-Rotated 11.75'

(Gecko:13754): Pango-WARNING **: shape engine failure, expect ugly output. the offending font is 'Arial Not-Rotated 11.75'

(Gecko:13754): Pango-WARNING **: shape engine failure, expect ugly output. the offending font is 'Tahoma Not-Rotated 11.75'
/usr/libexec/mozilla-launcher: line 119: 13754 Segmentation fault      $(type -P aoss) "$mozbin" "$@"
firefox-bin exited with non-zero status (139)
dirtyepic wrote:
are you using USE="moznopango"?

No. Should I?
Code:
coruscant ~ # emerge -pv mozilla-firefox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-client/mozilla-firefox-2.0.0.6  USE="gnome ipv6 java xinerama -bindist -debug -filepicker -mozdevelop -moznopango -restrict-javascript -xforms -xprint" LINGUAS="-af -ar -be -bg -ca -cs -da -de -el -en_GB -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -sk -sl -sv -sv_SE -tr -zh -zh_CN -zh_TW" 0 kB


After seeing a couple of the posts above, it had a look in /usr/share/fonts/. It appears that the corefonts directory does not have world execute permissions and neither does the shorefonts directory. Could this be the problem?

EDIT: Adding execute permissions to these directories (/usr/share/fonts/corefonts and /usr/share/fonts/sharefonts) seems to solve the problem, but it would be awesome if the next version of fontconfig (or whatever package) handles this automatically.
Back to top
View user's profile Send private message
dirtyepic
Developer
Developer


Joined: 22 Oct 2004
Posts: 1563
Location: sk.ca

PostPosted: Wed Aug 15, 2007 9:17 am    Post subject: Reply with quote

astor84 wrote:
dirtyepic wrote:
are you using USE="moznopango"?

No. Should I?


No, it shouldn't matter. Firefox either uses pango or freetype to handle fonts, and I just wanted to see if the reason I couldn't reproduce this was because I was using the wrong one.

Quote:
After seeing a couple of the posts above, it had a look in /usr/share/fonts/. It appears that the corefonts directory does not have world execute permissions and neither does the shorefonts directory. Could this be the problem?

EDIT: Adding execute permissions to these directories (/usr/share/fonts/corefonts and /usr/share/fonts/sharefonts) seems to solve the problem, but it would be awesome if the next version of fontconfig (or whatever package) handles this automatically.


Yeah I'll be adding checks to the font eclass so every time a font gets installed the permissions are set correctly. That doesn't help ppl who already have fonts w/ bad permissions installed, but it'll prevent it from happening in the future.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
dirtyepic
Developer
Developer


Joined: 22 Oct 2004
Posts: 1563
Location: sk.ca

PostPosted: Wed Aug 15, 2007 8:04 pm    Post subject: Reply with quote

done and done.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum