From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Benjamin Schwehn Newsgroups: gmane.emacs.bugs Subject: bug#66151: 29.1.50; daemon crashing after X forwarding disconnects Date: Fri, 22 Sep 2023 18:51:09 +0200 Message-ID: References: <83fs3675zc.fsf@gnu.org> <87ediqpd0u.fsf@yahoo.com> <83ttrm5ovz.fsf@gnu.org> <83msxe5jqy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21180"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 66151@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 18:52:40 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qjjOS-0005M5-N1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 18:52:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjjNh-0001kD-9Q; Fri, 22 Sep 2023 12:51:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjjNg-0001jz-4q for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 12:51:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjjNf-0008SR-TJ for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 12:51:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjjNq-0006en-Hn for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 12:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Benjamin Schwehn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66151 X-GNU-PR-Package: emacs Original-Received: via spool by 66151-submit@debbugs.gnu.org id=B66151.169540150125560 (code B ref 66151); Fri, 22 Sep 2023 16:52:02 +0000 Original-Received: (at 66151) by debbugs.gnu.org; 22 Sep 2023 16:51:41 +0000 Original-Received: from localhost ([127.0.0.1]:37254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjjNV-0006eC-8Q for submit@debbugs.gnu.org; Fri, 22 Sep 2023 12:51:41 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:55339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjjNR-0006dp-Dz for 66151@debbugs.gnu.org; Fri, 22 Sep 2023 12:51:40 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-530c9980556so2793320a12.2 for <66151@debbugs.gnu.org>; Fri, 22 Sep 2023 09:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695401481; x=1696006281; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sPAIAbjF/KNz0j+sjbxyq8WhO0S04VQ/nm03Tm/ZTBg=; b=HfZ92WqnqASVMjitAvSzqeNMZehr7NrV7nxxRYvqikcnUK8KoZDUxCPZvTui+JnN95 HcpR3AKuZBlRU4OPvvr19m08zevJIcV20z+R88nU4tdBQR/PdQTB40BuwtfGvU5zRKln x6gjbCcFF/ZDAsCjBbGTE37ygxTkJi2RM3HeNBvpTQKu2wDdrxDgpUo8FfUYk7WPnqIx SH9Iq4idr5dTWBg7tcwyf7bfK5YY11ncJmtNBxWEM7Y90Fs3Ssg1esCq76JOMzn3knyW 5Z/oE2LmHP7zTdq9+/1yuVzi9L5qE+2BbYJNlczPSELjxkQK0maKw5wzYwAd9MnFGjcr tA5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695401481; x=1696006281; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sPAIAbjF/KNz0j+sjbxyq8WhO0S04VQ/nm03Tm/ZTBg=; b=iIBrFV3A/Zpn0lqU0dgsqjL9Zm7sCY29asyTXwFb09nddKqyMYJtaG7EqOoa4hF4kD B1pXcfkiAfrfyRdlhJXQTcrzckrAfNIrGIv3ysVkOPwcuV+3amd2jPb8xuK3RIvhlHNQ e7onK0qxvvZl/2l8gMp4WOZvRPSuQKsKyFU7qODxvNYCkstFgQ+hXvNuN4/KfNBEZbME AcHDdASKOSEacNb7CX8N9xyd3qGMfbY8fwu+6Ap+FBnB5E+Ml1t2qBST0MDif1a8vgOr ySYm3Nmi5dKHguR8DRmOXkNipDJ7OTQIVREynv+P7m8GesZZFp2lBRQ+sIKoeaD1TzOP tTZA== X-Gm-Message-State: AOJu0YyZnJBFubK0rkm5w0OzbOIe1SPli/zqQB/LAdTIkSgeijDOUmat sDRC8sKG7Ktzn5ijiLYH8v+ZIKBtxBh1tr1tCAM= X-Google-Smtp-Source: AGHT+IEgx+Fcb69tPwyJJ4vlcKVG5qPurB/6dfll0GXaS6GyUkCLyoZvcJmro96hEhcW7UDbTyo+cO4YcaWccXzHAfY= X-Received: by 2002:aa7:c30e:0:b0:531:287d:3232 with SMTP id l14-20020aa7c30e000000b00531287d3232mr30151edq.34.1695401480452; Fri, 22 Sep 2023 09:51:20 -0700 (PDT) In-Reply-To: <83msxe5jqy.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271118 Archived-At: On Fri, 22 Sept 2023 at 17:07, Eli Zaretskii wrote: > I think this confirms what Po Lu was saying: Emacs cannot recover when > you close the connection while some frame using that connection is > still on display. You should close all such frames before > disconnecting. Ok, sounds like there is no easy fix, thanks for the explanation! I am curious though, before switching to lucid, emacs logged this during startup as systemd service: Warning: due to a long standing Gtk+ bug https://gitlab.gnome.org/GNOME/gtk/issues/221 Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost. Using an Emacs configured with --with-x-toolkit=lucid does not have this problem. Do you happen to know what (if any) difference using lucid or gtk does in this use case? > > It's not a terrible issue for me, but annoyingly happens every time the VPN > > connection is lost (~twice a day) and I have emacs open (~all the time :)). > > Why is the VPN connection lost so frequently? Well, it is a work provided setup I have no control over. Half the disconnects are due to me missing the mandatory re-authentication every x hours, the other half I don't know. I had quickly experimented with xpra (https://github.com/Xpra-org/xpra), which should keep a persistent X11 connection. But it increased latency too much for my liking. Ben