From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.bugs Subject: bug#25851: 25.2; GTK warning when starting Emacs when desktop file has more than one frame Date: Thu, 23 Feb 2017 21:33:33 -0500 Message-ID: <87lgswmi6a.fsf@moondust.localdomain> References: <87a89c51qb.fsf@moondust.localdomain> <831suoub86.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1487903654 433 195.159.176.226 (24 Feb 2017 02:34:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 02:34:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25851@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 03:34:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch5hx-0007xM-7k for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 03:34:09 +0100 Original-Received: from localhost ([::1]:34302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch5i3-0000DC-4P for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 21:34:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch5hu-0000D5-6u for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 21:34:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ch5hq-00045V-8Q for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 21:34:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ch5hq-00045P-4j for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 21:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ch5hp-0000cw-Pw for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 21:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2017 02:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25851-submit@debbugs.gnu.org id=B25851.14879036292390 (code B ref 25851); Fri, 24 Feb 2017 02:34:01 +0000 Original-Received: (at 25851) by debbugs.gnu.org; 24 Feb 2017 02:33:49 +0000 Original-Received: from localhost ([127.0.0.1]:53418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch5hd-0000cU-3J for submit@debbugs.gnu.org; Thu, 23 Feb 2017 21:33:49 -0500 Original-Received: from mail-it0-f66.google.com ([209.85.214.66]:33836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch5ha-0000cG-DF for 25851@debbugs.gnu.org; Thu, 23 Feb 2017 21:33:46 -0500 Original-Received: by mail-it0-f66.google.com with SMTP id r141so1213405ita.1 for <25851@debbugs.gnu.org>; Thu, 23 Feb 2017 18:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=DcUWiGvRq0ppzOGudWtwu1iG0SY06gMxIM3lvA2faoQ=; b=qV8PvcjlQo2B0TvUggWp52ni5FsbbcdWa7udsT0y8Pt2nheOUMtfb/mZq06xcoyRE7 wfiznrBZBmyTVELEV5FFeaP/D9eP7f1asxlI2U2gxLkHmRsq9+5O620oX1d4UjUCn5Sl 3rAkPRDeK18dZpZISM2GpSwF4Qyu1mbxpoJ+FM2ZD2LIUhUQrrPtX23j0G9py1BoQ1HB N2Gt9DHgFpoz9/JlIPZSE72r859J76hVPWdYjjZw+CzMuSmKk6ZrDO2mWT1l9Op011g/ smWXPYEFOpYHCClRUTHk2mNz2PmLKp/O/r4akfVx7SaTPuMqLDyW0DCKlWhMskANg81x TZCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=DcUWiGvRq0ppzOGudWtwu1iG0SY06gMxIM3lvA2faoQ=; b=L0YfkAsFN1CPIM5Sy1TPC/swnWGHdC+VUVbIyF4J4+ULEs18gnjUwoQeUJVorFOh1O RdjFmYCP74tRQDDplJGOui+Am7JAJfqzu8PRh6PAHF+UcfMbcuRVGfoy4myMZbxK5nqD jEMQV2O+DHjo7d9Y56U6VKnv+9cy75sdZf6NjjiWQcE6I2O9WJ+Qosjn6z6Fe4TEykLt ApuAeqa8KTCnXLZL/lAjxQ86n9L5LdyBOLWmMaQpJOjYDGgcfVs73/pUYYt+Y17jaWwn INT70Q28pe2wvsHSA8lWP2YeN1qgzq1KNO/IjzdGzEVmO9EBnSY2M5HXd1FvJGelfOoW 7haw== X-Gm-Message-State: AMke39n3vEQqWi3S1yTMJbsWaN6U7pXGUO0XOCgLQp0ItFK8zV+w47kFOwpOKrrxff533w== X-Received: by 10.107.59.201 with SMTP id i192mr868900ioa.196.1487903620538; Thu, 23 Feb 2017 18:33:40 -0800 (PST) Original-Received: from moondust.localdomain.nodomain.none ([184.151.178.236]) by smtp.gmail.com with ESMTPSA id h91sm362230ioi.24.2017.02.23.18.33.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2017 18:33:39 -0800 (PST) In-Reply-To: <831suoub86.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 23 Feb 2017 18:24:09 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129707 Archived-At: At 18:24 +0200 on Thursday 2017-02-23, Eli Zaretskii wrote: > > Thanks. It might be enough if you run Emacs under a debugger > with a breakpoint in the GTK function which emits this warning, > then show us the backtrace from that function. That should point > to the code that gets executed when it probably shouldn't. This warning is emitted by line 11414 of `gtk_window_parse_geometry' in gtkwindow.c in the gtk+-3.22.8 sources. The code looks like this: gboolean gtk_window_parse_geometry (GtkWindow *window, const gchar *geometry) { gint result, x =3D 0, y =3D 0; guint w, h; GtkWidget *child; GdkGravity grav; gboolean size_set, pos_set; GdkScreen *screen; g_return_val_if_fail (GTK_IS_WINDOW (window), FALSE); g_return_val_if_fail (geometry !=3D NULL, FALSE); child =3D gtk_bin_get_child (GTK_BIN (window)); if (!child || !gtk_widget_get_visible (child)) g_warning ("gtk_window_parse_geometry() called on a window with no " "visible children; the window should be set up before " "gtk_window_parse_geometry() is called."); ... There is a note in the commentary preceding the function that echos the warning message: * Note that for gtk_window_parse_geometry() to work as * expected, it has to be called when the window has its =E2=80=9Cfinal= =E2=80=9D * size, i.e. after calling gtk_widget_show_all() on the * contents and gtk_window_set_geometry_hints() on the window. The only place in the Emacs sources where I see `gtk_window_parse_geometry' being called is in `xg_set_geometry' at line 802 of gtkutil.c where the code looks like this: /* Silence warning about visible children. */ id =3D g_log_set_handler ("Gtk", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION, my_log_handler, NULL); if (!gtk_window_parse_geometry (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), geom_str)) fprintf (stderr, "Failed to parse: '%s'\n", geom_str); So it looks like a previous attempt to avoid the warning message is no longer successful. As requested, here is the backtrace when the warning is emitted: #0 0x00000000005657ee in xg_set_geometry (f=3D0x10aa9f0) at gtkutil.c:806 #1 0x00000000005667cf in xg_create_frame_widgets (f=3D0x10aa9f0) at gtkuti= l.c:1216 #2 0x000000000054fc76 in x_window (f=3D0x10aa9f0) at xfns.c:2727 #3 0x0000000000551d79 in Fx_create_frame (parms=3D57485619) at xfns.c:3484 #4 0x000000000062c40d in Ffuncall (nargs=3D2, args=3D0x7fffffff8ec8) at ev= al.c:2699 #5 0x000000000067664b in exec_byte_code (bytestr=3D10582108, vector=3D1058= 2141, maxdepth=3D18, args_template=3D0, nargs=3D0, args=3D0x0) at bytecode.= c:880 #6 0x000000000062d16f in funcall_lambda (fun=3D10582045, nargs=3D1, arg_ve= ctor=3D0xa1787d ) at eval.c:2929 #7 0x000000000062c68f in Ffuncall (nargs=3D2, args=3D0x7fffffff9400) at ev= al.c:2748 #8 0x000000000067664b in exec_byte_code (bytestr=3D23626564, vector=3D1486= 8461, maxdepth=3D14, args_template=3D1030, nargs=3D1, args=3D0x7fffffff9a80= ) at bytecode.c:880 #9 0x000000000062cd50 in funcall_lambda (fun=3D22350725, nargs=3D1, arg_ve= ctor=3D0x7fffffff9a78) at eval.c:2863 #10 0x000000000062c68f in Ffuncall (nargs=3D2, args=3D0x7fffffff9a70) at ev= al.c:2748 #11 0x000000000062b382 in Fapply (nargs=3D2, args=3D0x7fffffff9a70) at eval= .c:2284 #12 0x000000000062c2d5 in Ffuncall (nargs=3D3, args=3D0x7fffffff9a68) at ev= al.c:2679 #13 0x000000000067664b in exec_byte_code (bytestr=3D23644068, vector=3D2120= 8917, maxdepth=3D62, args_template=3D514, nargs=3D1, args=3D0x7fffffffa010)= at bytecode.c:880 #14 0x000000000062cd50 in funcall_lambda (fun=3D19980181, nargs=3D1, arg_ve= ctor=3D0x7fffffffa010) at eval.c:2863 #15 0x000000000062c68f in Ffuncall (nargs=3D2, args=3D0x7fffffffa008) at ev= al.c:2748 #16 0x000000000067664b in exec_byte_code (bytestr=3D11218740, vector=3D1121= 8773, maxdepth=3D54, args_template=3D1026, nargs=3D1, args=3D0x7fffffffa568= ) at bytecode.c:880 #17 0x000000000062cd50 in funcall_lambda (fun=3D11218685, nargs=3D1, arg_ve= ctor=3D0x7fffffffa560) at eval.c:2863 #18 0x000000000062c68f in Ffuncall (nargs=3D2, args=3D0x7fffffffa558) at ev= al.c:2748 #19 0x000000000067664b in exec_byte_code (bytestr=3D11217524, vector=3D1121= 7557, maxdepth=3D22, args_template=3D2054, nargs=3D2, args=3D0x7fffffffaad8= ) at bytecode.c:880 #20 0x000000000062cd50 in funcall_lambda (fun=3D11217469, nargs=3D2, arg_ve= ctor=3D0x7fffffffaac8) at eval.c:2863 #21 0x000000000062c68f in Ffuncall (nargs=3D3, args=3D0x7fffffffaac0) at ev= al.c:2748 #22 0x000000000067664b in exec_byte_code (bytestr=3D29837764, vector=3D2032= 7621, maxdepth=3D70, args_template=3D4114, nargs=3D4, args=3D0x7fffffffb0e0= ) at bytecode.c:880 #23 0x000000000062cd50 in funcall_lambda (fun=3D25722397, nargs=3D4, arg_ve= ctor=3D0x7fffffffb0c0) at eval.c:2863 #24 0x000000000062c68f in Ffuncall (nargs=3D5, args=3D0x7fffffffb0b8) at ev= al.c:2748 #25 0x000000000067664b in exec_byte_code (bytestr=3D18636228, vector=3D2213= 7909, maxdepth=3D122, args_template=3D1542, nargs=3D9, args=3D0x7fffffffb61= 8) at bytecode.c:880 #26 0x000000000062cd50 in funcall_lambda (fun=3D21872565, nargs=3D9, arg_ve= ctor=3D0x7fffffffb610) at eval.c:2863 #27 0x000000000062c68f in Ffuncall (nargs=3D10, args=3D0x7fffffffb608) at e= val.c:2748 #28 0x000000000067664b in exec_byte_code (bytestr=3D19811332, vector=3D2194= 1397, maxdepth=3D42, args_template=3D2, nargs=3D0, args=3D0x7fffffffbba8) a= t bytecode.c:880 #29 0x000000000062cd50 in funcall_lambda (fun=3D21941501, nargs=3D0, arg_ve= ctor=3D0x7fffffffbba8) at eval.c:2863 #30 0x000000000062c68f in Ffuncall (nargs=3D1, args=3D0x7fffffffbba0) at ev= al.c:2748 #31 0x000000000067664b in exec_byte_code (bytestr=3D19804484, vector=3D2194= 1597, maxdepth=3D66, args_template=3D1026, nargs=3D0, args=3D0x7fffffffc100= ) at bytecode.c:880 #32 0x000000000062cd50 in funcall_lambda (fun=3D20574093, nargs=3D0, arg_ve= ctor=3D0x7fffffffc100) at eval.c:2863 #33 0x000000000062c68f in Ffuncall (nargs=3D1, args=3D0x7fffffffc0f8) at ev= al.c:2748 #34 0x000000000067664b in exec_byte_code (bytestr=3D19384580, vector=3D1849= 2589, maxdepth=3D18, args_template=3D2, nargs=3D0, args=3D0x7fffffffc6d0) a= t bytecode.c:880 #35 0x000000000062cd50 in funcall_lambda (fun=3D21708709, nargs=3D0, arg_ve= ctor=3D0x7fffffffc6d0) at eval.c:2863 #36 0x000000000062c68f in Ffuncall (nargs=3D1, args=3D0x7fffffffc6c8) at ev= al.c:2748 #37 0x000000000062b780 in funcall_nil (nargs=3D1, args=3D0x7fffffffc6c8) at= eval.c:2338 #38 0x000000000062bc60 in run_hook_with_args (nargs=3D1, args=3D0x7fffffffc= 6c8, funcall=3D0x62b75d ) at eval.c:2515 #39 0x000000000062b807 in Frun_hook_with_args (nargs=3D1, args=3D0x7fffffff= c6c8) at eval.c:2380 #40 0x000000000062bcea in run_hook (hook=3D21708709) at eval.c:2528 #41 0x000000000062b7c4 in Frun_hooks (nargs=3D2, args=3D0x7fffffffc7d0) at = eval.c:2362 #42 0x000000000062c2d5 in Ffuncall (nargs=3D3, args=3D0x7fffffffc7c8) at ev= al.c:2679 #43 0x000000000067664b in exec_byte_code (bytestr=3D11253852, vector=3D1125= 3885, maxdepth=3D86, args_template=3D2, nargs=3D0, args=3D0x7fffffffcd88) a= t bytecode.c:880 #44 0x000000000062cd50 in funcall_lambda (fun=3D11253805, nargs=3D0, arg_ve= ctor=3D0x7fffffffcd88) at eval.c:2863 #45 0x000000000062c68f in Ffuncall (nargs=3D1, args=3D0x7fffffffcd80) at ev= al.c:2748 #46 0x000000000067664b in exec_byte_code (bytestr=3D11249860, vector=3D1124= 9893, maxdepth=3D50, args_template=3D2, nargs=3D0, args=3D0x7fffffffd230) a= t bytecode.c:880 #47 0x000000000062cd50 in funcall_lambda (fun=3D11249813, nargs=3D0, arg_ve= ctor=3D0x7fffffffd230) at eval.c:2863 #48 0x000000000062c9f7 in apply_lambda (fun=3D11249813, args=3D0, count=3D4= ) at eval.c:2800 #49 0x000000000062b026 in eval_sub (form=3D21000067) at eval.c:2217 #50 0x000000000062a512 in Feval (form=3D21000067, lexical=3D0) at eval.c:19= 94 #51 0x0000000000581380 in top_level_2 () at keyboard.c:1121 #52 0x0000000000628baf in internal_condition_case (bfun=3D0x58135d , handlers=3D19104, hfun=3D0x580d8a ) at eval.c:1315 #53 0x00000000005813c1 in top_level_1 (ignore=3D0) at keyboard.c:1129 #54 0x000000000062817e in internal_catch (tag=3D45936, func=3D0x581382 , arg=3D0) at eval.c:1080 #55 0x00000000005812b5 in command_loop () at keyboard.c:1090 #56 0x000000000058087a in recursive_edit_1 () at keyboard.c:697 #57 0x0000000000580a7a in Frecursive_edit () at keyboard.c:768 #58 0x000000000057e832 in main (argc=3D1, argv=3D0x7fffffffd758) at emacs.c= :1629 Lisp Backtrace: "x-create-frame" (0xffff8ed0) "x-create-frame-with-faces" (0xffff9408) 0x1550b80 PVEC_COMPILED "apply" (0xffff9a70) "frame-creation-function" (0xffffa010) "make-frame" (0xffffa560) "make-frame-on-display" (0xffffaac8) "frameset--restore-frame" (0xffffb0c0) "frameset-restore" (0xffffb610) "desktop-restore-frameset" (0xffffbba8) "desktop-read" (0xffffc100) 0x14b3fa0 PVEC_COMPILED "run-hooks" (0xffffc7d0) "command-line" (0xffffcd88) "normal-top-level" (0xffffd230) I hopes this helps and please let me know if I can provide further information. Thanks. N.