emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
pithyless 2021-01-26T16:05:12.010600Z

My emacs freezes up once in a while - could just be a spinning UI thread or an actual crash, but it is completely unresponsive and all I can do is kill the process, restart emacs, and restore the file. Any suggestions on how I can go about debugging or tracking this to identify what is the culprit? (My initial suspicion is perhaps aggressive-indent-mode - but I've got no proof :))

2021-02-02T10:45:52.023600Z

I’ve had this same issue/symptom too… It happens quite frequently, but not enough to easily debug it. Also on macos M-x emacs-version

GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
 of 2020-08-12

pithyless 2021-02-02T16:40:47.024100Z

It's happening less frequently now (I think), but unfortunately in my setup pkill -SIGUSR2 just exits emacs (without putting it in a debugger state). This maybe something with the way doom-emacs is configured by default, but I had not investigated further yet.

pithyless 2021-02-02T16:41:26.024300Z

GNU Emacs 27.1.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G6042)) of 2020-11-17

tvaughan 2021-02-02T18:44:24.024800Z

This just happened to me again. Looks like it had something to do with the modeline, telephone line specifically

2021-02-03T08:57:38.025300Z

Interesting, @tvaughan what makes you think that? FWIW I’m running doom-modeline (but my own emacs config)

tvaughan 2021-02-03T11:09:11.032200Z

That’s what came up in the debugger. I didn’t see anything that looked incorrect though. Could have just been a coincidence that’s where emacs was at the time when I sent USR2. I’ll see what happens next time. Hopefully there’s at least a consistency to this problem

2021-02-04T12:14:38.036400Z

FYI I disabled doom-modeline out of interest yesterday, and so far I’ve not seen emacs crash — so could be promising, but too early to say for sure

pithyless 2021-02-04T16:23:19.037500Z

thanks everyone for contributing data points to this thread!

tvaughan 2021-01-26T16:07:23.010700Z

Same. Is this on macOS? I'm hoping this problem doesn't exist on Linux. I don't use aggressive-indent-mode, but I've noticed this happens when moving around and editing a clojure buffer which could trigger font locking

pithyless 2021-01-26T16:08:57.011Z

yep, it's macOS and doom-emacs (if that's relevant)

2021-01-26T16:12:58.011300Z

Is it unresponsive even to receiving a SIGUSR2?

2021-01-26T16:14:46.011500Z

(I had encountered lsp-mode freezing when combined with clojure-mode lately, but nothing the usr signal would not interrupt)

pithyless 2021-01-26T16:49:38.011700Z

I'm not using clojure-lsp, but thanks @max.deineko - I was not aware of SIGUSR2; (I was just forcing quit via Activity Monitor (which I assume does a pkill -9 ).

pithyless 2021-01-26T16:50:27.011900Z

Next time I get it to reproduce (and manage to rescue it via SIGUSR2), is there anything I can run to help debug what was hogging the UI?

2021-01-26T16:58:26.012100Z

Usually usr2 will cause emacs to enter the debugger, so that you should be able to pinpoint at least some execution point related to the problem.

👍 2
👏 1