From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40733: 28.0.50; Emacs locks up on paste (yank) of unicode characters Date: Mon, 01 Jun 2020 18:15:32 +0300 Message-ID: <831rmyg6ln.fsf@gnu.org> References: <87mu756aen.fsf@tcd.ie> <83v9ln7jy4.fsf@gnu.org> <83d07qzdv7.fsf@gnu.org> <834kt2z7n1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31750"; mail-complaints-to="usenet@ciao.gmane.io" Cc: contovob@tcd.ie, 40733@debbugs.gnu.org, rpluim@gmail.com, cloos@jhcloos.com, will.g.bush@gmail.com To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 01 17:16:25 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfmAq-00087J-Vv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Jun 2020 17:16:24 +0200 Original-Received: from localhost ([::1]:32842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfmAp-0005Es-A4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Jun 2020 11:16:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfmAU-0005AV-9X for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2020 11:16:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfmAT-0005Qc-UX for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2020 11:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jfmAT-0007ex-Ov for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2020 11:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jun 2020 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40733 X-GNU-PR-Package: emacs Original-Received: via spool by 40733-submit@debbugs.gnu.org id=B40733.159102454529421 (code B ref 40733); Mon, 01 Jun 2020 15:16:01 +0000 Original-Received: (at 40733) by debbugs.gnu.org; 1 Jun 2020 15:15:45 +0000 Original-Received: from localhost ([127.0.0.1]:36739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfmA7-0007eM-Fw for submit@debbugs.gnu.org; Mon, 01 Jun 2020 11:15:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfmA5-0007eA-Nj for 40733@debbugs.gnu.org; Mon, 01 Jun 2020 11:15:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50785) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfmA0-0005Cw-0e; Mon, 01 Jun 2020 11:15:32 -0400 Original-Received: from [176.228.60.248] (port=3837 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jfm9z-0005Km-CL; Mon, 01 Jun 2020 11:15:31 -0400 In-Reply-To: (message from Pip Cet on Mon, 1 Jun 2020 11:44:10 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181340 Archived-At: > From: Pip Cet > Date: Mon, 1 Jun 2020 11:44:10 +0000 > Cc: Eli Zaretskii , "Basil L. Contovounesios" , Robert Pluim , > 40733@debbugs.gnu.org, James Cloos > > On Mon, Jun 1, 2020 at 11:20 AM Will Bush wrote: > > git clone https://github.com/adobe-fonts/adobe-blank.git > > cd adobe-blank > > sudo cp AdobeBlank.ttf /usr/share/fonts/ > > fc-cache > > time emacs -Q --eval '(message "︵")' -kill > > > > And it took 4 minutes in the virtual machine! > > Please try it and see if you can repro! > > It's taking a while here (pretty standard GNU/Linux x86_64 system), > but something on the order of 20 seconds, not 4 minutes. > > in ftcrfont.c: > > pat = ftfont_entity_pattern (entity, pixel_size); > FcConfigSubstitute (NULL, pat, FcMatchPattern); > FcDefaultSubstitute (pat); > match = FcFontMatch (NULL, pat, &result); <=========== > ftfont_fix_match (pat, match); > > This is where it spends so much time. "perf record emacs -Q" suggests > it's a function called FcCharSetSubtractCount. (You might try running > that on your setup, too). Thanks. >From what I see in the net search, this is a very large font, created for some very special circumstances. Not sure we should spend time on this issue. Maybe submit a bug report to Fontconfig folks.