Date: 09 Apr 2003 04:26:26 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Ruslan Ermilov <ru@freebsd.org> Cc: current@freebsd.org Subject: Re: fontconfig-2.1.92 considered harmful Message-ID: <1049876786.70192.31.camel@shumai.marcuscom.com> In-Reply-To: <1049876617.70192.28.camel@shumai.marcuscom.com> References: <20030408173003.84783.qmail@web11404.mail.yahoo.com> <1049824834.360.17.camel@gyros> <20030409075115.GB34134@sunbay.com> <20030409075943.GD34134@sunbay.com> <1049875322.70192.26.camel@shumai.marcuscom.com> <20030409080606.GE34134@sunbay.com> <1049876617.70192.28.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-mtA87T2qWV3gPYw4XHvH Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2003-04-09 at 04:23, Joe Marcus Clarke wrote: > On Wed, 2003-04-09 at 04:06, Ruslan Ermilov wrote: > > On Wed, Apr 09, 2003 at 04:02:02AM -0400, Joe Marcus Clarke wrote: > > > On Wed, 2003-04-09 at 03:59, Ruslan Ermilov wrote: > > > > On Wed, Apr 09, 2003 at 10:51:15AM +0300, Ruslan Ermilov wrote: > > > > > On Tue, Apr 08, 2003 at 02:00:34PM -0400, Joe Marcus Clarke wrote= : > > > > > > On Tue, 2003-04-08 at 13:30, Shizuka Kudo wrote: > > > > > > > --- Ruslan Ermilov <ru@freebsd.org> wrote: > > > > > > > > On Tue, Apr 08, 2003 at 02:46:39PM +0200, CARTER Anthony wr= ote: > > > > > > > > > I had this bug, but now it is over...It has been fixed. D= o a CVSUP and all=20 > > > > > > > > > should now be ok. > > > > > > > > >=20 > > > > > > > > No. This is with the latest port. Where specifically it > > > > > > > > was fixed? > > > > > > > >=20 > > > > > > >=20 > > > > > > > The exact cvs message is as follows. Having you tried 'fc-cac= he -f' to rebuild font cache as root > > > > > > > in a text console and delete the fontcache in your home direc= tory (This solved my problem when > > > > > > > starting a KDE session)? > > > > > >=20 > > > > > > But Ruslan is reporting the bug in 2.1.92 which incorporates th= is fix.=20 > > > > > > Besides, what Ruslan is seeing is a different crash. I'm wonde= ring if > > > > > > it is indeed an issue with not having enough memory. All my ma= chines > > > > > > have at least 512 MB of RAM, and I've never encountered this er= ror.=20 > > > > > > Anyone have a machine with < 200 MB of RAM and is _not_ having = a problem > > > > > > with fontconfig? > > > > > >=20 > > > > > Hmm, I initially didn't notice this, because it was a batched ins= tall > > > > > of XFree86-4. Now that I try to manually reinstall the port, it = says: > > > > >=20 > > > > > =3D=3D=3D> Generating temporary packing list > > > > > Running fc-cache to build fontconfig cache... > > > > > fc-cache: "/usr/X11R6/lib/X11/fonts": caching, 0 fonts, 13 dirs > > > > > fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 397 fonts, = 0 dirs > > > > > fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": Killed > > > > > *** Error code 137 > > > > >=20 > > > > > Stop in /usr/ports/x11-fonts/fontconfig. > > > > >=20 > > > > > Apr 9 10:46:14 lurker kernel: pid 6636 (fc-cache), uid 0, was ki= lled: out of swap space > > > > >=20 > > > > > Where do I look for a fix? > > > > >=20 > > > > Okie dokie. I've worked around this by stopping all applications. > > > > While running, this fc-cache has eaten almost all of my memory. > > > > My machine has 128M RAM and 128M swap. It sure looks like a > > > > memory leak issue. > > >=20 > > > Yeah, probably a combination of multiple memory leaks. I tried to hu= nt > > > it down earlier today, but ran out of time. The debug output should > > > help. Thanks for the swap info. I had a feeling systems like this > > > might be the culprit. > > >=20 > > What I noticed by watching the swapinfo(8) output is that > > it never releases the memory after continuing with the next > > font directory. Is this expected? Does it need to preserve > > something across different font directories? If not, this > > is a memory leak for sure. >=20 > Definitely. The font caches are written out per directory. >=20 > >=20 > > I'm willing to test the patches, should they be available. >=20 > As soon as I get your debug info, I'll be in a better position to create > patches. The good thing about fontconfig is that it comes it a built-in > memory tracker. I think I just found a workaround. Ruslan, edit /usr/X11R6/etc/fonts/fonts.conf, and instead of: <dir>/usr/X11R6/lib/X11/fonts</dir> Add a=20 <dir></dir> entry for each font directory in /usr/X11R6/lib/X11/fonts. See if that helps. Joe >=20 > Joe >=20 > >=20 > >=20 > > Cheers, --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-mtA87T2qWV3gPYw4XHvH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+k9kyb2iPiv4Uz4cRAvYfAKCZiVRzoybskLw/9RvkY9RIqWlL5QCghq8t UgQqLiP6itCIh140zR/TmUo= =n0TL -----END PGP SIGNATURE----- --=-mtA87T2qWV3gPYw4XHvH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1049876786.70192.31.camel>