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: Thu, 18 Jun 2009 13:29:48 +0800 Message-ID: <4A39D0CC.70707@gnu.org> References: <49FF3340.2040008@gmx.de> <4A005A64.5050908@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 1245303481 27098 80.91.229.12 (18 Jun 2009 05:38:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2009 05:38:01 +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 Thu Jun 18 07:37:57 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 1MHAJv-0005oa-O5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 07:37:56 +0200 Original-Received: from localhost ([127.0.0.1]:56884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHAJv-0007Bq-5P for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 01:37:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHAJW-000730-C9 for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 01:37:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHAJQ-0006wx-Ug for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 01:37:29 -0400 Original-Received: from [199.232.76.173] (port=58379 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHAJQ-0006wj-Ah for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 01:37:24 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33407) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHAJP-0002qh-OP for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 01:37:24 -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 n5I5bLIY028641; Wed, 17 Jun 2009 22:37:21 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5I5Z41t028032; Wed, 17 Jun 2009 22:35:04 -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: Thu, 18 Jun 2009 05:35:04 +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.124530303527730 (code B ref 3208); Thu, 18 Jun 2009 05:35:04 +0000 Original-Received: (at 3208) by emacsbugs.donarmstrong.com; 18 Jun 2009 05:30:35 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-pz0-f203.google.com (mail-pz0-f203.google.com [209.85.222.203]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5I5UUZr027531 for <3208@emacsbugs.donarmstrong.com>; Wed, 17 Jun 2009 22:30:31 -0700 Original-Received: by pzk41 with SMTP id 41so741091pzk.19 for <3208@emacsbugs.donarmstrong.com>; Wed, 17 Jun 2009 22:30:24 -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=g4zsl0jCQyCY8NcthHZkD4rnQEpf+6VYGkQQKZ+8Euw=; b=TkUt1eLcixc5MdmaPxRYuBzO8+6a37a3gxPgBw1wPm4yxagvQMVWcvAqhmgTK4avBP dHiiU96RKiJcaHFgB5w3uyIcQruBiUTe62VXc5GHtKrrqMqIWsG8+n+D25ErylBFBK2D 696PZcBiKzecwCilMo+QYcWpVxVLe2J5ix+zk= 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=t7uC0mlHn6F7FCluIiwz0mPNjYp7ARFedU/TNoAH+OWgeen4+TZnRM0E+uyc+yyVDI HYIpXV4ix0Weo4Z0QHl9qkGesFs4FyFTx6YCpx5erdyF/Rb0YfSjk4JRhIm2scRNqwWq Twoj0KCarXJvViUYudYQoaTfoLwAV+ptW37mA= Original-Received: by 10.114.182.1 with SMTP id e1mr1481489waf.141.1245303024701; Wed, 17 Jun 2009 22:30:24 -0700 (PDT) Original-Received: from ?10.1.1.112? ([61.4.103.130]) by mx.google.com with ESMTPS id v9sm2671140wah.36.2009.06.17.22.30.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Jun 2009 22:30:23 -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: Thu, 18 Jun 2009 01:37:29 -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:28803 Archived-At: Kenichi Handa wrote: > Anyway, font_sort_entities is called from > font_find_for_lface (via font_select_entity). > > Could you please find why font_find_for_lface is called so > releatedly by setting breakpoint in fontset_find_font (with > condition "c == 0x2203)? > I am still investigating this, but I've found that the problem is specific to the uniscribe font backend on Windows. I couldn't find the root cause by debugging, so I am now trying profiling to narrow the search. With uniscribe font backend enabled, font_load_for_lface gets called 124k times from 165k calls to fontset_find_font before the memory overflow. The glyph that gets displayed is a double-width katakana YO from MS Mincho font (it seems the font defines the same glyph to be used for mathematical THERE EXISTS). With only the gdi font backend enabled, font_load_for_lface gets called only once from 399k calls to fontset_find_font, but the default Courier New font is used to display the characters even though it does not contain a glyph (so the default empty box glyph is displayed).