From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney 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: Wed, 24 Jun 2009 18:37:35 +0800 Message-ID: <4A4201EF.7000901@gnu.org> References: <49FF3340.2040008@gmx.de> <4A005A64.5050908@gnu.org> <4A3F1B05.7030105@gnu.org> <4A3F7058.902@gnu.org> <4A3F81AC.1070404@gnu.org> Reply-To: Jason Rumney , 3208@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245841157 8737 80.91.229.12 (24 Jun 2009 10:59:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 10:59:17 +0000 (UTC) Cc: schierlm@gmx.de, 3208@emacsbugs.donarmstrong.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 12:59:09 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 1MJQC4-00019l-0d for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 12:59:09 +0200 Original-Received: from localhost ([127.0.0.1]:48096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJQC3-0006UL-FZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 06:59:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJQAY-0005t8-IF for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2009 06:57:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJQAS-0005p4-1C for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2009 06:57:33 -0400 Original-Received: from [199.232.76.173] (port=41925 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJQAR-0005op-EY for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2009 06:57:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52820) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJQAQ-0007k7-2K for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2009 06:57:26 -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 n5OAvMkQ001772; Wed, 24 Jun 2009 03:57:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5OAjC4T032361; Wed, 24 Jun 2009 03:45:12 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jason Rumney Original-Sender: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Wed, 24 Jun 2009 10:45:11 +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.124583989531507 (code B ref 3208); Wed, 24 Jun 2009 10:45:11 +0000 Original-Received: (at 3208) by emacsbugs.donarmstrong.com; 24 Jun 2009 10:38:15 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5OAcBVx031502 for <3208@emacsbugs.donarmstrong.com>; Wed, 24 Jun 2009 03:38:12 -0700 Original-Received: by wf-out-1314.google.com with SMTP id 28so230394wfa.13 for <3208@emacsbugs.donarmstrong.com>; Wed, 24 Jun 2009 03:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=VoCtEgB+QlPdqG3RSoq4yCNtT7vUY0L3vekZj+F3Q5A=; b=mBEkgxJ7xabWeG44MXTiIiRwhm4ZY/t8NKgPGilJiFtsG5EmIBBmTXwowTJS57TVkZ dt2+2Ccx4SEIJRxY+kBMsy8PfoRZJCPdCxfqN7Lw6CD3Ww/8GRMc4TqM73cdDa0ptY4m jc4hkvX/ski9eLwDWGCObysXhbKErSKL4ftD4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=YtsTObVTQz7jRYzD2ibmtN3qxGE8bHEZwCcDlyU6vCWVPTKQkD61H+KbMZYfhvuoYp 4wa+cS5YliVaIPhsewXlNzQifr3jtyXTJ07Bn6ePWXsuHboB55Uh0vbqw1aTsRlAs4Hn HGOZ8u9lNGuCBXjxWyRlHTo36sdAEIbwg1kR4= Original-Received: by 10.142.88.3 with SMTP id l3mr316193wfb.339.1245839890829; Wed, 24 Jun 2009 03:38:10 -0700 (PDT) Original-Received: from ?192.168.249.26? ([118.101.236.135]) by mx.google.com with ESMTPS id 30sm2751644wff.9.2009.06.24.03.38.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Jun 2009 03:38:09 -0700 (PDT) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 24 Jun 2009 06:57:33 -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:28945 Archived-At: Kenichi Handa wrote: > Although I still can't reproduce the problem (except for the > very slowness redisplay), I noticed some inefficiency in > fontset_font. So, I've installed an improvement in the > TRUNK. As a result, in the case of inserting many #x2203, > the redisplay got faster. > The memory full problem is still there. I am surprised you don't see it if you are seeing the slowness, since if things were working correctly, only the first character displayed should be slow while the fonts are searched, subsequent insertion of the same character should reuse the cached font. Your change seems to have reduced the first time display of etc/HELLO from 12 seconds for the uniscribe backend to 10 seconds, vs 2 seconds for the gdi backend and Emacs 22 (though only uniscribe can display the complex scripts correctly). Subsequent redisplays are near instantaneous, so it still seems to be searching for fonts rather than displaying them that takes the time.