Subject: | Tk gives Memory leak in X11 |
Date: | Wed, 17 Mar 2004 13:28:41 +0000 |
To: | bug-tk [...] rt.cpan.org |
From: | Petr Pajas <pajas [...] ufal.ms.mff.cuni.cz> |
--Boundary-02=_QQBWALfZebyo+Qa
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
On Tuesday 16 March 2004 18:32, Petr Pajas wrote:
Show quoted text
> Hi All,
>
> I'm experiencing strange memory leaks when using Tk applications (such as
> widget) with XFT-enabled Tk (including latest Tk beta) on SuSE 9,
> XFree86-4.3.0.1-46, fontconfig-2.2.92.20040221-0, freetype2-2.1.7-11.
>
> The memory leaks don't appear in the applications themselves but in X. The
> easiest way to see it is to start top in an xterm, press M (sort by memory
> usage) and watch the X process while moving mouse pointer slowly above the
> links in the toplevel window of 'widget' program. (The links highlight as
> the mouse moves above.) FIrst it takes some time to notice (probably some
> alocated memory within X gets reused), but after at most a minute (usually
> less - depends on how is X process already big), you'll see an enormous
> leaks about a MB per second. This way I can soon make the X process to use
> several hundred megabytes. When widget is closed, X doesn't free the
> memory, but next time it takes longer before the leak is visible. I suspe=
ct
Show quoted text> it's related to XFT, but I didn't check rigorously.
Ok, now I recompiled Tk with XFT=3D0 and it's all the same, so it's unlikel=
y to=20
be XFT related, sorry for giving a wrong direction.
Show quoted text> I'd like to see if somebody else is able to reproduce the leaks and of
> course, if somebody could explain it and possibly find a fix. It's quite
> annoying, since after a few hours of using a larger Tk app I have to
> restart X :-(
>
> Thanks,
/Petr=20
--Boundary-02=_QQBWALfZebyo+Qa
Content-Type: application/pgp-signature
Content-Description: signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQBAWBQPQfxdLDi03+IRAqZPAJ427KNvYlof3ijeYuFP8gdZPJlVeACfQFp+
leZz8exlOQxo6I5hHvVmiRQ=
=ftwj
-----END PGP SIGNATURE-----
--Boundary-02=_QQBWALfZebyo+Qa--
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu