GNU bug report logs - #76481
31.0.50; Extreme weirdness with GDK_SCALE=

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 Fri, 21 Feb 2025 22:12:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 76481) by debbugs.gnu.org; 24 Feb 2025 17:09:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 24 12:09:01 2025
Received: from localhost ([127.0.0.1]:42358 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmbwy-0006i5-Lb
	for submit <at> debbugs.gnu.org; Mon, 24 Feb 2025 12:09:00 -0500
Received: from ms.lwn.net ([45.79.88.28]:54160)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <corbet@HIDDEN>) id 1tmbww-0006hs-9S
 for 76481 <at> debbugs.gnu.org; Mon, 24 Feb 2025 12:08:58 -0500
DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net BBAC444097
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203;
 t=1740416934; bh=E8/iJgDbBoWfGcWW0m3/wY5h866NvQgn2F0Hn4NGtD0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=CQhtJRQCRsha+AyXlXsOow6KYvKTN3ntdRM3/Fsu/aHaYXu0g3XJHjK6fNOn4Pewk
 q9Rz5oxnyLZRvporNUBlm+FfsrlYOeipAZkq5aCUjfVj9KpOGqM3T7jIwrm2gA0CSX
 5QR+7KSkHDj7Rh511lR/Lsd9k4p6Um/ss5XgP32weXbwts0VVuuBQQHk7L0fwcXGZr
 RjskC3cQEWbWkaaKIIHsq2m6l5JiuTIl3Hq44OibPIIUHRyywSPh6+vjUHmg9aG3HS
 1riRkvM27tfATHyrtD2Bml/QxO6+7UOHXuS/nmIC4fbRtE51ZAA7CR0lFFoVuZyXbC
 +8Xuj3hxuz/NQ==
