From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: vinurs Newsgroups: gmane.emacs.bugs Subject: bug#73310: tree-sitter makes cpu 100% Date: Thu, 19 Sep 2024 20:53:41 +0800 Message-ID: References: <86ldzqbh02.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="66ec1eda_6ca32ff6_ba0f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36765"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73310@debbugs.gnu.org To: Yuan Fu , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 19 14:54:56 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 1srGgR-0009Ng-ON for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Sep 2024 14:54:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srGgI-0001El-Lc; Thu, 19 Sep 2024 08:54:46 -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 1srGgH-0001Ec-4r for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:54:45 -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 1srGgG-00078A-Qo for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:54:44 -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=uea1XxCtunz601IAPBglUvz6ET+E4PO+HrMB/rcxZzY=; b=CG2zze5EN89hwwpxS9TpklFgNu3RI+YvOdFW8uf3egoVNJFvoxVVxrXLlG4dIlzM7HwB3M+ai/WMqOmjKB7m2IJv3e//yK+6RBGymJsKxG7HH4iuXIJawbi7DMG0toclrdpMs0GwsG3wJDEtuLls5zcN+xwRCYQmuNKDnUOYpJ/lGpw3hf7oc35pEx1CcLsu1cIgyIfmScbUUbLBKrzOFXYiZM/Of2S+hayY3SOE9TGHq/zZJA9fCL5LzV49EXcR+ZOnl1s5+I/lPAha0Jfxt6IO3YoRKHlFEDSOMEt+8CzSmUePwLZgFt5OcQs4DPYEqBPhMfQY8jZJUuwJhaStIg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srGgX-0005Al-QZ for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: vinurs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2024 12:55:01 +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.172675046419812 (code B ref 73310); Thu, 19 Sep 2024 12:55:01 +0000 Original-Received: (at 73310) by debbugs.gnu.org; 19 Sep 2024 12:54:24 +0000 Original-Received: from localhost ([127.0.0.1]:59980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srGfw-00059R-26 for submit@debbugs.gnu.org; Thu, 19 Sep 2024 08:54:24 -0400 Original-Received: from sender4-op-o12.zoho.com ([136.143.188.12]:17269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srGft-00059I-49 for 73310@debbugs.gnu.org; Thu, 19 Sep 2024 08:54:22 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1726750432; cv=none; d=zohomail.com; s=zohoarc; b=QZw3oBmAHnWzkVPNXfs0qME1yP0ummYGq2/737aQAmFgXiZo8Xb+bnxLPmRKMZKott+KJvHKjxyan3eHJYDca3tRLDiCkuEsNCBJaannwtSEI3+DQ7FEd6f4yxH3Hj0Pm87OCWFxXU9aNd+6LffxLNjhTQL6+ZDu4i768guKMvw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726750432; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=uea1XxCtunz601IAPBglUvz6ET+E4PO+HrMB/rcxZzY=; b=ab7HAxNE1up58rOrHgFIsTB+ngkRHSOy4ar/HfO9/51PcjIXgdTNCCKmCnSGkDkVyfwCz7Q/FUh8Lz56ROju0SfHhsnB5jrYpOqRx0vfCWuQl3kEjDQwiYooY5LrC+9oJqDWEwmBbLlEHlbeBOE+LuzID616yetA5pRjIAid1+8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=vinurs.me; spf=pass smtp.mailfrom=hi@vinurs.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1726750432; s=zmail; d=vinurs.me; i=hi@vinurs.me; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Message-Id:Reply-To; bh=uea1XxCtunz601IAPBglUvz6ET+E4PO+HrMB/rcxZzY=; b=BcsuIOkteBFkm08Jlh4+rl6tO0igMt+0f2RcZzqX9IXmE54Bde75hbJS9f33nXVM cZJzWBUDF8r2SYwldq0Hpno4RYqjL72ta197XzWRaOYXSMSXEfOz+0I/uIjvWT6DSdm ZmiJcCNZxLGA3UcJlTL3tg1HSJSQYaPNXwev1p3o= Original-Received: by mx.zohomail.com with SMTPS id 1726750430411917.1191881568442; Thu, 19 Sep 2024 05:53:50 -0700 (PDT) In-Reply-To: <86ldzqbh02.fsf@gnu.org> 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:292045 Archived-At: --66ec1eda_6ca32ff6_ba0f Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Yuan, Are you able to reproduce this issue=3F ------------ Sincerely, Haiyuan Zhang, Vinurs =E5=BC=80 2024=E5=B9=B49=E6=9C=8817=E6=97=A5 =E5=9C=A8 20:29:50, Eli Zare= tskii (eliz=40gnu.org) =E5=86=99=E5=88=B0: > Date: Tue, 17 Sep 2024 09:27:20 +0800 =20 > =46rom: vinurs =20 > =20 > I am using the latest emacs-30 =20 > https://github.com/emacs-mirror/emacs/commit/c6077015894dd89c5aa3811bf5= 5d3124394874d0 =20 > =20 > The min configuration is as follows: =20 > =20 > (add-to-list 'treesit-extra-load-path (expand-file-name =22tree-sitter/= =22 user-emacs-directory)) =20 > =20 > (add-to-list 'load-path =22=7E/.emacs.d/site-lisp/clojure-ts-mode=E2=80= =9D) =20 > =20 > (require 'clojure-ts-mode) =20 > =20 > ;; debug =20 > =20 > (setq debug-on-quit t) =20 > =20 > and I only use clojure-ts-mode package =20 > =20 > cd =7E/.emacs.d/site-lisp =20 > =20 > git clone https://github.com/clojure-emacs/clojure-ts-mode.git =20 > =20 > Then, after opening Emacs, Open the elong.clj file, =20 > =20 > After moving to line 52, delete all the characters following :error-cod= e, then quickly press the spacebar twice. =20 > At this point, it freezes. =20 A=46AICT, it doesn't freeze, it eats up memory like crazy. If you limit =20 the memory available to the process to some reasonable value, Emacs =20 will soon enough tell you that memory is exhausted, and will suggest =20 to save the buffer and exit. =20 Yuan, can you look into this, please=3F I'm not sure it's an Emacs bug, =20 but who knows=3F --66ec1eda_6ca32ff6_ba0f Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline