all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 56967@debbugs.gnu.org
Subject: bug#56967: 29.0.50; Frequent crashes under Wayland
Date: Tue, 13 Dec 2022 19:06:43 +0200	[thread overview]
Message-ID: <87sfhj9qsc.fsf@thaodan.de> (raw)
In-Reply-To: <87a63rh2hy.fsf@yahoo.com> (Po Lu's message of "Tue, 13 Dec 2022 21:11:53 +0800")

Po Lu <luangruo@yahoo.com> writes:

> Björn Bidar <bjorn.bidar@thaodan.de> writes:
>
>> The issue got picked up on Mastodon recently:
>> https://home.social/@ebassi@mastodon.social/109505829096414816
>
> That site doesn't work for me, could you please paste an excerpt here?

This is my mastodon.el dump that should at some context, I added the
first post then my toot and Emanuel Ebassi's replies to me:

START mastdon.el dump

I do not like #Electron but I'm also not a fan of #Emacs. However, I appreciate the
self-deprecating humor.
https://cdn.fosstodon.org/media_attachments/files/109/501/742/682/624/996/original/749afb0111253dab.png
Aaron Toponce ⚛️:debian: (@atoponce@fosstodon.org) 2022-12-12 18:59:04

@atoponce @sotolf I think you get used to lisp, the language works just different to other
languages, after a time it's not as bad.
What usually bothers me is Emacs being single threaded quite often or using outdated
technologies such as #xembed which is now used to embedded #webkit.
The most annoying issue thou is #GTK doing funny stuff.
Like for example if you loose your display manager connection on #Wayland then GTK just
kills your application with _exit(). 
Björn (@thaodan) 2022-12-13 10:08:16 via Web
  ------------


@thaodan @atoponce @sotolf Terminating on display connection loss is recommended by the
Wayland protocol, because Wayland is not UDP: events don't get resent, and if the compositor
and the client don't agree on their state, you'll just going to crash later on. You could do
an orderly display connection drop while keeping the process alive, but a) only Emacs even
attempts this on X11 or Wayland; and b) it's not tested in toolkits because it's only needed
by Emacs 
Emmanuele Bassi (@ebassi@mastodon.social) 2022-12-13 12:12:26
  ------------


@ebassi @atoponce @sotolf Never argued against closing the display connection but using _
exit() instead of exit() to make sure the program can not react is bad at best or at worst
malicious.
This issue not only affects #Emacs but any program that wants to react on loosing the
display connection. 
Björn (@thaodan) 2022-12-13 13:32:46
  ------------


@thaodan @atoponce @sotolf GTK only uses `_exit()` on remote display close. It's kind of
intentional: if the *server* terminates the connection, then there's nothing to recover from
an application side. An application can only recover if it's the one that initiated the
closing of the display connection. 
Emmanuele Bassi (@ebassi@mastodon.social) 2022-12-13 13:39:09
  ------------


@ebassi @atoponce @sotolf So you decide for the application itself instead of letting the
application decide to what to do on `exit()`?
You say there's nothing to recover the applications opinion might be different. 
Björn (@thaodan) 2022-12-13 13:42:32
  ------------


@thaodan @atoponce @sotolf You cannot safely/reliably/portably do something after
server-side disconnection. We've been there with X11 first, and the same applies with
Wayland: https://bugzilla.gnome.org/show_bug.cgi?id=646338 
Emmanuele Bassi (@ebassi@mastodon.social) 2022-12-13 13:50:19 ✍ 2022-12-13 17:22:14
  ------------


@atoponce @sotolf For reference the #Debuggs entry for this:
https://lists.gnu.org/r/bug-gnu-emacs/2022-08/msg00305.html 
Björn (@thaodan) 2022-12-13 13:45:57
  ------------

END mastodon.el dump 

>> Someone reported a similar issue under X11 years earlier:
>> https://bugzilla.gnome.org/show_bug.cgi?id=646338
>
> That applies only to the GDK X11 backend though, sadly.

Worth to send a patch on this? I think it might be wort to talk other
GTk developers, e.g. the one that has done the change.

Br,

Björn





  reply	other threads:[~2022-12-13 17:06 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-04  7:36 bug#56967: 29.0.50; Frequent crashes under Wayland Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-04  8:01 ` Eli Zaretskii
     [not found]   ` <3230275.qDoO4GC8Cx@odin>
2022-08-04  8:21     ` Eli Zaretskii
2022-08-04 11:49       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  0:18         ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  0:50           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  6:25             ` Eli Zaretskii
2022-08-05  6:28               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  6:43                 ` Eli Zaretskii
2022-08-05  6:53                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  7:46                     ` Eli Zaretskii
2022-08-05  8:26                       ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  8:38                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  6:56                 ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  6:59                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05 11:40               ` Gregory Heytings
2022-08-05 11:50                 ` Eli Zaretskii
     [not found]             ` <2972937.jrzt3BHeHG@odin>
2022-08-05  6:29               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-07 14:51                 ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-07 15:07                   ` Eli Zaretskii
2022-08-07 15:14                     ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-07 15:44                       ` Eli Zaretskii
2022-08-08  2:42                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-08  2:40                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-08  6:07                     ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-08  8:56                     ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-08 10:10                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-13 12:10                       ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-13 12:10                       ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-13 13:11                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-13 17:06                           ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-08-05  6:31             ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]             ` <2189728.upBv5HjrgE@odin>
2022-08-05  6:31               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]             ` <1917872.q2Y8mqo1ke@odin>
2022-08-05  6:35               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  6:55                 ` Bjoern Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05  7:01                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-17 16:02 ` Gavin Massingham
     [not found] <CAH3b6=SPM_Pys81fi-_Eu=VXO8mETqV+s0YFC+8c1huv4dmh9Q@mail.gmail.com>
2022-08-04 18:29 ` Eli Zaretskii
2022-08-05  7:34   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=87sfhj9qsc.fsf@thaodan.de \
    --to=bug-gnu-emacs@gnu.org \
    --cc=56967@debbugs.gnu.org \
    --cc=bjorn.bidar@thaodan.de \
    --cc=luangruo@yahoo.com \
    /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.