From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#3208: 23.0.93; Memory full / crash when displaying lots of characters from a large font (like Arial Unicode or Code2000) which is not explicitly selected (on Win32) Date: Fri, 26 Jun 2009 22:12:38 +0900 Message-ID: References: <49FF3340.2040008@gmx.de> <4A005A64.5050908@gnu.org> <4A3F1B05.7030105@gnu.org> <4A3F7058.902@gnu.org> <4A3F81AC.1070404@gnu.org> <4A420357.8050706@gnu.org> <4A422909.9060800@gnu.org> <4A4379F7.4000100@gnu.org> <4A44629C.9040209@gnu.org> Reply-To: Kenichi Handa , 3208@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1246023471 27015 80.91.229.12 (26 Jun 2009 13:37:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2009 13:37:51 +0000 (UTC) Cc: schierlm@gmx.de, 3208@emacsbugs.donarmstrong.com To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 26 15:37:44 2009 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 1MKBcb-00029X-BZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jun 2009 15:37:41 +0200 Original-Received: from localhost ([127.0.0.1]:35303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKBca-0001x3-Rx for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jun 2009 09:37:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MKBcS-0001u8-Ka for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 09:37:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKBcN-0001pd-PM for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 09:37:31 -0400 Original-Received: from [199.232.76.173] (port=45535 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKBcN-0001pR-Iu for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 09:37:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34194) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MKBcN-0001sa-0N for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 09:37:27 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5QDbMK3018065; Fri, 26 Jun 2009 06:37:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5QDK4Sl014832; Fri, 26 Jun 2009 06:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Fri, 26 Jun 2009 13:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3208 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 3208-submit@emacsbugs.donarmstrong.com id=B3208.124602196513845 (code B ref 3208); Fri, 26 Jun 2009 13:20:03 +0000 Original-Received: (at 3208) by emacsbugs.donarmstrong.com; 26 Jun 2009 13:12:45 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5QDCe1t013833 for <3208@emacsbugs.donarmstrong.com>; Fri, 26 Jun 2009 06:12:41 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n5QDCdi1017871; Fri, 26 Jun 2009 22:12:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n5QDCcQd005540; Fri, 26 Jun 2009 22:12:38 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id n5QDCcxb008365; Fri, 26 Jun 2009 22:12:38 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MKBEM-0007zh-6z; Fri, 26 Jun 2009 22:12:38 +0900 In-reply-to: <4A44629C.9040209@gnu.org> (message from Jason Rumney on Fri, 26 Jun 2009 13:54:36 +0800) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 26 Jun 2009 09:37:31 -0400 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:28987 Archived-At: In article <4A44629C.9040209@gnu.org>, Jason Rumney writes: > Kenichi Handa wrote: > > If no GC happens while displaying all characters of that > > long line, those temporarily created Lisp vectors accumulate > > in memory without reused, which may lead to memory full. > > > While I was profiling to try to identify a possible cause, there were 6 > GCs in the 25 seconds that Emacs was running (taking up 22% of the > time). So GC does seem to happen, though maybe it was after the first > warning was thrown. I added a static variable `vconcat_size' that accumulates the size of vectors created by Fvconcat at the end of font_list_entities. After (insert-char #x2203 10000), GC is called once while update_menu_bar is called. After that, until memory_full is called (in the Fvconcat above), no GC is called, and vconcat_size increases by about 100M which means at least 400M bytes is consumued by dead vectors. So, I think the above hypothesis is correct. --- Kenichi Handa handa@m17n.org