emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: long-standing GTK bug


From: Adam Sjøgren
Subject: Re: long-standing GTK bug
Date: Tue, 12 May 2020 09:57:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

  Hi Andres,


andres.ramirez writes:

> Which hints leads You from xterm.c to frame.c?

I could not figure out why x_terminal_close() wasn't called when the
last frame on a display was closed, and that lead me to frame.c.

Took me a couple of evenings of adding a _lot_ of print-statements and
experimenting.

My original goal was to look into "the GTK bug", and this "^C
hanging"/X-connection not being closed fell out of it as a bonus.

>     Adam> Ah, I've now read through the bugs referenced in the
>     Adam> comment, and it sounds like the problem that was handled by
>     Adam> adding this doesn't happen every time. When
>     Adam> x_delete_terminal() gets called much less, the described
>     Adam> crashes are less likely to happen.
>
> I have skimmed also the bugs referenced there. A lot of info and
> situations. All of that cases would need retest.

I don't know that any of those bugs are resolved, but I think the
workaround was acknowledged to be just a workaround when it was added,
so if the problems with the scrollbars can be solved, I think the
workaround can be removed for Lucid/Motif builds.

> Nice job. This bug affects a lot of emacs users. on 2016 I digged a
> little bit on this bug aka "long-standing GTK bug".

While related, this is not "the GTK bug", nor does it resolve it.

If you remove the workaround in frame.c and remove the call to
emacs_abort() when using GTK in x_connection_closed() in xterm.c, and
the connection to a display is terminated while Emacs has a window on
that display, you'll still get an endless stream of warnings from GLib,
i.e. "the GTK bug".

I've tried updating the latest issue on this in the GTK GitLab, to see
if anyone has some clues:

 · https://gitlab.gnome.org/GNOME/gtk/-/issues/2315#note_795365

I haven't heard anything yet, and I would not be surprised if they still
are cross with the Emacs community.

Thanks for replying, I agree it would be really nice to get to the
bottom of this long standing issue.


  Best regards,

    Adam

-- 
 "Ett, två, tre, pang på rödbetan."                         Adam Sjøgren
                                                       address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]