Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 5696
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: pajas [...] ufal.ms.mff.cuni.cz
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 804.025_beta16
Fixed in: (no value)



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
On Wed Mar 17 08:28:51 2004, pajas@ufal.ms.mff.cuni.cz wrote: Show quoted text
> > --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:
> > Hi All, > > > > I'm experiencing strange memory leaks when using Tk applications
(such as Show quoted text
> > 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 Show quoted text
> > easiest way to see it is to start top in an xterm, press M (sort by
memory Show quoted text
> > usage) and watch the X process while moving mouse pointer slowly
above the Show quoted text
> > links in the toplevel window of 'widget' program. (The links
highlight as Show quoted text
> > the mouse moves above.) FIrst it takes some time to notice (probably
some Show quoted text
> > alocated memory within X gets reused), but after at most a minute
(usually Show quoted text
> > 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 Show quoted text
> > 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= Show quoted text
> ct
> > 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= Show quoted text
> y to=20 > be XFT related, sorry for giving a wrong direction. >
> > 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 >
Two years after ... is the problem still persistent? I just tried with Tk804.027 + perl5.8.8 on a FreeBSD system with xorg 6.9 and freetype 2.2.1 and there seems to be no problem. Regards, Slaven