GNU bug report logs - #65559
29.1; New Frame function fails to size the new frame correctly and prints a Gtk-CRITICAL message

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: George Soler <gsoler415@HIDDEN>; dated Sun, 27 Aug 2023 07:48:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 65559) by debbugs.gnu.org; 6 Sep 2023 13:55:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 06 09:55:48 2023
Received: from localhost ([127.0.0.1]:34477 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qdt0S-0002IS-Hb
	for submit <at> debbugs.gnu.org; Wed, 06 Sep 2023 09:55:48 -0400
Received: from lisa.wu-wien.ac.at ([137.208.3.21]:59655 helo=lisa.wu.ac.at)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Kurt.Hornik@HIDDEN>) id 1qdmX1-0002Y0-DZ
 for 65559 <at> debbugs.gnu.org; Wed, 06 Sep 2023 03:00:59 -0400
Received: from milter1.wu.ac.at (milter1.wu-wien.ac.at [137.208.8.132])
 by lisa.wu.ac.at (Postfix) with ESMTP id 4RgYDb5D0sz10W;
 Wed,  6 Sep 2023 09:00:47 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wu.ac.at; h=
 reply-to:from:from:date:date:message-id
 :content-transfer-encoding:content-type:content-type
 :mime-version:received:received:received; s=sslmail2009; t=
 1693983644; bh=giwPNT1LzeggZAgU1KT6YYQVEf2LXvt7UvFCI2kotuQ=; b=U
 Jj0oTpRxxiy8Ja5lVFflW1OglaPT8dRLgzfTA4G5aADxCqlANoBp7x+k+Tl+gqM3
 QstOEp+srdZgSJsSNEFPXDApXkRPP4WE5e3G0Bl0fLY5YqULyUNHGoUDkUQ2zkcd
 j3Sc5azqZpfOn9gyfkI69wxrmll7z90x330Nf3n+6s=
X-Virus-Scanned: amavisd-new at wu.ac.at
Received: from lisa.wu.ac.at ([137.208.3.21])
 by milter1.wu.ac.at (milter1.wu.ac.at [137.208.8.132]) (amavisd-new,
 port 10026)
 with ESMTP id M4dTeMnpYnhF; Wed,  6 Sep 2023 09:00:44 +0200 (CEST)
Received: from aragorn.wu.ac.at (217-149-168-17.nat.highway.telekom.at
 [217.149.168.17])
 by sslmail.wu.ac.at (Postfix) with ESMTPSA id 4RgYDV1nprzHD;
 Wed,  6 Sep 2023 09:00:42 +0200 (CEST)
Received: from hornik by aragorn.wu.ac.at with local (Exim 4.96)
 (envelope-from <Kurt.Hornik@HIDDEN>) id 1qdmWk-004Ij3-1q;
 Wed, 06 Sep 2023 09:00:38 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <25848.9110.559555.3515@HIDDEN>
Date: Wed, 6 Sep 2023 09:00:38 +0200
From: Kurt Hornik <Kurt.Hornik@HIDDEN>
To: 65559 <at> debbugs.gnu.org
X-Spam-Score: -0.3 (/)
X-Debbugs-Envelope-To: 65559
X-Mailman-Approved-At: Wed, 06 Sep 2023 09:55:42 -0400
Cc: Dirk Eddelbuettel <edd@HIDDEN>, Kurt Hornik <Kurt.Hornik@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>
Reply-To: Kurt.Hornik@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.3 (-)

The problem reported by George also starting occurring with Emacs 28 on
Debian testing when this recently pulled in GNOME 44, and is also
described in

  <https://emacs.stackexchange.com/questions/78561/new-frame-function-fails-to-size-the-new-frame-correctly-and-prints-a-gtk-critic>
  <https://bugs.launchpad.net/ubuntu/+source/emacs/+bug/2011244>

and Dirk Eddelbuettel assures me that this is reproducible with Ubuntu
23.04 (as described above, hence with Emacs 28.2 and GNOME 44).

The problems do not occur in an FVWM session, and with the default
Debian build (debian-gtk, more below) they occur in GNOME sessions with
both Wayland and X.org.

Over the weekend I tried the effect of building Emacs 29 from the
upstream sources with various toolkit options.

As "expected", the frame size problems occur with the default

  ./configure 
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK2

as well as

  ./configure --with-x-toolkit=gtk3
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK3

but not with very-old-style

  ./configure --with-x-toolkit=lucid
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          LUCID

nor with very-new-style

  ./configure --with-pgtk
  What window system should Emacs use?                    pgtk
  What toolkit should Emacs use?                          GTK3

