GNU bug report logs - #76751
31.0.50; Bad window sizing with pgtk (bisected)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Jonathan Corbet <corbet@HIDDEN>; dated Wed, 5 Mar 2025 00:08:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 76751 <at> debbugs.gnu.org:


Received: (at 76751) by debbugs.gnu.org; 15 Mar 2025 11:20:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 07:20:54 2025
Received: from localhost ([127.0.0.1]:39171 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttPZW-0002IJ-Ea
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 07:20:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51044)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ttPZU-0002I6-Dm
 for 76751 <at> debbugs.gnu.org; Sat, 15 Mar 2025 07:20:53 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ttPZO-0008UR-J0; Sat, 15 Mar 2025 07:20:46 -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=mp3RhT5680ecZ89VDY4xFjR+1AYCxEFu+STITdnd+6E=; b=ruRApqMfq67W
 FfqSpT0BsFLXyzbtRwbXAOzq4scCnFG6ppcddwia12tzRA/e9welHc5AyRGa2hk99L730AJyxt8Q5
 jZosCdRHLUB0PQXebBwYi8Pmo8xBR+gNKo9M/zfGXB5HNT7RqpAATLVuMQsXrunqxQOUp67VcVpmk
 YNXKLZSunq+s0F/UD/9+ltehRy9PN66xah949gt0EhE2Q5ZEuMUybWMREZySBBrPX9y9pYweHBVyv
 lFL+LnR37zk9P9kIAAnWolIddcxvX4Q8j3ByPQqtq7cUFdbYR1tcazv7+ZHbhrKVM3bSxk4lZ63hl
 2/nyBIvjzPQZCCwaNO9dRA==;
Date: Sat, 15 Mar 2025 13:20:44 +0200
Message-Id: <861puyy1yr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: luangruo@HIDDEN
In-Reply-To: <867c53pqs5.fsf@HIDDEN> (message from Eli Zaretskii on Wed, 05
 Mar 2025 15:10:02 +0200)
Subject: Re: bug#76751: 31.0.50; Bad window sizing with pgtk (bisected)
References: <874j081gtb.fsf@HIDDEN> <867c53pqs5.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76751
Cc: 76751 <at> debbugs.gnu.org, corbet@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 76751 <at> debbugs.gnu.org
> Date: Wed, 05 Mar 2025 15:10:02 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: Jonathan Corbet <corbet@HIDDEN>
> > Date: Tue, 04 Mar 2025 17:06:56 -0700
> > 
> > 
> > Emacs trunk will often create new frames with strange (as in 8 line, 20
> > column) sizes when running in a pgtk build under wayland.  Reproduce
> > with:
> > 
> >   $ emacs -q
> >   C-x 5 b <ret>
> > 
> > The first time usually produces a normal frame; subsequent times often
> > will not.
> > 
> > NOTE that I first mentioned this in the discussion of bug#76481, but
> > this is a different and independent bug.  I spent a while bisecting it,
> > and landed on commit 24161683 ("Remedy bug#63395"), which indeed looks
> > like a likely culprit.  A trunk build with that commit reverted does not
> > exhibit the buggy behavior.
> 
> Po Lu, could you please take a look?

Ping!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76751; Package emacs. Full text available.

Message received at 76751 <at> debbugs.gnu.org:


Received: (at 76751) by debbugs.gnu.org; 5 Mar 2025 13:10:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 05 08:10:18 2025
Received: from localhost ([127.0.0.1]:36086 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tpoVu-0000oO-3j
	for submit <at> debbugs.gnu.org; Wed, 05 Mar 2025 08:10:18 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51038)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tpoVr-0000o5-V2
 for 76751 <at> debbugs.gnu.org; Wed, 05 Mar 2025 08:10:16 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tpoVi-0000kX-Vv; Wed, 05 Mar 2025 08:10:09 -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=Nr4IxGTEobLdVhLzhSMJSyqZokhckoZIWU3zD4X1jGU=; b=qULBs3+GoYGS
 A0IX55bTgLIfnV4r5MNmSKSxl0F1QRKWL1G7mFxe9/ssJ/DLjwyX0fvgLa6oAU8CEq3NUFCYogO/F
 1IB/2ogee4NFymAbHH5a6LRcXNgNPBJd5902F0PXmavp4iCwIvHqRH2yqn8Gc/j6z3Vxw3MkkRmG8
 raVgrRvVOTFfCAom0McNhQlSJ9/O3uH4hJzhTEW3VwI4rsUpCGRpymBFTU93w3KXLfJ5KIQ3mMspN
 kgAaZ6JIubMvZ3M/UMkRogqcg/eZ1kshq4/VLkvq/LquemlRGGbEj+hPmJ4cm+n89CA6Df5S5dbHX
 ZGdui9FFPIj1TrS9Runzqg==;
Date: Wed, 05 Mar 2025 15:10:02 +0200
Message-Id: <867c53pqs5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Jonathan Corbet <corbet@HIDDEN>, Po Lu <luangruo@HIDDEN>
In-Reply-To: <874j081gtb.fsf@HIDDEN> (message from Jonathan Corbet on
 Tue, 04 Mar 2025 17:06:56 -0700)
