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: Fri, 20 Dec 2024 05:34:11 +0800 Message-ID: References: <86ldzqbh02.fsf@gnu.org> <86bjynl43x.fsf@gnu.org> <0653B68D-3F98-4D06-8C37-8976DC8C2BA4@gmail.com> <861pyjk7ip.fsf@gnu.org> <7C7183A4-758E-491E-B403-A57723598F53@gmail.com> <3EACFBFF-2E78-4746-8143-1DCB20A5AEAD@gmail.com> <99E79D3D-10C5-45B8-A4CE-4AA3F770BC2E@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="67649158_28e8863b_51ea" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73310@debbugs.gnu.org, Eli Zaretskii To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 19 22:35:22 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 1tOOAy-0001wl-Vf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Dec 2024 22:35:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOOAm-0004dK-Rv; Thu, 19 Dec 2024 16:35:09 -0500 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 1tOOAi-0004d6-1B for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 16:35:04 -0500 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 1tOOAg-0002ED-Qd for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 16:35:03 -0500 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=ziEkidBGq2UNn0v0Diq78SQ+mtSDUyc05qKZVrJl0s0=; b=b0sFB6QU3stufXRvZf/UqvIxwrVjHD50KhpYpdXmWiafGYtw/2YOjhQUwB+p38Jk6rdIZm4dubLrK7ZDzCmKL9TWaKFAXksWBJLf0580RjADir5L627Y3ARSKxJXxkVqm4TdOfNAnskkVxfucrSr79wNO86CvXo+uPKMpJMHl67ZkzNBr165dVTCoTGllOhw0v6WNSjl1liP5XpYTD9e68qn2QI6LxkqRclcx6Ugnaf1yUeHQAR8mfuooHVlJm/IQk2rwwVwxlqzUsEN42H4i3z8vWjYRQGXFK/Ccs3xUmteoQccEVXSJPVJKPDy8WD4T40A1A2jeW4NBjpwrVdgYA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOOAg-00063Q-Cv for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 16:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: vinurs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Dec 2024 21:35: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.173464407423217 (code B ref 73310); Thu, 19 Dec 2024 21:35:02 +0000 Original-Received: (at 73310) by debbugs.gnu.org; 19 Dec 2024 21:34:34 +0000 Original-Received: from localhost ([127.0.0.1]:40346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOOAD-00062P-H7 for submit@debbugs.gnu.org; Thu, 19 Dec 2024 16:34:33 -0500 Original-Received: from sender4-op-o12.zoho.com ([136.143.188.12]:17275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOOAB-00062E-P2 for 73310@debbugs.gnu.org; Thu, 19 Dec 2024 16:34:32 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1734644062; cv=none; d=zohomail.com; s=zohoarc; b=SyBoTAs7GxJT0W5K+JJ8kM7zTm2CiP7QmFMlha8e3P/OWyAU9+211c5hER1GYTEjI9uMbYvnAkH2GoSmSMoyetJ04o1fPLKH6BrMVEu7ruz60c7vA3TFk54XmJKRBXptRRFy7/7l3JuKZThGKO1wE47H0jLT9zXoGGaB2WM/aOE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1734644062; 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=ziEkidBGq2UNn0v0Diq78SQ+mtSDUyc05qKZVrJl0s0=; b=T4aTqMqVWJVXSb8Sfa5NsBtIXLM07z4n9FuxVFdTy9XtH8/iz4ucmsTNSDMhp9mCfshNOuD1AyW7fJ8upKx0zOtBbJ0qdOfN+k1bAvaTaGC1BSKpHmHXgVCJCzWVczKGE5DGvh5Unls/US3Gl1xUfy3DzGezt/w8NlmLzHA9c3Y= 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=1734644062; 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=ziEkidBGq2UNn0v0Diq78SQ+mtSDUyc05qKZVrJl0s0=; b=KH+0VIAQ/WE8r+AuJQayoj3glqXefUarBhEHh+ohFj4eZIOZUAIDUdYMbrXQl5lU s3MwFG9WEvyZlupB3sKzDrv25ILfGxccRF1Q/axDWZtGzwe346pK6tcE+YPQzvaFpqf KRAhND+QtvQ+iCZvmUdXptjGUjufUBQDE8zd+XAU= Original-Received: by mx.zohomail.com with SMTPS id 1734644060603692.0859814806975; Thu, 19 Dec 2024 13:34:20 -0800 (PST) In-Reply-To: <99E79D3D-10C5-45B8-A4CE-4AA3F770BC2E@gmail.com> 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:297410 Archived-At: --67649158_28e8863b_51ea Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I tried version 0.25.0, and using the same method it doesn't always repro= duce the issue, but it still hangs. On the same line, if I repeatedly del= ete and press space, it also hangs. I just haven't found a consistent way= to reproduce it yet. =20 ------------ Sincerely, Haiyuan Zhang, Vinurs BinaryBrain LLC =20 =E5=BC=80 2024=E5=B9=B412=E6=9C=8820=E6=97=A5 =E5=9C=A8 02:33:35, Yuan =46= u (casouri=40gmail.com) =E5=86=99=E5=88=B0: =20 > On Dec 18, 2024, at 7:22=E2=80=AFAM, vinurs wrote: > =20 > Hi, > Has there been any progress on this issue=3F It has been troubling me f= or a long time. My Emacs basically freezes every few minutes, and I have = to restart Emacs. > =20 > ------------ > Sincerely, > =20 > Haiyuan Zhang, Vinurs > BinaryBrain LLC One more test: can you try tree-sitter 0.25.0 and see if you still see th= e hang=3F With the same =E2=80=9Ctechnique=E2=80=9D, I can reproduce with= 0.24.4 but not 0.25.0. That could mean the bug is fixed in 0.25.0. Yuan --67649158_28e8863b_51ea Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,
I tried version 0.25.0, and using t= he same method it doesn't always reproduce the issue, but it still hangs.= On the same line, if I repeatedly delete and press space, it also hangs.= I just haven't found a consistent way to reproduce it yet.

------------

Sincerely,


Haiyuan Zhang, Vinurs

BinaryBrain LLC


=E5=BC=80 20= 24=E5=B9=B412=E6=9C=8820=E6=97=A5 =E5=9C=A8 02:33:35, Yuan =46u (casouri=40gmail.com) =E5=86=99=E5=88= =B0:



> On Dec 18, 2024, at 7:22=E2=80=AFAM, vinurs <hi=40vinurs.me&g= t; wrote:
> =20
> Hi,
> Has there been any progress on this issue=3F It has been troubli= ng me for a long time. My Emacs basically freezes every few minutes, and = I have to restart Emacs.
> =20
> ------------
> Sincerely,
> =20
> Haiyuan Zhang, Vinurs
> BinaryBrain LLC

One more test: can you try tree-sitter 0.25.0 and see if you still se= e the hang=3F With the same =E2=80=9Ctechnique=E2=80=9D, I can reproduce = with 0.24.4 but not 0.25.0. That could mean the bug is fixed in 0.25.0.

Yuan
--67649158_28e8863b_51ea--