GNU bug report logs - #73310
tree-sitter makes cpu 100%

Previous Next

Package: emacs;

Reported by: vinurs <hi <at> vinurs.me>

Date: Tue, 17 Sep 2024 01:28:01 UTC

Severity: normal

Full log


Message #11 received at 73310 <at> debbugs.gnu.org (full text, mbox):

From: vinurs <hi <at> vinurs.me>
To: Yuan Fu <casouri <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 73310 <at> debbugs.gnu.org
Subject: Re: bug#73310: tree-sitter makes cpu 100%
Date: Thu, 19 Sep 2024 20:53:41 +0800
[Message part 1 (text/plain, inline)]
Hi Yuan,
Are you able to reproduce this issue?

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

Sincerely,



Haiyuan Zhang, Vinurs


开 2024年9月17日 在 20:29:50, Eli Zaretskii (eliz <at> gnu.org) 写到:

> Date: Tue, 17 Sep 2024 09:27:20 +0800  
> From: vinurs <hi <at> vinurs.me>  
>  
> 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?
[Message part 2 (text/html, inline)]

This bug report was last modified 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.