Received: from localhost (unknown [IPv6:2601:280:4600:2d7f::1fe])
 (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 BBAC444097;
 Mon, 24 Feb 2025 17:08:54 +0000 (UTC)
From: Jonathan Corbet <corbet@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#76481: 31.0.50; Extreme weirdness with GDK_SCALE=
In-Reply-To: <875xl1h41r.fsf@HIDDEN>
References: <87ldtz9cdt.fsf@HIDDEN> <87ikp2hiws.fsf@HIDDEN>
 <87v7t17uth.fsf@HIDDEN> <875xl1h41r.fsf@HIDDEN>
Date: Mon, 24 Feb 2025 10:08:54 -0700
Message-ID: <87seo346e1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76481
Cc: 76481 <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: -1.0 (-)

Po Lu <luangruo@HIDDEN> writes:

> Jonathan Corbet <corbet@HIDDEN> writes:
>
>> OK, if I run it normally (without GDK_SCALE=), I get this
>>
>> First return, called from x_set_scroll_bar_default_width(): 32
>>  from xg_update_frame_menubar(): 2
>>  from xg_wm_set_size_hint(): 2
>>  from xg_frame_set_char_size(): 2
>>
>> from here on it's always 2
>>
>> with GDK_SCALE= :
>>
>> First return, called from x_set_scroll_bar_default_width(): 16
>>  from xg_update_frame_menubar(): 1
>>  from xg_wm_set_size_hint(): 1
>>  from xg_frame_set_char_size(): 1
>>
>> ...and always 1 thereafter.
>>
>> Hope that helps?
>>
>> Thanks,
>>
>> jon
>
> My recollection is that on Wayland the scale is decided by the
> compositor, but apparently GDK continues to report and use the value of
> GDK_SCALE in some contexts, if present, which moves the two out of sync.
> Or so I suspect.

Something that I think may be related and easier to reproduce... with a
pgtk build:

  $ emacs -q
  <get initial frame, which looks normal>
  C-x 5 b <ret>
  <get *scratch*, probably a tiny frame at most 8 lines high>

It's not 100% reproducible, but happens at least 50% of the time.

FWIW, I also get this in the terminal where I run the editor:

> (emacs:64577): Gtk-CRITICAL **: 10:06:02.686: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

Thanks,

jon




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

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


Received: (at 76481) by debbugs.gnu.org; 23 Feb 2025 00:56:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 22 19:56:54 2025
Received: from localhost ([127.0.0.1]:58088 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tm0Ig-0000i7-8O
	for submit <at> debbugs.gnu.org; Sat, 22 Feb 2025 19:56:54 -0500
Received: from sonic317-33.consmr.mail.ne1.yahoo.com ([66.163.184.44]:45337)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>)
 id 1tm0Ic-0000hl-S9
 for 76481 <at> debbugs.gnu.org; Sat, 22 Feb 2025 19:56:52 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1740272203; bh=fgdQr3qGOadyXvhIC9bl7n7lB/X+uHVFA47nfNmuvjs=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=eiaQJMusM0G0TXzQlbXr00AguGtJD+YZQalKDg7tH3HPya9UGYEa3mZfmCNACldU7m69L6V5L92Ws1b9QyvVbXROKi+XUmU8x/jne8sszVz32oOQj2UbVfsmMEMjFBv4DA5AruCiP7FxEicOI7GFOoIAtVGFkp+wcN+Xh1oiT432L4YPPSJrXWu4lSmiiqYDChAOnMcdUbySrYmfWFA+i5GYwmP84g3H16B5Wk4y1KLuzl1WAmdrAplkP5kkYtz1EA9grSZw1RtQvwlpqrZCkJ6lNRT5hX2bqPiHgW4v5X4i/h+4zUURuuv58LaOHU2bAn78/x798ASG8BHK0aHDJQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1740272203; bh=HPWUe5qF1opOOXTkUu30Lxp+ncJJR8m4lvkMeLGV29j=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=ME7AoyjaJqH7Xs+xZLY4WtU4N6HDx032ckgPUMMVmFq+9RXyjWEoLztAsY/yYTDu4Xq3D6jr3X/q4dG1selq7RSJ8MqhlTPoCwEXsfYkZIBYWpwXaAw1XiMO+vZiDNnDhR/ubQ7t4JUgB9SKh1+je1qZ0q6pR56XzVDO/pyAAeQdGYANUm5NsSi8pguWdp8iErEXapyJ+1imMui+y0OqF9p5Nj9KSNhf5dTkv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s3kp4lCIphXJ
 wZahHkyNZXKHA3_K0wyhjuSFz4eNRJmEtRMgcmZtxNrrPV7w5wOnHMtFV3yp0bKm.vhMVMEA6_FS
 tnIqFm1Jbb2oQNoImir5d_53lmJXIikLwcCEzO1Io2P8aeoYFqSf.kZ1WJQ5NrBcL6za9nwo5AwW
 X0WwY43Zv6mP2nq83WmTfrQ1YOtLvPLI8Aet7VQDhH6yVGaUzlSEi3XXF2TyABhRoGOYm2Pf0hOG
 u3zf4vZe0m5pxOIkYQgT2Y7qsegZC3T4CHP2fKYc3_T48jKHSmJmrkvhuc3g.TyWLHJv6nAU2vDp
 iebaSPGNH.bhC2EXION_ZM0ML0DaKR495.Xlciboy.ozys70dWnhJkkpm2jw-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 4ff8645e-134d-477d-a488-0e8e29231361
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic317.consmr.mail.ne1.yahoo.com with HTTP; Sun, 23 Feb 2025 00:56:43 +0000
Received: by hermes--production-sg3-5b7954b588-8t8cf (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID b658dddb94a7282133e03baf7d31714b; 
 Sun, 23 Feb 2025 00:56:37 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Jonathan Corbet <corbet@HIDDEN>
Subject: Re: bug#76481: 31.0.50; Extreme weirdness with GDK_SCALE=
In-Reply-To: <87v7t17uth.fsf@HIDDEN> (Jonathan Corbet's message of
 "Sat, 22 Feb 2025 10:28:26 -0700")
References: <87ldtz9cdt.fsf@HIDDEN> <87ikp2hiws.fsf@HIDDEN>
 <87v7t17uth.fsf@HIDDEN>
Date: Sun, 23 Feb 2025 08:56:32 +0800
Message-ID: <875xl1h41r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.23369
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 800
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76481
Cc: 76481 <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: -1.0 (-)

Jonathan Corbet <corbet@HIDDEN> writes:

> OK, if I run it normally (without GDK_SCALE=), I get this
>
> First return, called from x_set_scroll_bar_default_width(): 32
>  from xg_update_frame_menubar(): 2
>  from xg_wm_set_size_hint(): 2
>  from xg_frame_set_char_size(): 2
>
> from here on it's always 2
>
> with GDK_SCALE= :
>
> First return, called from x_set_scroll_bar_default_width(): 16
>  from xg_update_frame_menubar(): 1
>  from xg_wm_set_size_hint(): 1
>  from xg_frame_set_char_size(): 1
>
> ...and always 1 thereafter.
>
> Hope that helps?
>
> Thanks,
>
> jon

My recollection is that on Wayland the scale is decided by the
compositor, but apparently GDK continues to report and use the value of
GDK_SCALE in some contexts, if present, which moves the two out of sync.
Or so I suspect.




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

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


Received: (at 76481) by debbugs.gnu.org; 22 Feb 2025 17:28:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 22 12:28:34 2025
Received: from localhost ([127.0.0.1]:57083 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tltIo-00032c-D3
	for submit <at> debbugs.gnu.org; Sat, 22 Feb 2025 12:28:34 -0500
Received: from ms.lwn.net ([2600:3c01:e000:3a1::42]:47827)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <corbet@HIDDEN>) id 1tltIl-00032Q-Bl
 for 76481 <at> debbugs.gnu.org; Sat, 22 Feb 2025 12:28:32 -0500
DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 7C4E7411C4
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203;
 t=1740245307; bh=RK3AOI3pK6JzoMFpjta7/apfUZ1nnztwO6GNZDgsn74=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=F3u/dtHggeDJH/gMahRCL2n1+254iWk62BlWl28PzWGZmofml5dAk9LshAtHHOB5C
 OYPDYJ+vmnfRKAHVyaghxLCZe6RWJWwg+Z27YYLjDJIZzDQJiBA3oqyGbEvUQwykhT
 hmNg2XdpHNIKZkQq47Pq9/i/1P+wLuFCh6sE7yTIVfBGNdkqAixteunFx53UT8wZYd
 HZjVqISl+Eb6tKtTsQ9wiZZjeIqxO39j/QbflR5kldNxyV+BmKfjxezRuZclRRMX9z
 4/sZ56nOhBZgbpVxUh/QckWYL1ZwhPLOWLBjBeVjHrF26TkUEW2NvxaOTq2+zjmBni
 ihj7zKSPdIzDQ==
Received: from localhost (unknown [IPv6:2601:280:4600:2d7f::1fe])
 (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 7C4E7411C4;
 Sat, 22 Feb 2025 17:28:27 +0000 (UTC)
From: Jonathan Corbet <corbet@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#76481: 31.0.50; Extreme weirdness with GDK_SCALE=
In-Reply-To: <87ikp2hiws.fsf@HIDDEN>
References: <87ldtz9cdt.fsf@HIDDEN> <87ikp2hiws.fsf@HIDDEN>
Date: Sat, 22 Feb 2025 10:28:26 -0700
Message-ID: <87v7t17uth.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76481
Cc: 76481 <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: -1.0 (-)

Po Lu <luangruo@HIDDEN> writes:

> Jonathan Corbet <corbet@HIDDEN> writes:
>
>> With emacs built to use GTK, and running under Wayland...  run:
>>
>>    $ GDK_SCALE= emacs
>>
>> The result is a number of hallucinogenic effects ranging from emacs just
>> showing up as a black square on the screen to window-resizing attempts
>> setting the frame to random sizes unrelated to mouse movements.
>>
>> Things work much better without GDK_SCALE= and I can happily take that
>> out (it was put into my scripts years ago for long-forgotten reasons),
>> but other users may be tripped up by this too.
>>
>> This happens even with "emacs -q".
>
> Are you building the X11 configuration of Emacs with GTK, or the PGTK
> configuration?
>
> At all events, please place a breakpoint on xg_get_scale and ascertain
> what it returns.  I suspect an oversigt in GDK, as it appears that Emacs
> does not access this environment variable directly.

OK, if I run it normally (without GDK_SCALE=), I get this

First return, called from x_set_scroll_bar_default_width(): 32
 from xg_update_frame_menubar(): 2
 from xg_wm_set_size_hint(): 2
 from xg_frame_set_char_size(): 2

from here on it's always 2

with GDK_SCALE= :

First return, called from x_set_scroll_bar_default_width(): 16
 from xg_update_frame_menubar(): 1
 from xg_wm_set_size_hint(): 1
 from xg_frame_set_char_size(): 1

...and always 1 thereafter.

Hope that helps?

Thanks,

jon




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

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


Received: (at 76481) by debbugs.gnu.org; 22 Feb 2025 02:05:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 21:05:26 2025
Received: from localhost ([127.0.0.1]:41047 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tletR-00056S-GM
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2025 21:05:25 -0500
Received: from ms.lwn.net ([45.79.88.28]:45468)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <corbet@HIDDEN>) id 1tletO-00055R-91
 for 76481 <at> debbugs.gnu.org; Fri, 21 Feb 2025 21:05:23 -0500
DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 9675E44097
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203;
 t=1740189919; bh=j2uqHfGKe7rdzVgwuLk4KxvMWCtcFTJcqJb5qygcTkA=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=IXBDgm9eWkrnX53yb2pB4SzCyACt4Rr/zPVn6fho/94jwXVipsAI8wxCOvB0/Jy43
 E24SS1toDWx9MVKR8fbR3goJIcRcZmFTx0bEGRyJXQG+JUKTFNFj5/LUYW6NJS84bO
 TqzLmiEs84f4YTElxSooyAB5QHgXhohdESIRBnKS5+xnI9kmXhbhYkSEKZ80xK0edQ
 jAoLdwhqnXKLhQF39PRb3PxnQSWYl9jo5RJ5XbssZ43eYyjFTcin4p4y6ptsiowBVV
 2ILQ4grfHEQeBrwiPtdKYbjmWXSDnkGP5SOeEjT9+Zp19NrHDBcUmw6ZyPvug2sG/P
 Ep9ZzCjmAHYOg==
Received: from localhost (unknown [IPv6:2601:280:4600:2d7f::1fe])
 (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 9675E44097;
 Sat, 22 Feb 2025 02:05:19 +0000 (UTC)
From: Jonathan Corbet <corbet@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#76481: 31.0.50; Extreme weirdness with GDK_SCALE=
In-Reply-To: <87ikp2hiws.fsf@HIDDEN>
References: <87ldtz9cdt.fsf@HIDDEN> <87ikp2hiws.fsf@HIDDEN>
Date: Fri, 21 Feb 2025 19:05:18 -0700
Message-ID: <877c5i91k1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76481
Cc: 76481 <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: -1.0 (-)

Po Lu <luangruo@HIDDEN> writes:

> Jonathan Corbet <corbet@HIDDEN> writes:
>
>> With emacs built to use GTK, and running under Wayland...  run:
>>
>>    $ GDK_SCALE= emacs
>>
>> The result is a number of hallucinogenic effects ranging from emacs just
>> showing up as a black square on the screen to window-resizing attempts
>> setting the frame to random sizes unrelated to mouse movements.
>>
>> Things work much better without GDK_SCALE= and I can happily take that
>> out (it was put into my scripts years ago for long-forgotten reasons),
>> but other users may be tripped up by this too.
>>
>> This happens even with "emacs -q".
>
> Are you building the X11 configuration of Emacs with GTK, or the PGTK
> configuration?

PGTK.

> At all events, please place a breakpoint on xg_get_scale and ascertain
> what it returns.  I suspect an oversigt in GDK, as it appears that Emacs
> does not access this environment variable directly.

I'll try to get to that in the near future - stay tuned.

Thanks,

jon




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

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


Received: (at 76481) by debbugs.gnu.org; 22 Feb 2025 01:23:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 20:23:36 2025
Received: from localhost ([127.0.0.1]:40664 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tleEx-0000Pq-W5
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2025 20:23:36 -0500
Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]:37969)
 by debbugs.gnu.org with esmtps
 (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1tleEu-0000OK-3q
 for 76481 <at> debbugs.gnu.org; Fri, 21 Feb 2025 20:23:34 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1740187405; bh=+Ni4wtuLx4nhi1wHLiJiTYnp+iyS2VtTqaFXe0OSfJ0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=AjsqxWmqIYCwlZT730QQQbyfrWMjXn3JUurj+MNwOXBB7sjtcd8zEWPCc/iKLfLv4uZRwaXYBBLE5VHMNQJe2TEEYKxHk59mi7SIzkPxiu9FnsZyPaXQwkKdR3rCwFefE3cTao0A7UeHgGL8dnuvQlTMSQj0S+1vVfrcUO81Lrr/EwYhYWFigX1/Yhq06zI1vco23ejf4derfrVkkT/Yixyg8Ni5V6QaQgVSH9gn6FL/9Itrl2wppt1zZnzDHJWR1elPOGTLg7n1nj3nUMtBfXG7f3RnV195vBAuAGrCSv7reCFuWyU+52zUnAW6XxuLtvMNFFZTGq+BN4ujOcTYqQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1740187405; bh=cExz/4Arqgvauz/A6UqxPlKwCejZ4Rob3+9rf8jBUsg=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=R9w3UgEJQfKKApn38qZ3M5XfFBLiCW7hPjZTYBg8AYUfHhjirCQnkxpC5xTeAEf6PEhB0kR1InMWXz6V20FlO5ErKavbgwjR+WXpyK/qI9lhCVjGa4N1cXFUmM+xQbWbPaCsJEflRxiIadTFaruamJw6zTdWfd8p+FTyCYfLOzb2mzZA+jSqIZWiQvU5StA5qUzH4ZkQx0H9TKMhtvmj1qYvksGxxkS1KJbFCHhzjI+Gtw55a4aISNjebYBbWFrRvnvu5IS4URQVB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gWd3GxaTCAQLDRT7j2gDVn81tCjBj8PLyj3b2
 pYxF4wkgAreDKt7voM5MyUsK4ewaES2gqcs6zUrVpbLmoD8nwJcsS6myZKoUIYdi_uYy7Lqo95qt
 JD2uRnLupbt6o17UKHqcupSSEcVGw2y3mDl4v9RgNabRHw95a1VSlZmHM40aBrfCRrPNy2jeUEd4
 1bBiIMsOR5SzJ1pBvsdsMUY1J3QFMxkzeLGE5dbbGFkojoXxie.Ox7A1QnhV6BbVY1TZaDLnMrNC
 FVPivuR8XoIhSXCQ9g5Y2FGh6t2rE4p5pXc2_rGpDHwgSs7iWk6l9N32Vug--
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 54c5d3f6-2fe5-40ca-9a3d-9713967b98a3
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic312.consmr.mail.ne1.yahoo.com with HTTP; Sat, 22 Feb 2025 01:23:25 +0000
Received: by hermes--production-sg3-5b7954b588-bd2kk (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID b89ff20c59e263a9448cf48822802dc1; 
 Sat, 22 Feb 2025 01:23:19 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Jonathan Corbet <corbet@HIDDEN>
Subject: Re: bug#76481: 31.0.50; Extreme weirdness with GDK_SCALE=
In-Reply-To: <87ldtz9cdt.fsf@HIDDEN> (Jonathan Corbet's message of
 "Fri, 21 Feb 2025 15:11:26 -0700")
References: <87ldtz9cdt.fsf@HIDDEN>
Date: Sat, 22 Feb 2025 09:23:15 +0800
Message-ID: <87ikp2hiws.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.23369
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 869
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76481
Cc: 76481 <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: -1.0 (-)

Jonathan Corbet <corbet@HIDDEN> writes:

> With emacs built to use GTK, and running under Wayland...  run:
>
>    $ GDK_SCALE= emacs
>
> The result is a number of hallucinogenic effects ranging from emacs just
> showing up as a black square on the screen to window-resizing attempts
> setting the frame to random sizes unrelated to mouse movements.
>
> Things work much better without GDK_SCALE= and I can happily take that
> out (it was put into my scripts years ago for long-forgotten reasons),
> but other users may be tripped up by this too.
>
> This happens even with "emacs -q".

Are you building the X11 configuration of Emacs with GTK, or the PGTK
configuration?

At all events, please place a breakpoint on xg_get_scale and ascertain
what it returns.  I suspect an oversigt in GDK, as it appears that Emacs
does not access this environment variable directly.




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

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


Received: (at submit) by debbugs.gnu.org; 21 Feb 2025 22:11:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 17:11:52 2025
Received: from localhost ([127.0.0.1]:39008 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tlbFP-0006ma-9k
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2025 17:11:52 -0500
Received: from lists.gnu.org ([2001:470:142::17]:34028)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <corbet@HIDDEN>) id 1tlbFL-0006lh-Ra
 for submit <at> debbugs.gnu.org; Fri, 21 Feb 2025 17:11:48 -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 1tlbFG-0000NP-Be
 for bug-gnu-emacs@HIDDEN; Fri, 21 Feb 2025 17:11:42 -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 1tlbFC-0003GH-GB
 for bug-gnu-emacs@HIDDEN; Fri, 21 Feb 2025 17:11:42 -0500
DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 6D67D404E4
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203;
 t=1740175887; bh=nZw+OVSdrxaukFJmDHfCm82PPP1q71h6XIjzd8A/xXU=;
 h=From:To:Subject:Date:From;
 b=SLV20VPwh7sCM2VloY23b5vyd8guxlowrMecCxV7YtZKIXn/K5+HH4UKfWbYDHxV6
 ZFyO/I+iOVCe2fVmmYbrxeMRHtv+fvRfq2BaCYcow6jHhqnM1c8QP/Ba0pzB/7DHvm
 6ziMugmQ3FsAJHU/vxc5J5KKVctXxCIyfk1DsFxIY6e+sPnqxm1PTCvjISV4LDlRT2
 ykySJeS42P696sHzGwt1NZqfF0oe8/NF1SDs9mp1PfBxBQzn7IE6odaLznAPEKjCIp
 ubfgo8RRun7+MjTsshkZoIDORzMCvUorSN55bqQIMNALKhCuTUtBkN1yb8aEI4lgU+
 HM5u7iI7jFRMw==
Received: from localhost (unknown [IPv6:2601:280:4600:2d7f::1fe])
 (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 6D67D404E4
 for <bug-gnu-emacs@HIDDEN>; Fri, 21 Feb 2025 22:11:27 +0000 (UTC)
From: Jonathan Corbet <corbet@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; Extreme weirdness with GDK_SCALE=
X-Debbugs-Cc: 
Date: Fri, 21 Feb 2025 15:11:26 -0700
Message-ID: <87ldtz9cdt.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_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_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 (/)


With emacs built to use GTK, and running under Wayland...  run:

   $ GDK_SCALE= emacs

The result is a number of hallucinogenic effects ranging from emacs just
showing up as a black square on the screen to window-resizing attempts
setting the frame to random sizes unrelated to mouse movements.

Things work much better without GDK_SCALE= and I can happily take that
out (it was put into my scripts years ago for long-forgotten reasons),
but other users may be tripped up by this too.

This happens even with "emacs -q".


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.43, cairo version 1.18.2) of 2025-02-20 built on trenco
Repository revision: 4411d0de1d5cbf308440982084ad7e15a18efaf2
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: notmuch-hello

Minor modes in effect:
  server-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  minibuffer-regexp-mode: 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:
/home/corbet/.emacs.d/elpa/transient-20210525.1141/transient hides /usr/local/share/emacs/31.0.50/lisp/transient

Features:
(shadow sort flyspell ispell mail-extr emacsbug lisp-mnt cl-extra
help-mode server notmuch notmuch-tree notmuch-jump notmuch-hello
notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message
notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company
notmuch-parser notmuch-wash diff-mode track-changes easy-mmode coolj
goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs notmuch-tag crm notmuch-lib notmuch-version notmuch-compat
pcase hl-line mm-view mml-smime smime dig delsel cus-edit pp cus-load
gnus-topic gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group
gnus-undo gnus-start gnus-dbus dbus comp-run comp-common xml gnus-cloud
nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec
gnus-int gnus-range message sendmail yank-media dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util
time-date mail-utils range mm-util mail-prsvr wid-edit rust-utils
thingatpt rust-mode rx rust-rustfmt rust-playpen rust-compile compile
text-property-search comint ansi-osc ansi-color ring rust-cargo tls
gnutls puny erc format-spec erc-backend erc-networks erc-common
erc-compat compat erc-loaddefs finder-inf info package browse-url xdg
url url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
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 377895 34873) (symbols 48 25532 0) (strings 32 110328 5426)
 (string-bytes 1 3032008) (vectors 16 35145) (vector-slots 8 450204 28776)
 (floats 8 178 224) (intervals 56 434 26) (buffers 992 13))




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#76481; 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: Mon, 24 Feb 2025 17:15:02 UTC

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