From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: Re: Qt can now survive Wayland compositor restarts Date: Sun, 12 Mar 2023 07:11:17 +0530 Message-ID: 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> <86a60j1q55.fsf@aarsen.me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27676"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Cancel-Lock: sha1:iaGc3YBK94lSUZ7Rs8imSnZFAD8= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 12 07:05:55 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 1pbEqB-0006wz-9W for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Mar 2023 07:05:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbEpL-0000WA-DN; Sun, 12 Mar 2023 01:05:03 -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 1pbAiA-00051H-97 for emacs-devel@gnu.org; Sat, 11 Mar 2023 20:41:22 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbAi8-0006im-JC for emacs-devel@gnu.org; Sat, 11 Mar 2023 20:41:21 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pbAi6-0008rE-P7 for emacs-devel@gnu.org; Sun, 12 Mar 2023 02:41:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 12 Mar 2023 01:05:01 -0500 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:304349 Archived-At: * Arsen Arsenović <86a60j1q55.fsf @aarsen.me> : Wrote on Sat, 11 Mar 2023 12:23:28 +0100: > Po Lu writes: >>> 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. AIUI all gtk calls have to happen on the default main context and so on the. Even if this is a different thread, the issues around locking the default main context make the glib mainloop go mad. There's a lot of history, too much of it, so it obscures. I think the bug I filed is at https://gitlab.gnome.org/GNOME/gtk/-/issues/2315 [In your case I think the _exit() there only to prevent the glib main loop from spamming errors when it gets into an inconsistent state, the issues are in glib, but I've not refreshed my unreliable memory]