From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arsen =?utf-8?Q?Arsenovi=C4=87?= Newsgroups: gmane.emacs.devel Subject: Re: Qt can now survive Wayland compositor restarts Date: Sat, 11 Mar 2023 12:23:28 +0100 Message-ID: <86a60j1q55.fsf@aarsen.me> References: <87pm9g36vk.fsf@athena.silentflame.com> <1499bc96-cecf-3c79-59e9-0c1db6a45aca@yandex.ru> <86ilf82qh9.fsf@aarsen.me> <83o7ozydhk.fsf@gnu.org> <87a60jeo57.fsf@yahoo.com> <86bkkz364s.fsf@aarsen.me> <875yb7ee3p.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , dgutov@yandex.ru, spwhitton@spwhitton.name, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 11 12:31:28 2023 Return-path: Envelope-to: ged-emacs-devel@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 1paxRf-0007K9-PK for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Mar 2023 12:31:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paxRE-0007x8-9g; Sat, 11 Mar 2023 06:31:00 -0500 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 1paxRC-0007wi-Lm for emacs-devel@gnu.org; Sat, 11 Mar 2023 06:30:58 -0500 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1paxRB-0000bP-19; Sat, 11 Mar 2023 06:30:58 -0500 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4PYghq5T5Xz9sT1; Sat, 11 Mar 2023 12:30:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1678534251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DqTRYbrh8srgpCbHKj4f4W5I429NBJYM1ydFnlKn9PQ=; b=A2dcH7YWqg/eB7vcmi3EtMzue2RM2CIXQJ0tvDvkjAEROKj7IuLKS6/rjvucEK609O7orr EvOMD1cPbO68jXmS0pNsEtvZAA3ffxVrInqqXjAEK3enLWlK+WSNqhajBa3xR2N4/MB3yD bofEvi1CkynSffU1JX27cVy6j/TSaszHA5c893FcNqWYBHYfZY3cRDiF2UAHq58pSxRVGP Ww4dz7g4LfuNhanVirKSv9ytVec8inxQBulNio2o4MMadVPX5O3hzrcRrVL8DUF9KMvhKJ xbwXV3wsZODNSNYMIP+1lIl6XfbnUB4C7CgCuGSVrVT7mUarVtiE2JFcE+Qjsg== In-reply-to: <875yb7ee3p.fsf@yahoo.com> Received-SPF: pass client-ip=80.241.56.172; envelope-from=arsen@aarsen.me; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304290 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Po Lu writes: > Arsen Arsenovi=C4=87 writes: > >> Po Lu writes: >> >>> Eli Zaretskii writes: >>> >>>>> From: Arsen Arsenovi=C4=87 >>>>> Cc: Sean Whitton , emacs-devel@gnu.org >>>>> Date: Fri, 10 Mar 2023 23:17:17 +0100 >>>>>=20 >>>>> I was considering trying to do a separation of UI and Elisp threads a= s a >>>>> solution, but, seeing this happen makes me think a Qt port is easier. >>>>>=20 >>>>> I'd still like opinions on the former idea, though. It might be >>>>> worthwhile, but I am operating with little knowledge of that part of = the >>>>> code-base, so I'm unsure if there's some deeper reason behind this not >>>>> being the case today. >>>> >>>> FYI: the MS-Windows build of Emacs uses a separate thread for input >>>> and UI. >>> >>> Likewise for the Haiku and Android ports, FWIW. >> >> Reassuring, thanks for the info. I'll try making some time to do the >> same for PGTK, though I can't promise anything. > > Do what? A separate UI thread. > If you want to fix the GTK crash, you will have to run the GTK stuff in > a separate *process*. Now that would be a real pain. It would be indeed. The likelihood of crashes would be lowered if the display server event loop is not kept busy by the Elisp interpreter, though, which is why a separate thread would help (for instance, I suspect that the reason I see crashes when sending mail on occasion is because smtpmail blocks the main thread and a bunch of mouse events get queued up in the meanwhile, causing libwayland to give up). In either case, the better fix would be teaching GTK not to do silly things on error conditions, and instead consult the user, but I'm not sure how doable that is. > Thanks. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZAxmZl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTsoUBANAAJaXaPi20wH71N9zb/NMxSBC6cu6frxLo KLcGiogFAQDh7nTjlLXI/v8BFtb8MPns+tBNi4sOOk6UdfHU/T7gAQ== =WFy0 -----END PGP SIGNATURE----- --=-=-=--