From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1377 invoked by alias); 19 Apr 2010 17:33:56 -0000 Received: (qmail 1361 invoked by uid 22791); 19 Apr 2010 17:33:54 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from n9.bullet.re3.yahoo.com (HELO n9.bullet.re3.yahoo.com) (68.142.237.94) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 19 Apr 2010 17:33:46 +0000 Received: from [68.142.237.87] by n9.bullet.re3.yahoo.com with NNFMP; 19 Apr 2010 17:33:44 -0000 Received: from [216.252.111.167] by t3.bullet.re3.yahoo.com with NNFMP; 19 Apr 2010 17:33:44 -0000 Received: from [127.0.0.1] by omp102.mail.re3.yahoo.com with NNFMP; 19 Apr 2010 17:33:44 -0000 Received: (qmail 82207 invoked by uid 60001); 19 Apr 2010 17:33:44 -0000 Message-ID: <333099.79245.qm@web88002.mail.re2.yahoo.com> Received: from [209.167.8.150] by web88002.mail.re2.yahoo.com via HTTP; Mon, 19 Apr 2010 10:33:43 PDT References: <745077.37241.qm@web88004.mail.re2.yahoo.com> <4BB0DB76.20708@dronecode.org.uk> <599525.40364.qm@web88006.mail.re2.yahoo.com> <4BBA5671.7060309@dronecode.org.uk> <730771.75866.qm@web88008.mail.re2.yahoo.com> <4BCB61A2.3070503@dronecode.org.uk> Date: Tue, 20 Apr 2010 11:21:00 -0000 From: Amal Khailtash Subject: Re: USER/GDI Objects leak with (XWin.exe) Cygwin/X X Server Verion 1.7.6, Build Date 2010-03-18 To: cygwin-xfree@cygwin.com In-Reply-To: <4BCB61A2.3070503@dronecode.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2010-04/txt/msg00063.txt.bz2 Jon, Thanks for looking into this. Yes, it seems this problem shows up for some applications. gnome-terminal seems to behave better. But konsole and my specific TCL-based application (modelsim) seem to suffer from this. The problem is even if I quit the troublesome application, resources are not released and that tells me the leak is somewhere in the core X server and not the application, but somehow only shows up for those. Some of the applications that I found that show this leak are: * modelsim * konsole * kfontview * kate It seems KDE-based apps are the worst. The problem is not as severe in gnome-based applications. But I can see that, even in those, not all resources are released either! Another not is that even Xming suffers from this same problem. I assume most of the source code is shared between XWin and Xming. Cheers,-- Amal ----- Original Message ---- From: Jon TURNEY To: cygwin-xfree@cygwin.com Cc: akhailtash@yahoo.com Sent: Sun, April 18, 2010 3:46:42 PM Subject: Re: USER/GDI Objects leak with (XWin.exe) Cygwin/X X Server Verion 1.7.6, Build Date 2010-03-18 On 06/04/2010 20:05, Amal Khailtash wrote: > Click on Session menu and while the menu is open, move to Edit, then View, Bookmarks, > Settings and Help and click outside to withdraw menu: > > Image Name User Objects GDI Objects > XWin.exe 39 79 > > Click on any menu item and while the menu is open and move cursor to other menu items > a number of (20) times: > > Image Name User Objects GDI Objects > XWin.exe 241 483 > > Keep doing this and you will see the allocated objects keeps increasing and increasing and > they are never released even if I close my Konsole window! Thanks for the clear reproduction steps. With these, I can reproduce this problem. According to the GdiUsage tool this seems to be a GDI bitmap handle being leaked. Unfortunately GdiUsage seems to have rusted a bit and doesn't produce useful backtraces (and may well not be able to backtrace a cygwin executable, anyhow) so locating exactly where the leak is coming from is going to be a bit tricky... The one thing I notice is that other applications with menus don't seem to show this problem. The konsole I was testing with is relatively recent and has menus with rounded corners, I wonder if that is somehow related to the problem? -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/