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#56561: 29.0.50; Infloop in try_window Date: Sat, 16 Jul 2022 13:55:24 +0800 Message-ID: <87v8rxk3eb.fsf@yahoo.com> 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> <83ilnysbc5.fsf@gnu.org> <83fsj2s8fg.fsf@gnu.org> <83cze6s7xt.fsf@gnu.org> <83bktqs724.fsf@gnu.org> <878rotlpck.fsf@yahoo.com> <834jzhsj1a.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35239"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: mwd@md5i.com, 56561@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 16 07:56: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 1oCamn-00090P-RG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 07:56:17 +0200 Original-Received: from localhost ([::1]:53356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCamm-0000VL-LS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 01:56:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCamY-0000VC-Fq for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 01:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCamX-0004Os-TT for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 01:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCamX-0007RH-NN for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 01:56: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: Sat, 16 Jul 2022 05:56: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.165795094728572 (code B ref 56561); Sat, 16 Jul 2022 05:56:01 +0000 Original-Received: (at 56561) by debbugs.gnu.org; 16 Jul 2022 05:55:47 +0000 Original-Received: from localhost ([127.0.0.1]:42776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCamJ-0007Ql-0c for submit@debbugs.gnu.org; Sat, 16 Jul 2022 01:55:47 -0400 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:38237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCamD-0007QU-4J for 56561@debbugs.gnu.org; Sat, 16 Jul 2022 01:55:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657950934; bh=FRdyToEvj8c7hn2X5hYoIAb+RAinkKHE8NNZZA+3WYc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=rYeDXTWar05/qVLhR8uBWT/vX9cJ8tnaVtiJyxs3DcC29Y8exGIFdpPDXWFuQzKJ8U80AdjodgblTgb/1Hs7Pr5qBedGwGVnV5slovB4oHuJ+vV7ucd4TGVvUhTfkZ1QUmzu562O7jFbQnchLyYrRkxoWa0QXtqoKPAHNLYbElO+r4ZDlLu+WHQ7xOjaewF+x3vuQtvhnYbFdraWPM2SVcGCbqH52XkrpzBIKV1CLkV7EuL91/CS1FzcEnzoEUR70CXAn9pdZ++LKzAmPEPvjTWjFvLheQSzrnYCRdpfWKMrbze8rmX4etb/RLO6X7ehsOqaKky2b4KikOI+PVSHsw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657950934; bh=Nf3k9yX8FH1nJntoSx61tCXnV0EsPTvmGsWS1MQrofd=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=mxoX79+RTj+ahks6BhMb8JQ0mwQjN2KUUNXw7+MxdrlKwq2+8KMV+uDDEX+bYvVJDbHAn6VuLd+KUIVpy3jHxmwH/pZpSLJ6l9Opfv5u07aa8BlTZRiXjP5dB5+bH2PhGvG5KhmvLOWu2uVZ6OkLqHjmsKAKWJERpadD8OUWsq1CB6xHv5Jmcody160Tg8SnQEHaAEi4v5vX1nRYBao04t8Og9vdDzaxOrwS4YJvfT98ddT/AISu2TSOuHKDHv5kwyFoS0mUiXgZcwY5yhc4KLUYMhNo3qhM/RsbGyfSYKM0V+qu4ViW1QNAo8T/zARfN7GSEv0+R6XHuvrpCVzcIA== X-YMail-OSG: 1UjXqjYVM1lkEcncumkwKKA3oOUTpRBdRiVLwE3KZ2pNRUa.z44bAoBf8sfOaHN YuR_feoYxEqeifVd9GUUBFbbLF.7qSOKIWKraFXfEnQq9MvDwCtBXDvKMvaIfVaC4zul90t6yQYb 30YPXkcQqjrKj3md1ZpqK7FyLd7J6m13QpD148IvWRs9CaUON.iHnYsKxbE_c1QuAYxxKNNRO4DH 5eFl4lFYhtC7aV_OGoMcTerCOSsl0Z4p6uCw1FXSABRZYES9bLT_v8uzXlXziUzlC97pCfSZaGmM AsY0aQnrkjb7j490L4naqdCml6HDocNZvqmZEMSe1V2GYe3avWgBWrsSp4jJPZrIKgaFS9ejPUiY SqoomK_FB5AJcSoorLP.PbJNoeNOkpF9ogHfhUlAy4aP2x87Z81JsETLgh009h32k4LdYQEH.eEP ZLlBC3DPNDUvT8rvtzBaecopec2HuRwxEfOAlzuflNnXa6xngMjqgsES1jg4kQsWQe2JpMLYBg36 vVJ.pGyK7VgtDAzt48L.OH4S6SlSfM4i0XJZluVNkFIv1OzJeXAMZkPDoFLVo7YEbLp7.5U.yIhy zyIV08tZ0UaOMJEfE3nWivFmZEHUsm5CypyongY_qFTdaNiVsv2Gr7AHudNwmPjLOu9U5OseE6tV ilceKYNjiX3SOBdV5z072juVdQgEkhlBjjOj8V04.r2o3CxkQahYnL2D2Pin1KYDVU0JTGo8sVwx kMROuUxVeSxg2qt.Isg_zsWCLkzgwZs7PD6kUZvoa6dhIQILyztGbuLN9.PpViKpK3.gVJn7BiDX svq0Taa_9WYwy.ah6DWcIdPyiJ9K8UPJ_gFGYkysq7 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sat, 16 Jul 2022 05:55:34 +0000 Original-Received: by hermes--canary-production-sg3-67975bbd4b-w2clr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0188803537038133470b9458eba216d4; Sat, 16 Jul 2022 05:55:31 +0000 (UTC) In-Reply-To: <834jzhsj1a.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 Jul 2022 08:50:25 +0300") X-Mailer: WebService/1.1.20407 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:237142 Archived-At: Eli Zaretskii writes: > What I had in mind is an assertion in x-show-tip that the glyph matrix > produced by try_window includes all of the tooltip text, i.e. that > there's a glyph row there whose ends_at_zv_p flag is set. This is an > indication that all of the text was processed and will appear in the > tooltip. > > Note that in the case in point this is precisely what's happened: the > entire text of the tip was processed and produced its glyphs, and the > problem happened while try_window was producing empty glyph rows > beyond ZV. Thanks, but we can't guarantee that the tooltip frame's window is large enough to hold the entire contents of the tooltip buffer. The size can be changed (on various different platforms) by the window manager or the toolkit. > No, because as I explained in my message, I don't think this should > be needed. If the above assertion ever triggers, we will see what > kind of situation causes it, and can then discuss solutions. How about simply asserting that try_window never returns 0?