-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emacs.app installed via brew install emacs-mac
not launching on macOS 13.0 Ventura (M1)
#313
Comments
It crashes by signal Edit: macOS 13.0.0 |
Sorry I can't reproduce this issue on my side. Can I get the output of your Also, could you confirm this issue also shows when you start emacs by |
Sorry for the delay. The crash does only occur when clicking on Here is the |
Sorry I can't figure out the root cause of this issue and haven't able to reproduce on my side. There should no difference between start from the App bundle or from |
I am having the same problem on a brand new machine with an up to date install. |
I have had a random-ish crash for a while, and took time today to debug. This may help other crashers... I found the problem was in here:
Line (906) in that file is in the compiler directive
After making sure gcc is the homebrew gnu one, reinstall emacs-mac. No crashes yet for me, and performance is same (maybe better) but not measured. |
Thanks @jeff-phil, that is an interesting found! I'm not very sure about the behavior of Homebrew gcc installation though, is this behavior to avoid conflicts with the |
I felt the same error in macos 13 that emacsmac --with-nativecomp cannot be successfully installed. Here's what I did: brew remove gcc
brew install gcc libgccjit
brew install emacs-mac --with-nativecomp and emacsmac now is successfully installed! |
@railwaycat Forgot to to respond, I spent last weekend debugging several things. It turns out that specific Not sure what it is, but I can instantly make emacs crash unless using the gcc compiler from homebrew which generally runs without issue. |
@jeff-phil does Emacs crash if you use the system clang ( |
@tnytown - Yes, it was at one point. I just recompiled using system clang, to see if I could get it to crash again. I cannot remember how I used to get get it to crash, so may take a couple of days of running to trigger. And lots of system changes (ventura updates, brew updates, emacs 29, etc.) so not sure it's still apples to apples - but will see. I may be confused reading through that long issue you linked, since issue starts as won't build. Then looks like it may build some with system clang and others without. In reading your latest I see your reference here as Lastly, I didn't see in that thread, but may be worth looking at the "elisp backtrace". See: https://github.com/emacs-mirror/emacs/blob/297ccd967f24e37bc51c057da43c862291a55ddd/etc/DEBUG#L1075C1-L1075C1 where you can load up in lldb, I just load it when needed: |
Thanks!
Yeah, my comments in that thread basically sum up the state of things, sorry for the fuss! The build issues are mostly resolved, and the issues now is getting GUI Emacs to run without crashing. Although it seems like I jumped the shark on judging that system
That is very helpful, thank you! |
@orgtre This is pretty old thread, and not sure suggestions here are still good. Does it immediately quit when running Will you start emacs through |
Thanks @jeff-phil for your response. It doesn't quit when launching via terminal, with or without the q flag (see my old reply). Only when clicking on Emacs.app. My issue is exactly as originally described 1.5 years ago. It has forced me to use Emacs Plus instead, which unfortunately comes with its own set of issues. This distribution used to work better for me, so now when reinstalling Emacs, I thought I'd check if there is some solution to this issue by now. |
Okay, sorry missed previous about old reply. That is interesting in that old reply that if you launch directly it does not crash. A couple of things to get to more details:
|
In Console.app I see a kernel process with this message:
|
Have you considered building fresh? Here's what I use:
Then can look and remove natively compiled modules, default is in Then start Emacs. If crashes, then now should work to start and run under lldb. |
When clicking on Emacs.app an Emacs process starts and is immediately quit without any message. Clicking "Show Package Contents" and running
Contents/MacOS/Emacs
launches a mostly working Emacs (only the meta/cmd key remappings are not in effect). The behavior is the same with Emacs.app frombrew install --cask emacs-mac
.The text was updated successfully, but these errors were encountered: