From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling) Date: Mon, 15 Aug 2022 17:28:44 +0300 Message-ID: <83tu6dh97n.fsf@gnu.org> References: <87bksmx1j1.fsf@localhost> <5900f208367791fbdfe2@heytings.org> <87tu6d4txk.fsf@localhost> <835yitiucj.fsf@gnu.org> <871qthsiio.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10575"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, 57207@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 15 16:47:07 2022 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 1oNbMw-0002cD-Uu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 16:47:07 +0200 Original-Received: from localhost ([::1]:38614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNbMv-0002lj-VZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 10:47:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNbLq-0001J1-ET for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 10:45:58 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNb6T-0005BI-Lw for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 10:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNb6Q-0003Ng-I1 for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 10:30:02 -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, 15 Aug 2022 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57207 X-GNU-PR-Package: emacs Original-Received: via spool by 57207-submit@debbugs.gnu.org id=B57207.166057374712875 (code B ref 57207); Mon, 15 Aug 2022 14:30:02 +0000 Original-Received: (at 57207) by debbugs.gnu.org; 15 Aug 2022 14:29:07 +0000 Original-Received: from localhost ([127.0.0.1]:43770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNb5W-0003La-SA for submit@debbugs.gnu.org; Mon, 15 Aug 2022 10:29:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNb5U-0003L6-MJ for 57207@debbugs.gnu.org; Mon, 15 Aug 2022 10:29:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39890) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNb5P-0004pL-7E; Mon, 15 Aug 2022 10:28:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EDhaqNod6OgU+7fTQF2gCFRgI8vmYEJfH3jTdNfZHxg=; b=iapa3vAivXh9 sqal8pCb7NgkurncWA6VncBKJ0LTBPHZ8ojuFOgmuTyaJiXgMCzyf3fLqZBFT4Ahzpghame0D7auD iAXXfVnPhd+8kZX8rJOY4jnxEpkMcmCQCm6ENbnqmOngKEvz8A2oehDCbIsnopWH8/+sN1c12Wo5H 2cItChFx+4ZOfdyMllOPeXTElRBTBh8geyrXZz9Vzblic7SSQkv2LZ2i0k/jvsEc4UGaZxVvji/YE 4n8NnGMFaat7tAh0nTy/1vDvtvOEi+nO+VHp/HlSdgtZwGbP1kRoEgugDvKKNAmRjkWdjbggmA2lC 5lc45W/zUJP7vg0Kkfu4HA==; Original-Received: from [87.69.77.57] (port=2156 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNb5N-0001Os-Lm; Mon, 15 Aug 2022 10:28:58 -0400 In-Reply-To: <871qthsiio.fsf@localhost> (message from Ihor Radchenko on Mon, 15 Aug 2022 22:12:15 +0800) 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:239804 Archived-At: > From: Ihor Radchenko > Cc: gregory@heytings.org, 57207@debbugs.gnu.org > Date: Mon, 15 Aug 2022 22:12:15 +0800 > > > When it hangs, can you attach a debugger to it and try to figure out > > where it loops? The instructions to do so are in etc/DEBUG, under "If > > the symptom of the bug is that Emacs fails to respond". If that > > procedure is more than you can afford, at least post the results of > > "thread apply all bt" after attaching the debugger to a "hung" Emacs. > > Emacs with debugging support is generally slow on my large Org file, but > I think that I managed to get some kind of backtrace with the default > value of long-line-threshold. > > I typed C-z in GDB shell right after triggering the slow operation (it > is headline unfolding in my testing). > > (I did confirm that setting long-line-threshold to nil makes the > unfolding instant) > > The GDB log is below. Hope it gives some clues. It does, and it is the code I suspected was the culprit. Can you tell some statistics about the lines in that file: . how many lines? . how many lines longer than 10000 characters? . how many lines longer than 100000 characters? And finally, can you post a short enough Org file, but long enough to exhibit the features you need to do the "unfolding headlines hidden using 'invisible text property" thing? And also tell which Org commands you invoke to do that unfolding? Because I don't think I understand what exactly are you doing in Org to trigger this, and thus I cannot try reproducing it. Thanks.