From: Eli Zaretskii <eliz@gnu.org>
To: Kevin Lin <kkylin@alum.mit.edu>
Cc: 58857@debbugs.gnu.org
Subject: bug#58857: 28.2; Emacs on macOS seg faults when deleting fullscreen frame
Date: Sat, 29 Oct 2022 09:39:17 +0300 [thread overview]
Message-ID: <83wn8ji162.fsf@gnu.org> (raw)
In-Reply-To: <m2sfj796cq.fsf@alum.mit.edu> (message from Kevin Lin on Fri, 28 Oct 2022 10:59:16 -0700)
> From: Kevin Lin <kkylin@alum.mit.edu>
> Date: Fri, 28 Oct 2022 10:59:16 -0700
>
> Using stock Emacs 28.2 from https://emacsformacosx.com/:
This distribution is done by someone outside of the Emacs project. I
therefore suggest that you first report the problem to that person.
> 1) $ /Applications/Emacs.app/Contents/MacOS/Emacs -Q
>
> 2) open a second frame by, e.g., C-X-5-2
>
> 3) make it fullscreen, e.g., by clicking the green title button
>
> 4) delete the fullscreened frame by, e.g., C-X-5-0
>
> I don't know enough about ObjC or NS to isolate the issue in the ObjC source, but the following work-around works for me:
>
> (defun frame-turn-off-fullscreen (theframe)
> (if (eq 'fullboth
> (cdr (assq 'fullscreen
> (frame-parameters theframe))))
> (set-frame-parameter theframe 'fullscreen nil)))
>
> (if (boundp 'ns-use-native-fullscreen)
> (add-to-list 'delete-frame-functions 'frame-turn-off-fullscreen))
>
> I haven't tried this with Emacs in gdb, but do have macOS-generated crash logs I can send along upon request.
>
> Also, I'm running this on macOS 13 (Ventura), but this has happened to me since macOS 10.13 (High Sierra) with Emacs 27 (possibly even earlier). Reporting it only now because the work-around above has worked for me and I forgot about it.
In general, we don't expect any Emacs 28 releases, so it would be of
great help to us if you could try Emacs 29 (from the master branch of
the Emacs Git repository) and see if the problem still exists there.
That's assuming the person who prepares these binaries concludes that
the problem is in the upstream code, not related to the particular way
these binaries are built.
Thanks.
next prev parent reply other threads:[~2022-10-29 6:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-28 17:59 bug#58857: 28.2; Emacs on macOS seg faults when deleting fullscreen frame Kevin Lin
[not found] ` <handler.58857.B.166701674619512.ack@debbugs.gnu.org>
2022-10-29 6:32 ` bug#58857: Acknowledgement (28.2; Emacs on macOS seg faults when deleting fullscreen frame) Kevin Lin
2022-10-29 6:39 ` Eli Zaretskii [this message]
2022-10-29 7:01 ` bug#58857: 28.2; Emacs on macOS seg faults when deleting fullscreen frame Gerd Möllmann
2022-10-29 7:28 ` Eli Zaretskii
2022-10-29 7:36 ` Gerd Möllmann
2022-10-29 8:04 ` Eli Zaretskii
2022-10-29 8:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-29 10:27 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-29 11:41 ` Gerd Möllmann
2022-10-29 11:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-29 12:19 ` Gerd Möllmann
2022-10-29 12:29 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-29 13:38 ` Gerd Möllmann
2022-11-13 4:11 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83wn8ji162.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=58857@debbugs.gnu.org \
--cc=kkylin@alum.mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.