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#56561: 29.0.50; Infloop in try_window Date: Fri, 15 Jul 2022 17:24:26 +0300 Message-ID: <83ilnysbc5.fsf@gnu.org> References: <874jzjwmhn.fsf@md5i.com> <83v8rzsdd1.fsf@gnu.org> <878rovxqjo.fsf@md5i.com> <83sfn2sy19.fsf@gnu.org> <83lesusl4w.fsf@gnu.org> <87lesumqgf.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35146"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mwd@md5i.com, 56561@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 16:25:14 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 1oCMFk-0008sR-In for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 16:25:12 +0200 Original-Received: from localhost ([::1]:54076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCMFj-00064L-Bs for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 10:25:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMFa-00063k-KJ for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 10:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44169) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCMFa-0001W5-BK for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 10:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCMFa-00032b-0n for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 10:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2022 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56561 X-GNU-PR-Package: emacs Original-Received: via spool by 56561-submit@debbugs.gnu.org id=B56561.165789507811652 (code B ref 56561); Fri, 15 Jul 2022 14:25:01 +0000 Original-Received: (at 56561) by debbugs.gnu.org; 15 Jul 2022 14:24:38 +0000 Original-Received: from localhost ([127.0.0.1]:41928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCMFC-00031s-15 for submit@debbugs.gnu.org; Fri, 15 Jul 2022 10:24:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCMF9-00031d-KM for 56561@debbugs.gnu.org; Fri, 15 Jul 2022 10:24:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34072) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMF4-0001T1-5M; Fri, 15 Jul 2022 10:24:30 -0400 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=RiRqiD4zeDkuHzJg0ZhCWMw+EsLkqaamYGR+s7uLwmc=; b=ooA4eLa2IiqW mDlzX/AMVThAUl5D24Ck1gI/EvM5A6bKa32Jgz7ZsCtZX+KUZzHpxzrnzBePQiM9fkeH3wKlTK/1o E4S3V2yYU4BWx/JudZal4YdnPb7IrT7oO2FWGNGXmvX6WY3MeLZmW1nItKsitcOl9RfiFTlk3tyOJ r7vZuncMhar7dYr+Id7OkUCyTheRhb3SDZr8rpyMHSEzcHpKjxx1I7WRDldkw+1LhiX1y4D+h1+gO E8Hp3W5z5Yw7PzhNB61KRWqWCAL5GDfIF9R1MunLs7r3sRS7t92wDEHygzZh6QFEF0/X/s9Ekid6M LJqEvJg7IJOTfAM2Q/a4ig==; Original-Received: from [87.69.77.57] (port=3611 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 1oCMF3-0002hb-Kl; Fri, 15 Jul 2022 10:24:29 -0400 In-Reply-To: <87lesumqgf.fsf@yahoo.com> (message from Po Lu on Fri, 15 Jul 2022 21:54:24 +0800) 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:237108 Archived-At: > From: Po Lu > Cc: mwd@md5i.com, 56561@debbugs.gnu.org > Date: Fri, 15 Jul 2022 21:54:24 +0800 > > BTW, I have a question about the fix: redisplay cannot run when a > tooltip is displayed as popup menu help-text, so adjust_glyph_matrix and > the subsequent try_window call that is required to generate the display > contents will not be called in time, leading to a blank tooltip. > > The call could previously never fail, since the tooltip code specifies > TRY_WINDOW_IGNORE_FONTS_CHANGE. > > Would it be appropriate to call adjust_frame_glyphs and try_window again > if this call to try_window in Fx_show_tip fails? You mean, adjust_frame_glyphs, right? We probably should do that, but my problem is that I cannot reproduce the original issue: whatever I try, the condition it.current_y < it.last_visible_y happens before MATRIX_ROW_VPOS (row, it->w->desired_matrix) >= it->w->desired_matrix->nrows We need a recipe to trigger the reverse, to be able to test a solution.