Subject: Re: bug#76751: 31.0.50; Bad window sizing with pgtk (bisected)
References: <874j081gtb.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76751
Cc: 76751 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Jonathan Corbet <corbet@HIDDEN>
> Date: Tue, 04 Mar 2025 17:06:56 -0700
> 
> 
> Emacs trunk will often create new frames with strange (as in 8 line, 20
> column) sizes when running in a pgtk build under wayland.  Reproduce
> with:
> 
>   $ emacs -q
>   C-x 5 b <ret>
> 
> The first time usually produces a normal frame; subsequent times often
> will not.
> 
> NOTE that I first mentioned this in the discussion of bug#76481, but
> this is a different and independent bug.  I spent a while bisecting it,
> and landed on commit 24161683 ("Remedy bug#63395"), which indeed looks
> like a likely culprit.  A trunk build with that commit reverted does not
> exhibit the buggy behavior.

Po Lu, could you please take a look?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76751; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Mar 2025 00:07:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 04 19:07:21 2025
Received: from localhost ([127.0.0.1]:33590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tpcIC-0001P5-Jo
	for submit <at> debbugs.gnu.org; Tue, 04 Mar 2025 19:07:21 -0500
Received: from lists.gnu.org ([2001:470:142::17]:42336)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <corbet@HIDDEN>) id 1tpcI7-0001Oj-VG
 for submit <at> debbugs.gnu.org; Tue, 04 Mar 2025 19:07:18 -0500
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 <corbet@HIDDEN>) id 1tpcI2-0002bU-2a
 for bug-gnu-emacs@HIDDEN; Tue, 04 Mar 2025 19:07:10 -0500
Received: from ms.lwn.net ([45.79.88.28])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <corbet@HIDDEN>) id 1tpcHy-0002j0-Nr
 for bug-gnu-emacs@HIDDEN; Tue, 04 Mar 2025 19:07:09 -0500
DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 7954941063
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203;
 t=1741133217; bh=YpO1UvZIbzTkFmDEQmU0p4lei87RSA5U9gvtqXx527w=;
 h=From:To:Subject:Date:From;
 b=tb1M0kFHQ+Q32+qhbUydfXxGh3w5amofqGWAt9UIiwnEqYLOnQ29SDAuyl0rhl4LT
 5YB9qJQiumIReLz8Hab4CwiAT5E+IUYQ1maxDgTPItoeVZuLi+lbSE4YIIMbtIQFgI
 h+wnLg+liS/Rv6SPcEIGHRliVv1yvkyX+UmhM19KyYOg0Oq2/BkaV5MSOFAYv9Q+WS
 aO3nd1FAvDNgdpcucHiY+pxOP4GHTubGVTuCXM7OUNhKtjFrs0/NGrBpYplViaLeXp
 JCaPtpf+4nHRarZi6O9zkKBLM3nHLLWxg7b3QssQt5cEWHfKi1LHbIBdCPP4HjZryJ
 KjsuPA20HBi3w==
Received: from localhost (unknown [73.243.92.182])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by ms.lwn.net (Postfix) with ESMTPSA id 7954941063
 for <bug-gnu-emacs@HIDDEN>; Wed,  5 Mar 2025 00:06:57 +0000 (UTC)
From: Jonathan Corbet <corbet@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; Bad window sizing with pgtk (bisected)
Date: Tue, 04 Mar 2025 17:06:56 -0700
Message-ID: <874j081gtb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=45.79.88.28; envelope-from=corbet@HIDDEN;
 helo=ms.lwn.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)


Emacs trunk will often create new frames with strange (as in 8 line, 20
column) sizes when running in a pgtk build under wayland.  Reproduce
with:

  $ emacs -q
  C-x 5 b <ret>

The first time usually produces a normal frame; subsequent times often
will not.

NOTE that I first mentioned this in the discussion of bug#76481, but
this is a different and independent bug.  I spent a while bisecting it,
and landed on commit 24161683 ("Remedy bug#63395"), which indeed looks
like a likely culprit.  A trunk build with that commit reverted does not
exhibit the buggy behavior.



In GNU Emacs 31.0.50 (build 25, x86_64-pc-linux-gnu, GTK+ Version
 3.24.43, cairo version 1.18.2) of 2025-03-04 built on trenco
Repository revision: e978737f57ef8447bba5796dd945ac185fcadffa
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12401005
System Description: Fedora Linux 41 (Workstation Edition)

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM
XRANDR GTK3 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr compile comint ansi-osc ansi-color ring comp-run
bytecomp byte-compile comp-common rx emacsbug lisp-mnt message mailcap
yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache
epa derived epg rfc6068 epg-config gnus-util text-property-search
time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip
cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting cairo
gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process
tty-child-frames native-compile emacs)

Memory information:
((conses 16 69946 11825) (symbols 48 6822 0) (strings 32 17657 2214)
 (string-bytes 1 559976) (vectors 16 10720)
 (vector-slots 8 149911 8541) (floats 8 22 7) (intervals 56 380 14)
 (buffers 992 12))




Acknowledgement sent to Jonathan Corbet <corbet@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76751; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 15 Mar 2025 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.