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
A frame should not be made just to be deleted (exposes bug on emacs-mac build) #18
Comments
Please provide the backtrace. |
It's a hard crash so there is no Elisp back trace available. Here are the choice bits of the stack trace for the lisp thread:
|
Selecting a non-active activity for discarding seems to lead to an "empty" activity. A simpler crash reproducer is (activities-close (make-activities-activity :name "tmp")) |
Thanks. What Emacs version and where is the build from? |
This is emacs-mac, my own build based on 29.2. The real issue is that an empty activity has an empty frame, but On further investigation, this is the deadly pattern we must avoid:
Obviously this should not crash and I've submitted this as a bug upstream, but discarding a non-activated activity should not need or attempt to create a frame for it. |
Ok. Would you please link the bug here for future reference? |
Thanks. I'm afraid emacs-mac does not use a bug tracker. Here's what I reported:
|
So you're saying that you're using an unofficial, third-party build of Emacs? |
Not exactly, the history is complicated. See this README. This is one of the most used ports on Mac. |
That's a bit too complicated for me to digest. :) Anyway, evaluating this does no harm on Emacs 29.1 on Linux: |
I think that should fix it. I also added a confirmation prompt. Please let me know if the problem happens again. |
Obviously my build (emacs-mac) shouldn't be crashing, but this is repeatable:
Perhaps non-existent frames are being closed when a discarded activity is not actually active? Activating first then discarding works fine.
The text was updated successfully, but these errors were encountered: