From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56967: 29.0.50; Frequent crashes under Wayland Date: Mon, 08 Aug 2022 10:40:30 +0800 Message-ID: <875yj3sbj5.fsf@yahoo.com> References: <1932596.zmb9SnqgO4@odin> <2972937.jrzt3BHeHG@odin> <87fsib9p9g.fsf@yahoo.com> <20004002.VVDfsmh7uS@odin> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7533"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 56967@debbugs.gnu.org To: Bjoern Bidar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 08 04:41:10 2022 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 1oKsha-0001oF-3q for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Aug 2022 04:41:10 +0200 Original-Received: from localhost ([::1]:48742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKshZ-0004yD-3i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Aug 2022 22:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKshS-0004xp-B7 for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 22:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKshR-0007eU-W8 for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 22:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKshR-0005cQ-RU for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 22:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Aug 2022 02:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56967 X-GNU-PR-Package: emacs Original-Received: via spool by 56967-submit@debbugs.gnu.org id=B56967.165992644821568 (code B ref 56967); Mon, 08 Aug 2022 02:41:01 +0000 Original-Received: (at 56967) by debbugs.gnu.org; 8 Aug 2022 02:40:48 +0000 Original-Received: from localhost ([127.0.0.1]:38689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKshE-0005bo-DQ for submit@debbugs.gnu.org; Sun, 07 Aug 2022 22:40:48 -0400 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]:44749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKshB-0005bZ-NM for 56967@debbugs.gnu.org; Sun, 07 Aug 2022 22:40:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1659926440; bh=0Ztvhn6z8BJzS9gLBCPGxjnAc1jyWhqzjTc9kgPith4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=OAiK8Jg7x2gP08zSpXfzO/UucBBKajliYASZLbBNSpqS8YUF8YODqOYSN99IuS0C4p9S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BcmC iDRmtAEva6LWf3uLoIS87.o12L3fOwmCKdp234EkcPhlgf3xtaPLALm5zr73PSOyUKkszTkeI186 5aaeVMvm9j0NwgfKoGw7ACuC.wj3D1qPEntYVT3kg5RP.ijK6KKC1LJRMDrN_arfCIUscxQh_mxR pAr_hRtPpmFN3NF0UiRJ5fSYd4Di9fZ7Za0TnMH7T53855ok78Ek4ksdtpROzIuDemOKt3rbSBvQ KR.W_9Lt82dN6Zqa9ynLp1AnZ3QLAZRKOL0frSiyM2KRWwIelo9meflZWf3xnBFDz7vz2glVvV55 EVfJ6UYy.640nMfGKtTlTZj_rdq00NTCeYoUM0un1DaQgD1Ob.ZbLNG4v7i7E3DiJgiXS01sAAD6 tLClj7ClXtxNdMoSJlX0EsVmW9vByqiERmTmrECsjXvl7D1Aj64PXMPecV22oSWfr8.fXope_nfV 9Yo8RWENn0mJ2xmcesMWLfkW7vx16CxMJg4m4RhWyDWo4XPflvBF2uCnd6i.LIZ_h_6p3xkmRVgZ RPBBi0DwLn7GrW.ZRViF6v0SIuser.4uZzIYFuqlde X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Mon, 8 Aug 2022 02:40:40 +0000 Original-Received: by hermes--canary-production-sg3-6f58cd9b5-vlgxl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID aebcd5ce2c1514ba908f6b4c1dc885c8; Mon, 08 Aug 2022 02:40:35 +0000 (UTC) In-Reply-To: <20004002.VVDfsmh7uS@odin> (Bjoern Bidar's message of "Sun, 07 Aug 2022 17:51:25 +0300") X-Mailer: WebService/1.1.20491 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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" Xref: news.gmane.io gmane.emacs.bugs:239095 Archived-At: Bjoern Bidar writes: > I did I had my hole session running, nothing else had that issue. > I kept the GTK-Demo running nothing happened it ran just fine. Thanks. > After a few hours Emacs exited with the same behaviour as explained in th= e=20 > bug. Do you see the same if you run Emacs as something other a daemon? > I on the #gtk channel on what do and I got from ebassi that it is ok to j= ust=20 > call _exit. > He says it might be the client behaving wrong: > Thaodan: It could happen because the client made an invalid requ= est=E2=80=94 > Wayland mandates that the display server closes the connection in that ca= se We don't make raw Wayland requests anywhere, so it must be a bug in GTK. > And if you lose the socket then you' > you'll have to find the new one and reconnect > Thaodan: Only emacs does that > Pretty much literally > "that"? > "app may run longer or before the compositor starts" > Because emacs is really a 1980s teletype app > What does that change? calling _exit is not a solution. > Lets assume the fault for this happening is emacs, what could c= ause=20 > this? Outdated information. The PGTK port of Emacs doesn't do anything close to that, because GTK doesn't let us. > Calling exit is perfectly acceptable: the display connection is= =20 > severed, and that can happen for multiple reasons, including the display= =20 > server going away > There's no "the display server is still running, but it closed t= he=20 > socket" mechanism for the toolkit to use So why not use exit, which lets the atexit handlers run? > The socket got closed > The toolkit terminates > Thaodan: It could happen because the client made an invalid requ= est=E2=80=94 > Wayland mandates that the display server closes the connection in that ca= se > Or the display server decided to kill the client because it was= =20 > unresponsive > Why should the toolkit/lib call exit isn't there any better=20 > mechanism to doing such a thing in glib or gtk for that matter?=20 > It would be better to not need any hacks to prevent gtk from ki= lling=20 > apps. > Thaodan: There is no such mechanism > ebassi: OK so what's the idea behind using _exit as a mechanism= ,=20 > doesn't that break any other app that has state so safe too? like for exa= mple=20 > an office application that wants to safe it's data before going down. > I already told you > If the display connection is closed by the server, then there's = no=20 > safe way to store the data Store the data that is in Emacs core?? How did these people learn to write software?