So the problem seems to be with x11/GTK with GNOME 44.

FWIW, as a quick fix I tried 

(add-to-list
 'after-make-frame-functions
 '(lambda (frame) (set-frame-size frame 80 40))
 t)

but that did not work at all for me when a geometry X resource was set
(hence I stopped doing so) and even without that only unreliably, so for
now I switched to using the Debian testing emacs-lucid package (and am
waiting for the new emacs-pgtk in unstable to migrate to testing).

Best
-k




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65559; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 65559) by debbugs.gnu.org; 28 Aug 2023 00:52:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 20:52:07 2023
Received: from localhost ([127.0.0.1]:46437 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaQUB-00058m-7i
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 20:52:07 -0400
Received: from sonic306-22.consmr.mail.ne1.yahoo.com ([66.163.189.84]:33010)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1qaQU5-00058D-By
 for 65559 <at> debbugs.gnu.org; Sun, 27 Aug 2023 20:52:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1693183909; bh=XC7jzzF6BmvkDvhVteyVxmttKIRpVZjkQJ4rYPvZSJk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=QpPVrEk+4M5uLO46lyG1WTgd4jzQi0vEmmiTtgYIalGLWqcm1n+BLOMSEjTZglZCVaCUYq0dUsamqfSj6q4eDnOEQzqN3dMQe8igU4Ikl685vbOPufwoUnZEi6BaeuJ5SKYimAPrO6ZTfw6WVau64R5AYqZVg69GP6SClkaIFXSbgPVvCCd+aTGwupv36ge7HNEhC5mAOInLLsYB27ZCuwr11BTDPlgoyOhfd0Bp+ELplz4XGb60sPZTS6TKRa0rRU0q4JWjjuDq6AxuakWUhwcOhieSEYe12IsNiW++DtRk5hIw47W51acqBPVCXh2zpbdUYQTdql+vm4U0EW0W8w==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1693183909; bh=rCaoOTqBrcrFgoaKg5CKvN7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WLWUI9.Bktwc5kwtEOfywuZfDBrTrJnW8A6m
 O9MHuZ7_mkTO195.SnvaaOmpiC2hSB7HjMR5n5O_7KJAE8rd_S6gD.s7rcMrAM3g0lEAPlmKPoqW
 8qm5AxiH9saL81yCrWPnIKy7nRh9mbtdH50dXhLYI8zMM_xVwbDkN_3IYfCX8eo5GPrv7R1VA1ah
 kD1somQF_F6nVl0lu9.JNwUVjKd6FgqYq_r95XZMwtxqXG3oU_wT03L0ToWEDNENOZ4C2uGp7AK0
 T8CCp5g0WKycVzfNQULUMIbv1OAq9Qrr06rhyxUiCuz5XY6acASfjqONuZokI6s9gcKSQjVnzjg2
 0OttwHlaLlKqU41HJFZxP8Ux0KFZU0hgHWcXaUaxHzX.g4Y_BQwUSiWVMyQMFKZeANlHYumHyh9J
 HFkLPkTXvmLYO2KiLPLKqWqablv_4GN07OOXlwUuVLDFYAnLj4LMBBGc6J.TtRWYZ.47meHmCKJb
 vuNXNeDRSYB10dYUVgyWHaMTN4dD6tYoEHELmA_LIEftAMYTwjCzxe5lJAo1WUWttJMjTXrVSNrF
 ehleJQr3qTO7Ib78Bfs0RqShg92Ixb9nubPjsam49lFUqxNWyaO.edfrMFd_9bbgfhVZ0d40-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: a8d5d902-3030-4966-90e2-b85f1093cf1a
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic306.consmr.mail.ne1.yahoo.com with HTTP; Mon, 28 Aug 2023 00:51:49 +0000
Received: by hermes--production-sg3-69654d8bd-l9pxw (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 1ad6f69b132658835bc66cf932732b12; 
 Mon, 28 Aug 2023 00:51:44 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: George Soler <gsoler415@HIDDEN>
Subject: Re: bug#65559: 29.1; New Frame function fails to size the new frame
 correctly and prints a Gtk-CRITICAL message
In-Reply-To: <CAMbhE99V6pagu9nPUswyBkPDFeyJ+A-xOUZ7O3dF3ZXJRKoP8A@HIDDEN>
 (George Soler's message of "Sat, 26 Aug 2023 23:58:43 -0700")
References: <CAMbhE99V6pagu9nPUswyBkPDFeyJ+A-xOUZ7O3dF3ZXJRKoP8A@HIDDEN>
Date: Mon, 28 Aug 2023 08:51:39 +0800
Message-ID: <87pm38xa3o.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.21763
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 513
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65559
Cc: 65559 <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 (-)

George Soler <gsoler415@HIDDEN> writes:

> After upgrading Linux to Ubuntu 23.04 the emacs create new frame function (C-x 5 2) seems broken. What happens: when I create a
> new frame, it shows up so tiny (15x7) that the GTK widget can't fit all the menu bar items and throws the following error:
>
> (emacs:11091): Gtk-CRITICAL **: 17:28:07.823:
> gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

This is only a symptom of the problem, not its cause.  What window
manager are you using?




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

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


Received: (at submit) by debbugs.gnu.org; 27 Aug 2023 07:47:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 03:47:46 2023
Received: from localhost ([127.0.0.1]:44028 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaAUr-0002XG-FM
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 03:47:46 -0400
Received: from lists.gnu.org ([2001:470:142::17]:54206)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gsoler415@HIDDEN>) id 1qa9jr-00071E-2e
 for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:59:12 -0400
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 <gsoler415@HIDDEN>)
 id 1qa9jf-0004Ti-Gx
 for bug-gnu-emacs@HIDDEN; Sun, 27 Aug 2023 02:58:59 -0400
Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gsoler415@HIDDEN>)
 id 1qa9jc-0001mo-CE
 for bug-gnu-emacs@HIDDEN; Sun, 27 Aug 2023 02:58:59 -0400
Received: by mail-oi1-x22e.google.com with SMTP id
 5614622812f47-3a44cccbd96so1646096b6e.3
 for <bug-gnu-emacs@HIDDEN>; Sat, 26 Aug 2023 23:58:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693119534; x=1693724334;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=jlM5ohTIgGYSmi+EqmITzRBxFSoQyi4eqYiTTG0hIEM=;
 b=hw4phuwOGGc+Kr7RyRrc8Dcv6DqX8cB9htGaS/IvPgxRA6XtFCW3bJdnS+9P/PtRjs
 nyYr+RyXeZ8RZ+fpPgWxxhDeetc4P3F1Fm9KJU/nZEDH118dWn0RdXrJzgK2vrwJGnYD
 SFf8T66Sz2W28Euc5nd5gxiwfLQyCM7FcGP3uaR8vOK+KaYv8pl0ZyZNn3BN2z+2yfXX
 EPa+r/cREgjwlC2tWEg8+6+kqTxMKlxNw06NJ1WgW95OzBAZrojun6mxSTxL875Q0Bu7
 Oc+Rf10US/nRX8gpZGSXO/TINDSp8Q0J7vxuPWrFJzsMupFtvA4HIcZwwiQVuK0L1lmx
 S8Gg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693119534; x=1693724334;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=jlM5ohTIgGYSmi+EqmITzRBxFSoQyi4eqYiTTG0hIEM=;
 b=USNMI2rK32xmycpsv5wakM1umjlx9YQp29KVJ0fFdapIRm6eHUEzBdcWLxSFOoCg/F
 jC/DDj5/OIpIZXtPa1zZw9FyWONunkBS+0WQxkQa97VgQBFnoesJWCbmzTDIEICqV6Ne
 i3E0fUbBJ5nHylgbS/idYXxz2O2unUq+U/Phlwb/4xE/OXKpdKVwU4PUQx9GzKf/Y+/p
 H/aVRKVDQPeaBY4H5Y6Sf9xNfkjFtmy5GHYLT3CMiJs+3wZPR74skCdGUilXaiSCj293
 7wABkcI2GM5eh6uc2aUkmnkHNayqCTz+WcCts8UA/NzF4r5x7RpEM6QyqXY09xXEeTKp
 fzcA==
X-Gm-Message-State: AOJu0Yx7eGQ8C/Lz3NHEW2jjQPjQ/WFOdkYEXCCiP6nXO0rCMlWJBtGQ
 DQ8zRt95/mIeUUDHzLCoqcUw6y7TxjdqRHWj8D3fLW4KKmis0DYW
X-Google-Smtp-Source: AGHT+IEtR7qvfyeUQmwxzFEo3okzA2UVKr89+NfPJvtxPlpD9n0AD2fwtoKWyBLHZ9VMy0jcPHRZPdEf0OiGHZmFup4=
X-Received: by 2002:a05:6808:1393:b0:3a9:307a:62aa with SMTP id
 c19-20020a056808139300b003a9307a62aamr9471687oiw.22.1693119534559; Sat, 26
 Aug 2023 23:58:54 -0700 (PDT)
MIME-Version: 1.0
From: George Soler <gsoler415@HIDDEN>
Date: Sat, 26 Aug 2023 23:58:43 -0700
Message-ID: <CAMbhE99V6pagu9nPUswyBkPDFeyJ+A-xOUZ7O3dF3ZXJRKoP8A@HIDDEN>
Subject: 29.1; New Frame function fails to size the new frame correctly and
 prints a Gtk-CRITICAL message
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="0000000000006b75ab0603e21cd7"
Received-SPF: pass client-ip=2607:f8b0:4864:20::22e;
 envelope-from=gsoler415@HIDDEN; helo=mail-oi1-x22e.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 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,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Date: Sat,
 26 Aug 2023 23:47:03 -0700 Message-ID:
 <87pm39rnh4.fsf@HIDDEN>
 --text follows this line-- This bug report was created from 'emacs -Q' and
 M-x report-emacs-bug' After upgrading Linux to Ubuntu 23.04 the emacs create
 new frame function (C-x 5 2) seems broken. What happens: when I create a
 new frame, it shows up so tiny (15x7) that the GTK widget can't fit all [...]
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (gsoler415[at]gmail.com)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (gsoler415[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.0 HTML_MESSAGE           BODY: HTML included in message
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 27 Aug 2023 03:47:43 -0400
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.2 (/)

--0000000000006b75ab0603e21cd7
Content-Type: text/plain; charset="UTF-8"

Date: Sat, 26 Aug 2023 23:47:03 -0700
Message-ID: <87pm39rnh4.fsf@HIDDEN>
--text follows this line--
This bug report was created from 'emacs -Q' and M-x report-emacs-bug'

After upgrading Linux to Ubuntu 23.04 the emacs create new frame function
(C-x 5 2) seems broken. What happens: when I create a new frame, it shows
up so tiny (15x7) that the GTK widget can't fit all the menu bar items and
throws the following error:

(emacs:11091): Gtk-CRITICAL **: 17:28:07.823:
gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

This problem happens even when I run with 'emacs -Q', which could mean some
kind of basic incompatibility with gtk that may have been introduced with
the Ubuntu upgrade.
When launching emacs, the initial window displays the correct size, and the
Messages buffer is clean, the problem only happens when opening additional
frames.

I compiled emacs from source downloaded from
https://www.gnu.org/software/emacs/download.html
I added no extra flags to the compilation, I just followed the vanilla
build instructions in the INSTALL file.

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37,
 cairo version 1.16.0) of 2023-08-10 built on atlas
Windowing system distributor 'The X.Org Foundation', version 11.0.12201008
System Description: Ubuntu 23.04

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
LIBSELINUX MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

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

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  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
  font-lock-mode: t
  blink-cursor-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:
None found.

Features:
(shadow sort mail-extr emacsbug 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 mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x
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 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
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process
emacs)

Memory information:
((conses 16 36458 5537)
 (symbols 48 5130 0)
 (strings 32 13146 1083)
 (string-bytes 1 378191)
 (vectors 16 9457)
 (vector-slots 8 152686 14435)
 (floats 8 35 26)
 (intervals 56 200 0)
 (buffers 976 10))

--0000000000006b75ab0603e21cd7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Date: Sat, 26 Aug 2023 23:47:03 -0700<br>Message-ID: &lt;8=
7pm39rnh4.fsf@HIDDEN&gt;<br>--text follows this=
 line--<br><div>This bug report was created from &#39;emacs -Q&#39; and <sp=
an class=3D"gmail-comment-copy">M-x report-emacs-bug&#39;</span></div><div>=
<span class=3D"gmail-comment-copy"><br></span></div>After upgrading Linux t=
o Ubuntu 23.04 the emacs create new frame function (C-x 5 2) seems broken. =
What happens: when I create a new frame, it shows up so tiny (15x7) that th=
e GTK widget can&#39;t fit all the menu bar items and throws the following =
error:<br><br>(emacs:11091): Gtk-CRITICAL **: 17:28:07.823:<br>gtk_distribu=
te_natural_allocation: assertion &#39;extra_space &gt;=3D 0&#39; failed<br>=
<br>This problem happens even when I run with &#39;emacs -Q&#39;, which cou=
ld mean some kind of basic incompatibility with gtk that may have been intr=
oduced with the Ubuntu upgrade.<br><div>When launching emacs, the initial w=
indow displays the correct size, and the Messages buffer is clean, the prob=
lem only happens when opening additional frames.</div><div><br></div>I comp=
iled emacs from source downloaded from<br><a href=3D"https://www.gnu.org/so=
ftware/emacs/download.html">https://www.gnu.org/software/emacs/download.htm=
l</a><br>I added no extra flags to the compilation, I just followed the van=
illa build instructions in the INSTALL file.<br><br>In GNU Emacs 29.1 (buil=
d 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37,<br>=C2=A0cairo version 1.16=
.0) of 2023-08-10 built on atlas<br>Windowing system distributor &#39;The X=
.Org Foundation&#39;, version 11.0.12201008<br>System Description: Ubuntu 2=
3.04<br><br>Configured features:<br>CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS=
 GSETTINGS HARFBUZZ JPEG<br>LIBSELINUX MODULES NOTIFY INOTIFY PDUMPER PNG S=
ECCOMP SOUND THREADS TIFF<br>TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 =
XPM GTK3 ZLIB<br><br>Important settings:<br>=C2=A0 value of $LANG: en_US.UT=
F-8<br>=C2=A0 value of $XMODIFIERS: @im=3Dibus<br>=C2=A0 locale-coding-syst=
em: utf-8-unix<br><br>Major mode: Lisp Interaction<br><br>Minor modes in ef=
fect:<br>=C2=A0 tooltip-mode: t<br>=C2=A0 global-eldoc-mode: t<br>=C2=A0 el=
doc-mode: t<br>=C2=A0 show-paren-mode: t<br>=C2=A0 electric-indent-mode: t<=
br>=C2=A0 mouse-wheel-mode: t<br>=C2=A0 tool-bar-mode: t<br>=C2=A0 menu-bar=
-mode: t<br>=C2=A0 file-name-shadow-mode: t<br>=C2=A0 global-font-lock-mode=
: t<br>=C2=A0 font-lock-mode: t<br>=C2=A0 blink-cursor-mode: t<br>=C2=A0 li=
ne-number-mode: t<br>=C2=A0 indent-tabs-mode: t<br>=C2=A0 transient-mark-mo=
de: t<br>=C2=A0 auto-composition-mode: t<br>=C2=A0 auto-encryption-mode: t<=
br>=C2=A0 auto-compression-mode: t<br><br>Load-path shadows:<br>None found.=
<br><br>Features:<br>(shadow sort mail-extr emacsbug message mailcap yank-m=
edia puny dired<br>dired-loaddefs rfc822 mml mml-sec password-cache epa der=
ived epg rfc6068<br>epg-config gnus-util text-property-search mm-decode mm-=
bodies mm-encode<br>mail-parse rfc2231 mailabbrev gmm-utils mailheader send=
mail rfc2047<br>rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date =
subr-x<br>cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren elect=
ric<br>uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel<br>te=
rm/x-win x-win term/common-win x-dnd tool-bar dnd fontset image<br>regexp-o=
pt fringe tabulated-list replace newcomment text-mode lisp-mode<br>prog-mod=
e register page tab-bar menu-bar rfn-eshadow isearch easymenu<br>timer sele=
ct scroll-bar mouse jit-lock font-lock syntax font-core<br>term/tty-colors =
frame minibuffer nadvice seq simple cl-generic<br>indonesian philippine cha=
m georgian utf-8-lang misc-lang vietnamese<br>tibetan thai tai-viet lao kor=
ean japanese eucjp-ms cp51932 hebrew greek<br>romanian slovak czech europea=
n ethiopic indian cyrillic chinese<br>composite emoji-zwj charscript charpr=
op case-table epa-hook<br>jka-cmpr-hook help abbrev obarray oclosure cl-pre=
loaded button loaddefs<br>theme-loaddefs faces cus-face macroexp files wind=
ow text-properties<br>overlay sha1 md5 base64 format env code-pages mule cu=
stom widget keymap<br>hashtable-print-readable backquote threads dbusbind i=
notify<br>dynamic-setting system-font-setting font-render-setting cairo<br>=
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process<br>emac=
s)<br><br>Memory information:<br>((conses 16 36458 5537)<br>=C2=A0(symbols =
48 5130 0)<br>=C2=A0(strings 32 13146 1083)<br>=C2=A0(string-bytes 1 378191=
)<br>=C2=A0(vectors 16 9457)<br>=C2=A0(vector-slots 8 152686 14435)<br>=C2=
=A0(floats 8 35 26)<br>=C2=A0(intervals 56 200 0)<br><div>=C2=A0(buffers 97=
6 10))</div><div><br></div></div>

--0000000000006b75ab0603e21cd7--




Acknowledgement sent to George Soler <gsoler415@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#65559; 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, 23 Oct 2023 20:15:02 UTC

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