Making Emacs popular again
Making Emacs popular again
Posted May 6, 2020 23:56 UTC (Wed) by ms-tg (subscriber, #89231)Parent article: Making Emacs popular again
https://gitlab.gnome.org/GNOME/gtk/issues/221#note_577021
Can anyone clarify if this is accurate?
Posted May 7, 2020 1:45 UTC (Thu)
by mohg (guest, #114025)
[Link] (11 responses)
I think that, although this abort was originally added to Emacs because of a GTK+ issue, in recent years other issues have been triggering the same abort. For example, the comments about Emacs aborting when certain unicode characters are inserted relate to a different problem. I can sympathize with GTK developers getting frustrated when people add unrelated Emacs crashes to their bug reports.
I can also sympathize with them wanting a minimal test case. Looks like someone provided one at
I'm not sure it's helpful for Emacs to print another project's bug URL in its abort message. Perhaps the comment should be removed, especially since other things can trigger it.
Posted May 7, 2020 2:12 UTC (Thu)
by pabs (subscriber, #43278)
[Link] (10 responses)
Posted May 7, 2020 7:54 UTC (Thu)
by mina86 (guest, #68442)
[Link] (9 responses)
Posted May 7, 2020 8:21 UTC (Thu)
by LtWorf (subscriber, #124958)
[Link] (8 responses)
I've had that happen to me on Fedora by downloading a .iso in /tmp. Fedora mounts /tmp on tmpfs, so the RAM got filled, so the OOMKiller triggered and killed gnome and everything I had open along with it.
Posted May 7, 2020 12:40 UTC (Thu)
by ebassi (subscriber, #54855)
[Link] (7 responses)
When it crashes it kills the entire session. Just like when the X server crashes, as the compositor in Wayland is also the display server. Ideally, we GTK developers would like to allow clients to survive a display connection closure—and Wayland makes it easier than X11, given that all objects are client side and do not asynchronously disappear when the display connection is closed. Sadly, it's still not entirely trivial to achieve; there are more pressing things to do than addressing niche use cases; and this still does not address the issue of Emacs closing display connections at random and expecting things to survive.
Posted May 7, 2020 12:49 UTC (Thu)
by pabs (subscriber, #43278)
[Link]
https://arcan-fe.com/2017/12/24/crash-resilient-wayland-c...
Posted May 7, 2020 13:20 UTC (Thu)
by Baughn (subscriber, #124425)
[Link] (5 responses)
Posted May 7, 2020 14:30 UTC (Thu)
by ebassi (subscriber, #54855)
[Link] (4 responses)
Compositor crashes are not niche Compositor crashes are bugs, not a feature. Bugs ought to be fixed, and compositors should not crash, considering that they are privileged components. Additionally, terminating the connection should not crash a toolkit, but you should not expect that your application wait for a display reconnection and restart as if nothing happened either. The only safe thing to do is to save local state and terminate.
Posted May 8, 2020 2:15 UTC (Fri)
by pabs (subscriber, #43278)
[Link] (3 responses)
Posted May 8, 2020 22:48 UTC (Fri)
by roc (subscriber, #30627)
[Link] (2 responses)
Therefore your software should not lose data during those events either, and if that's true then a compositor crash likewise doesn't matter.
Posted May 10, 2020 8:14 UTC (Sun)
by LtWorf (subscriber, #124958)
[Link] (1 responses)
Posted May 13, 2020 8:53 UTC (Wed)
by roc (subscriber, #30627)
[Link]
Posted May 7, 2020 8:43 UTC (Thu)
by vejeta (subscriber, #138096)
[Link]
I searched the list, and found a mention here:
It seems there is a warning that mentions it when compiling emacs, however I don't see a reference to it where this discussion took place.
Posted May 7, 2020 12:52 UTC (Thu)
by ebassi (subscriber, #54855)
[Link]
Can anyone clarify if this is accurate? As the person who wrote the comment you're linking: yes, this is still accurate to the best of my knowledge. Emacs is specifically calling
Making Emacs popular again
https://gitlab.gnome.org/GNOME/gtk/-/issues/2315
to which the response was "Surviving a display connection going away is basically uninteresting for anything but emacs, so the chances of this getting fixed and keeping working are somewhat low.". Fair enough.
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
Making Emacs popular again
https://lwn.net/ml/emacs-devel/82460db0-1ecf-cf11-7dbf-d7...
Making Emacs popular again
abort(), and nobody from the Emacs camp has come up with a patch, or at least a description of the required Emacs behaviour that is supposedly not supported by GTK.
