unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: chad <yandros@gmail.com>
To: Daniele Nicolodi <daniele@grinta.net>
Cc: EMACS development team <emacs-devel@gnu.org>
Subject: Re: Question about pgtk -- is it meant to fix the disconnect crash bug?
Date: Thu, 4 Mar 2021 18:06:29 -0800	[thread overview]
Message-ID: <CAO2hHWbhMjjiW6uFajEd1goYXivQxv9-ur26k4xXY9mAYUrKgQ@mail.gmail.com> (raw)
In-Reply-To: <58148d31-5886-a684-5a8a-49d489fcf355@grinta.net>

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

On Thu, Mar 4, 2021 at 2:58 PM Daniele Nicolodi <daniele@grinta.net> wrote:

> The last time I looked at this the GTK maintainers are interested in
> investigating the bug and fixing it in GTK as long as it does not
> involve debugging Emacs but a more manageable reproducer of the issue.
> AFAIK, no one tried to provide one.
>

That actually does not match my understanding; if I remember correctly, the
GTK people felt that emacs was doing something that they did not want to
support, and since no "well behaved" GTK applications had reported the
problem, they were thus were unwilling to continue. I might be
misremembering.

Also, the last time I looked, Emacs aborts() when it detects the
> condition that causes the bug, thus fixing the bug in GTK does not
> automatically fix Emacs.
>

Emacs added that code as a response to the GTK bug, because calling abort()
itself is minorly cleaner than allowing the crash from _exit() in the
library.

At heart, emacs is trying to use a niche feature that was spec'd but never
fully implemented in gtk/gdk. Nobody else wants to use that feature,
because there just aren't that many apps that want to hop around between
open and closed displays (like emacs --daemon does) AND that also have a
lot of long-lived state (most would be fine with simply closing and
restarting). Web browsers are the nearest candidate that comes to mind, and
they have already invested large-to-massive effort in the alternative "run
distinct copies everywhere, including your phone, and layer on a sync
service for the few places where you might care".

This creates an environment where the GTK maintainers weigh a bunch of
groddy low-level work to support a feature almost no one wants on one side
against a client base that has the highly-functional "just use Lucid"
alternative on the other. This world doesn't produce a lot of motivation to
solve the problem, and the solution will likely (if I understand the
decade-plus-old bug-thread) require fairly low-level changes to gtk/gdk, so
the solver needs to be very familiar with gdk internals, so the friction is
quite high. In the meantime, X11 is due to be obsoleted every few years for
the last decade...

~Chad

[-- Attachment #2: Type: text/html, Size: 2832 bytes --]

  reply	other threads:[~2021-03-05  2:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-03 22:51 Question about pgtk -- is it meant to fix the disconnect crash bug? Sean Whitton
2021-03-04 14:44 ` Robert Pluim
2021-03-04 15:35 ` Yuuki Harano
2021-03-04 22:10 ` chad
2021-03-04 22:57   ` Daniele Nicolodi
2021-03-05  2:06     ` chad [this message]
2021-03-05  2:27       ` Stefan Monnier
2021-03-05  6:43     ` Eli Zaretskii
2021-03-08 11:04       ` David De La Harpe Golden
2021-03-05  6:38   ` Eli Zaretskii
2021-03-05 20:35     ` chad
2021-03-08  7:55       ` Robert Pluim

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=CAO2hHWbhMjjiW6uFajEd1goYXivQxv9-ur26k4xXY9mAYUrKgQ@mail.gmail.com \
    --to=yandros@gmail.com \
    --cc=daniele@grinta.net \
    --cc=emacs-devel@gnu.org \
    /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).