unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Arsen Arsenović" <arsen@aarsen.me>
To: Po Lu <luangruo@yahoo.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
	dgutov@yandex.ru, spwhitton@spwhitton.name, emacs-devel@gnu.org
Subject: Re: Qt can now survive Wayland compositor restarts
Date: Sat, 11 Mar 2023 13:25:05 +0100	[thread overview]
Message-ID: <86edpvzd09.fsf@aarsen.me> (raw)
In-Reply-To: <871qlvecy5.fsf@yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]


Po Lu <luangruo@yahoo.com> writes:

> Arsen Arsenović <arsen@aarsen.me> writes:
>
>> It would be indeed.
>>
>> The likelihood of crashes would be lowered if the display server event
>> loop is not kept busy by the Elisp interpreter, though, which is why a
>> separate thread would help (for instance, I suspect that the reason I
>> see crashes when sending mail on occasion is because smtpmail blocks the
>> main thread and a bunch of mouse events get queued up in the meanwhile,
>> causing libwayland to give up).
>
> If the display server crashes, the connection is closed, and GDK gives
> up when it calls `wl_display_flush' at some point and gets SIGPIPE.
> It's not related to events being queued up or whatever.

Yes, it's indeed not related in the display server crash case.  That is
not the case that concerns me in this instance, though.

The display server keeps working just fine when I see GTK call _exit.

You can simulate this by starting Emacs, suspending it, resizing the
window a bunch and clicking around, and then unsuspending it:

  ~$ emacs
  ^Z
  [1]+  Stopped                 emacs
  << Some mouse/resize spam here for a few seconds >>
  ~ 148 $ fg
  emacs
  Gdk-Message: 13:26:40.087: Lost connection to Wayland compositor.
  ~ 1 $ 

>> In either case, the better fix would be teaching GTK not to do silly
>> things on error conditions, and instead consult the user, but I'm not
>> sure how doable that is.
>
> Very easy, as was proven when this feature actually worked as intended
> sometime during the 2.14 series.  It's just that the GTK developers need
> their power fix and refuse to actually fix the problem, because ``only
> Emacs needs this fixed.''

That's what I was fearing too ;).  I know of at least one instance of
this affecting GTK apps, so "only Emacs needs this" is false.  Do you
have a link to the bug handy?  I'd like to read the history.
-- 
Arsen Arsenović

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 381 bytes --]

  reply	other threads:[~2023-03-11 12:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-10 16:31 Qt can now survive Wayland compositor restarts Sean Whitton
2023-03-10 21:46 ` Dmitry Gutov
2023-03-10 22:17   ` Arsen Arsenović
2023-03-11  2:06     ` Björn Bidar
2023-03-11  7:05     ` Eli Zaretskii
2023-03-11  7:35       ` Po Lu
2023-03-11 10:58         ` Arsen Arsenović
2023-03-11 11:12           ` Po Lu
2023-03-11 11:23             ` Arsen Arsenović
2023-03-11 11:37               ` Po Lu
2023-03-11 12:25                 ` Arsen Arsenović [this message]
2023-03-11 12:33                   ` Po Lu
2023-03-11 12:36                     ` Arsen Arsenović
2023-03-12  1:41               ` Madhu
2023-03-10 23:46   ` Po Lu
2023-03-10 23:48 ` Po Lu

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86edpvzd09.fsf@aarsen.me \
    --to=arsen@aarsen.me \
    --cc=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=spwhitton@spwhitton.name \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).