My Spacemacs became very very slow yesterday… I changed nothing (same version of Emacs same version of Spacemacs) but now it freezes a lot. I reinstalled ~/.emacs.d but problem persists…
The only issue I am aware of is a possible conflict when using Clojure-lsp and Clojure-mode (CIDER), specifically when moving the cursor inside/at the start of a comment form
There could also be other conflicting aspects of ClojureLSP and CIDER, especially if both are trying to format the Clojure code
thanks @jr0cket. in my case it was related to a growing savehist file as pointed out by jahson… See https://github.com/syl20bnr/spacemacs/issues/9409
Thanks for the update. It seems useful to add some limits on the save history file sizes. I've created an issue to update the practicallii/spacemacs-config with the suggested limits https://github.com/practicalli/spacemacs-config/issues/9
I could try profiling I guess first, but just no idea where to start
Other applications work fine
profiler-start and then hopping around doing text operations in an initially empty text file till screen freezes, when it unfreezes profiler-stop and then profiler-reportgives this output… (no idea what command-execute is and clicking on it does nothing)
I do see this log message:
2023-07-27 22:01:59.624 Emacs-x86_64-10_14[59952:507496] It's not legal to call -layoutSubtreeIfNeeded on a view which is already being laid out. If you are implementing the view's -layout method, you can call -[super layout] instead. Break on void _NSDetectedLayoutRecursion(void) to debug. This will be logged only once. This may break in the future.but that was there earlier as well when it did not freeze
hopefully anybody can give me some pointers because I have no idea
might just reinstall emacs otherwise
Unless there is some specific action that causes the freeze, then I'd suggest it's the distribution of Emacs being used (there can quite a few Emacs versions and distributions depending on OS), or native compilation (due to OS library changes) https://practical.li/spacemacs/install-spacemacs/pre-install/#install-emacs Emacs 28 is probably the most reliable, although I've used 29 and 30 without freezing on Linux, both later versions built from source
thanks, I used https://emacsformacosx.com/
and run via ec <file name> with
alias emacsclient="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c -a '/Applications/Emacs.app/Contents/MacOS/Emacs'"
alias ec='emacsclient'I will reinstall and see
I kinda recall some issues with emacsformacosx. Over the time I’ve migrated to emacs-plus@29 installed via homebrew.
yes I actually installed that one, thanks
unfortunately after starting spacemacs again the problem comes again
around 100% CPU and freezes
Maybe something related? https://github.com/syl20bnr/spacemacs/issues/9409#issuecomment-1084039955
it’s 240 MB in my case
Does issue persists if you use clean .spacemacs config?
don’t know I could check later, but in the issue you linked someone says this:
> “In my case my savehist ballooned to 1.6GB from 80kB as PNG data somehow got into the kill ring while editing an org file:”
my issues also popped up during working in an org file
after removing the ~/.emacs.d/.cache/savehist the issue is gone
thanks a lot for the suggestions @jahson this issue was very related 🙂 not sure yet why savehist blows up, but at least this is a way to make it fast again
The reason why a clean install did not work is that I did not remove the savehist file before. I executed rm -rf * in ~/.emacs.d/, but this does not remove the hidden files like savehist.
I do suspect the savehist file growing is related to me editing a large org file, since I first noticed in an org file and the other user in the issue reports the same, but not sure.
Anyway, thanks a lot all 🙂