From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53871: 29.0.50; Emacs freezes with new child-frame option Date: Tue, 08 Feb 2022 17:09:23 +0200 Message-ID: <83ee4dwg2k.fsf@gnu.org> References: <86leylvjf5.fsf@gnu.org> <87pmnxy7bu.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23114"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arash@gnu.org, 53871@debbugs.gnu.org To: Tassilo Horn , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 08 18:21:18 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 1nHUB3-0005qs-KN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 18:21:17 +0100 Original-Received: from localhost ([::1]:47946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHUB2-0000yG-7G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 12:21:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHS82-0003VK-A2 for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 10:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHS81-0006KA-Vm for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 10:10:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHS81-0006Y3-QC for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 10:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Feb 2022 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53871 X-GNU-PR-Package: emacs Original-Received: via spool by 53871-submit@debbugs.gnu.org id=B53871.164433298525142 (code B ref 53871); Tue, 08 Feb 2022 15:10:01 +0000 Original-Received: (at 53871) by debbugs.gnu.org; 8 Feb 2022 15:09:45 +0000 Original-Received: from localhost ([127.0.0.1]:48300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHS7k-0006XR-UM for submit@debbugs.gnu.org; Tue, 08 Feb 2022 10:09:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHS7i-0006XF-Ow for 53871@debbugs.gnu.org; Tue, 08 Feb 2022 10:09:43 -0500 Original-Received: from [2001:470:142:3::e] (port=59992 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHS7b-0006HN-DD; Tue, 08 Feb 2022 10:09:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qN1jHtdpStrssgXZ6oM7qj6dfNF4rP7SDQI+8YRC+kc=; b=mqNKp1KQJmp6 Ku30b9mFQGMsxh+31eYI3lwxgz/3e5oQ2xCSGz8VAosOPaGalXgLYm6WqnhWd+bqM5o7wW6DcgvE8 Ob2xcZ7FLHwABf70NWh3S8dunPGYCtWhCpNOeUsPFC+2Wmoz7gBw+BJt4dFkVBQObH/tNm3mz3DFZ cG0uHI9VRts5DomhUa3hZNPS7pBpHkto8ruz5OS4q242D0KQJXWmVSqF++xPfX93zQce7dU6CLtNb 77loN9Ij87Usgb3pcoE7FtJ0bzZYJzA5NcYUBu2o2dKBEX+sYkBpclY0MRCMB9DP+vUFL9IMjCbte X+ex7sll+o7Br0vWmzsYQQ==; Original-Received: from [87.69.77.57] (port=2056 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHS7a-0002Cs-9F; Tue, 08 Feb 2022 10:09:34 -0500 In-Reply-To: <87pmnxy7bu.fsf@gnu.org> (message from Tassilo Horn on Tue, 08 Feb 2022 11:35:17 +0100) 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:226388 Archived-At: > From: Tassilo Horn > Date: Tue, 08 Feb 2022 11:35:17 +0100 > Cc: 53871@debbugs.gnu.org > > > 1) emacs -Q > > 2) eval (setq show-paren-context-when-offscreen t) in scratch > > 3) M-x find-library RET paren RET > > 4) M-g c 13902 RET > > 5) With the mouse cursor, grab the scroll bar and move down so far to > > get the context > > 'Matches (defun show-paren--show-context-in-child-frame (text)' > > in the echo area. > > 6) eval (setq show-paren-context-when-offscreen 'child-frame) in scratch > > 7) Repeat 5) and Emacs freezes > > > > This is with repo-version 90eb6a7fe4 on Win10. > > I can't reproduce with the slightly later version 9d1ae05442 on > GNU/Linux with a pgtk build. When scroll up and down (only so far as to > keep point at the closing paren of the defun), I'll see the child frame > displaying the "(defun ...)" line whenever I stop scrolling for a > second. > > After doing that for I while, I checked that `(frame-list)` still > contains just a single frame. How is that for you? Do you have many > frames in there? And do you recover from the freeze? The number of the frames is not the problem. Yes, there's just one frame on Windows as well. And no, there's no way to recover, because the implementation of this feature seems to cause on MS-Windows a deadlock between two threads, one of which is the main thread. On Windows, creating a frame involves sending a message to a separate UI thread and waiting for that thread to respond, but in this scenario, doing that seems to lead to some kind of deadlock, whereby both threads wait for messages. Martin, any ideas? I can show the backtrace from the freeze, if that helps.