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#73310: tree-sitter makes cpu 100% Date: Tue, 17 Sep 2024 15:29:33 +0300 Message-ID: <86ldzqbh02.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28913"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73310@debbugs.gnu.org To: vinurs , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 17 14:31:07 2024 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 1sqXMI-0007HX-IK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 14:31:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqXM6-0005T5-Li; Tue, 17 Sep 2024 08:30:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqXM0-0005CV-CV for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 08:30:49 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqXM0-0001DV-2N for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 08:30:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=WsdKmNgkYi+oICevPYEyoREiXi9CGdZ9R4fO8jNi/YA=; b=HWhVcPsjjIOKyrrlJxyKTf8PqXrp4NPlQC8oL/USDPA4I7yZkwkWVCHYZHlh8LF9GAk9XF4TNd04VWSS9QQSbgNfOWQj3GxLsk+2BxQHwM5LlqlERUOvV4fUcnjEpW6Zi+1Q4lxzSmMzp4+4wAsRHmtZ8KdLl/2dE+V7Qo/y8cE3FoS48ik+0OPrxumPS4Acc7FDNs2L4WqDn5t1h8iz27lKoxIAeyYGH61fHjw/9VPnjvuOoYl92gR4PuTXr6kSvddnUKa4bApnU9VSVnapx+MofyaEio1zhHCpu3x7/HvB9Yb7giqmk2YY+IOGv/ulMjzbboWEfKbfUsB5+GfC+A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqXME-0001R5-DI for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 08:31: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: Tue, 17 Sep 2024 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73310 X-GNU-PR-Package: emacs Original-Received: via spool by 73310-submit@debbugs.gnu.org id=B73310.17265762074881 (code B ref 73310); Tue, 17 Sep 2024 12:31:02 +0000 Original-Received: (at 73310) by debbugs.gnu.org; 17 Sep 2024 12:30:07 +0000 Original-Received: from localhost ([127.0.0.1]:54178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqXLK-0001Gf-QC for submit@debbugs.gnu.org; Tue, 17 Sep 2024 08:30:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqXLI-0001FO-Th for 73310@debbugs.gnu.org; Tue, 17 Sep 2024 08:30:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqXKx-0000iZ-LN; Tue, 17 Sep 2024 08:29:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=WsdKmNgkYi+oICevPYEyoREiXi9CGdZ9R4fO8jNi/YA=; b=Ncgy8bTXZitufEBxrHFs wP1ZiPmaqjqvKHcv16sXPJA/G1SQZVxMmq9/A8PT/lPEkC8B4+xAHJjH13wXT6PcPW5jdKu/FNdCJ Vvb/K1OAtBy0W68aeq2OXckCKXw/orTpK1ODCA1WpLlyQslF7Wy1ai3ZdLtUzEDLSlc+d6G6VRWYF qbXMzYl4KWWYJTXQ89UkDn0TLYrMmnfdAJa6lM9QRswzx2sOyCv2xpnKafrENccvUtIN7IcCFR83o GwMzJUjyZ0e6opE6PjkHdGhLqARETJTM4VttYwbR/MqslrsYEUmrnQYz8aHOO/K9tDZ045z4rJp0I fApoTpk8fu5cww==; In-Reply-To: (message from vinurs on Tue, 17 Sep 2024 09:27:20 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291936 Archived-At: > Date: Tue, 17 Sep 2024 09:27:20 +0800 > From: vinurs > > I am using the latest emacs-30 > https://github.com/emacs-mirror/emacs/commit/c6077015894dd89c5aa3811bf55d3124394874d0 > > The min configuration is as follows: > > (add-to-list 'treesit-extra-load-path (expand-file-name "tree-sitter/" user-emacs-directory)) > > (add-to-list 'load-path "~/.emacs.d/site-lisp/clojure-ts-mode”) > > (require 'clojure-ts-mode) > > ;; debug > > (setq debug-on-quit t) > > and I only use clojure-ts-mode package > > cd ~/.emacs.d/site-lisp > > git clone https://github.com/clojure-emacs/clojure-ts-mode.git > > Then, after opening Emacs, Open the elong.clj file, > > After moving to line 52, delete all the characters following :error-code, then quickly press the spacebar twice. > At this point, it freezes. AFAICT, it doesn't freeze, it eats up memory like crazy. If you limit the memory available to the process to some reasonable value, Emacs will soon enough tell you that memory is exhausted, and will suggest to save the buffer and exit. Yuan, can you look into this, please? I'm not sure it's an Emacs bug, but who knows?