From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Schierl Newsgroups: gmane.emacs.bugs Subject: Re: Display problems after lots of different (generated) images have been shown Date: Sun, 19 Aug 2007 23:28:31 +0200 Message-ID: <46C8B5FF.2030009@gmx.de> References: <46C89F89.9010001@gmx.de> <46C8AF6C.4090205@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187558921 32119 80.91.229.12 (19 Aug 2007 21:28:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2007 21:28:41 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 19 23:28:39 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IMsK6-00060A-IU for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Aug 2007 23:28:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMsK6-0006z6-LZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Aug 2007 17:28:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IMsK4-0006yn-W7 for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2007 17:28:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IMsK2-0006yX-PE for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2007 17:28:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMsK2-0006yU-Mh for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2007 17:28:34 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IMsK1-00083K-OI for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2007 17:28:34 -0400 Original-Received: (qmail invoked by alias); 19 Aug 2007 21:28:31 -0000 Original-Received: from p549BB5D1.dip0.t-ipconnect.de (EHLO [192.168.0.201]) [84.155.181.209] by mail.gmx.net (mp042) with SMTP; 19 Aug 2007 23:28:31 +0200 X-Authenticated: #13243522 X-Provags-ID: V01U2FsdGVkX18XIjxSKhkXdlANqiE8wg2RLGH25ki2aibyIL1uqJ pKlp4ZqZrfS8Yf User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 In-Reply-To: <46C8AF6C.4090205@gnu.org> X-Enigmail-Version: 0.95.3 OpenPGP: id=58B48CDD X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16395 Archived-At: [forgot to put the list into CC:] Jason Rumney schrieb: >> Michael Schierl wrote: >>>> If I still used Win98 I'd say it is a lack of GDI objects, but >>>> I am using WinXP and do not think one could reach the GDI >>>> object limit there. >> >> You can find out if this is the problem by starting the Task >> Manager (Ctrl-Alt-Del) and while looking at the Processes tab, >> select the "Select Columns..." option from the View menu. There >> should be an option to show the number of GDI objects in use by >> each process. The limit on XP seems to be 9999 per process (you do >> seem to be inserting more images than that). Thank you. For me it sometimes goes to 9999, and sometimes to 10000. (on Win16 and "compatible" Win32 versions the limit was 16384 for all processes together, which I reached regurlarly...) >>>> I am sure that I do not hold any stale references to these >>>> images, but it seems that they still consume some kind of >>>> resources. Killing buffers or running M-x garbage-collect does >>>> not help either. >>>> >> Try M-: (clear-image-cache) Thank you. This cures my problem. I reduced `image-cache-evicion-delay' now, so most probably I won't run into that situation again. However, the GDI object counter in task manager seems to wrap-around when I clear the image cache; it shows 4294947622 (=0xFFFFB326) afterwards. But that is most likely not a bug of Emacs :) Michael