Skip to content
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

[Bug] Emacs crashes when editing files #446

Open
3 tasks done
MariusKressin opened this issue Jun 13, 2024 · 7 comments
Open
3 tasks done

[Bug] Emacs crashes when editing files #446

MariusKressin opened this issue Jun 13, 2024 · 7 comments
Labels

Comments

@MariusKressin
Copy link

MariusKressin commented Jun 13, 2024

Thank you for the bug report

  • I am using the latest version of Centaur Emacs.
  • I checked my private configurations in custom.el and custom-post.el.
  • I checked FAQ.

Bug description

When I open a JS, TS, or Ruby (possibly others as well) file in emacs, it crashes, and I get the message: Fatal error 11: Segmentation fault.

For whatever reason, Elisp files do not make it crash, and neither does Go. Also, it takes a few seconds longer to crash if I disable aggressive-indent-mode or flymake-mode.

Steps to reproduce

  1. Install Centaur Emacs by cloning it to .emacs.d.
  2. Start emacs.
  3. Wait for it to finish downloading everything.
  4. Navigate to a file.
  5. Edit the file.
  6. For certain files, emacs crashes.

Expected behavior

This behavior was naturally unexpected.

OS

MacOS

Emacs Version

29

Error callstack

No response

Anything else

No response

@seagle0128
Copy link
Owner

Can you provide any example files to reproduce the issue?

@MariusKressin
Copy link
Author

This happens with empty files.

@seagle0128
Copy link
Owner

seagle0128 commented Jun 16, 2024

I believe it's an issue of Emacs or related lib. Please check if tree-sitter is enabled. Try the solutions below.

  1. (setq centaur-tree-sitter nil). See [Bug] Node type error when execute consult-line in cpp file at the first time #445
  2. Recompiling Emacs with the latest libgccjit. See Installation fails with libgccjit (and possibly gcc) 14.1.0 recent release d12frosted/homebrew-emacs-plus#681.

@MariusKressin
Copy link
Author

Sadly, the first option (setq ...) doesn't seem to do anything. As for the second, I'm using the MacPorts version of Emacs, so I don't have libgccjit installed (MacPorts uses an alternative library, I think).

Maybe MacPorts is conflicting with it in some way. Does Centaur Emacs require Homebrew?

@CsBigDataHub
Copy link
Contributor

@MariusKressin I have had bunch of problems in the past with Emacs installed with Macports. I have had great success with this build script for past 2 years with out any crashes - https://github.com/jimeh/build-emacs-for-macos

Ofcourse you will still need Homebrew to install dependencies.

@MariusKressin
Copy link
Author

That's okay then. I don't think it's worthwhile to switch over to Homebrew just for this, so I'll look elsewhere.

@seagle0128
Copy link
Owner

seagle0128 commented Jun 18, 2024

I am using emacs-plus, but Centaur Emacs doesn't require homebrew. You can compile Emacs yourself (without homebrew) if you will. I recommend GNU Emacs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants