From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19266: 24.4; Font-related window redrawing delays on OS X Date: Fri, 12 Dec 2014 10:06:20 +0200 Message-ID: <83iohhs35v.fsf@gnu.org> References: <83y4qn50ua.fsf@gnu.org> <957C7241-1F90-42A3-83DE-4696B483C1F0@lunaryorn.com> <83ppbz4t3f.fsf@gnu.org> <83fvcrzbku.fsf@gnu.org> <8361dit70g.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1418371647 31291 80.91.229.3 (12 Dec 2014 08:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2014 08:07:27 +0000 (UTC) Cc: dmantipov@yandex.ru, swiesner@lunaryorn.com, 19266@debbugs.gnu.org To: Kirill Ignatiev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 09:07:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XzLFs-0007Qa-2e for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 09:07:16 +0100 Original-Received: from localhost ([::1]:55931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzLFr-0003it-Iu for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 03:07:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzLFj-0003ig-T7 for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2014 03:07:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzLFe-0004qs-Tf for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2014 03:07:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzLFe-0004qn-Q1 for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2014 03:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XzLFe-0000u3-AS for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2014 03:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Dec 2014 08:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19266 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19266-submit@debbugs.gnu.org id=B19266.14183715883433 (code B ref 19266); Fri, 12 Dec 2014 08:07:02 +0000 Original-Received: (at 19266) by debbugs.gnu.org; 12 Dec 2014 08:06:28 +0000 Original-Received: from localhost ([127.0.0.1]:43485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzLF5-0000tI-R4 for submit@debbugs.gnu.org; Fri, 12 Dec 2014 03:06:28 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:57987) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzLF3-0000sy-A4 for 19266@debbugs.gnu.org; Fri, 12 Dec 2014 03:06:26 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NGG00900M6NN900@a-mtaout22.012.net.il> for 19266@debbugs.gnu.org; Fri, 12 Dec 2014 10:06:19 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGG009B2MIIFE70@a-mtaout22.012.net.il>; Fri, 12 Dec 2014 10:06:19 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97253 Archived-At: > Date: Thu, 11 Dec 2014 21:10:32 -0500 > From: Kirill Ignatiev > Cc: Dmitry Antipov , Sebastian Wiesner , 19266@debbugs.gnu.org > > On 11 December 2014 at 12:45, Eli Zaretskii wrote: > >> Date: Wed, 10 Dec 2014 18:50:01 -0500 > >> From: Kirill Ignatiev > >> Cc: Sebastian Wiesner , 19266@debbugs.gnu.org > > > > Comment out the call to cleanup_vector? > > Oops, I only tried to turn compact_font_cache_entry into a noop. But > neither that, nor doing nothing in cleanup_vector works. If I comment > out drv->close, I see a bunch of calls to drv->close not being made, > but new fonts are *still* being opened in font_open_entity. > > I'm guessing that when fonts are garbage collected, they are already > genuinely discarded, not pointed to from elisp structures (or where > they are stored), and are genuine garbage. Do you know where the > pointers to fonts live? I haven't figured out where they are being > discarded, and I'd like to stop them from becoming garbage in the > first place. Look up the call chain (best done by setting a breakpoint and looking at the backtrace), and you will certainly find a place which decides to discard them. Then comment out or change the code which does that. > >> How do I trigger font garbage collection manually? > > > > Did you try "M-x garbage-collect RET"? > > Yes, but it doesn't seem to trigger closing fonts. Perhaps there is > some other process at work there? Again, look at the backtrace at a breakpoint in cleanup_vector and in compact_font_cache_entry. Isn't there some GC-related function on the callstack? Perhaps post that here, if you cannot figure that out.