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: Sun, 26 Feb 2017 17:41:22 -0500 Message-ID: <87wpccmv71.fsf@moondust.localdomain> References: <87a89c51qb.fsf@moondust.localdomain> <831suoub86.fsf@gnu.org> <87lgswmi6a.fsf@moondust.localdomain> <83vas0rozb.fsf@gnu.org> <87k28fso3o.fsf@moondust.localdomain> <83o9xrsmrd.fsf@gnu.org> <874lzjsh8t.fsf@moondust.localdomain> <87y3wvqqos.fsf@moondust.localdomain> <83fuj2smzr.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488148937 15522 195.159.176.226 (26 Feb 2017 22:42:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2017 22:42:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (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 Sun Feb 26 23:42:12 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 1ci7W5-0003QO-Us for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2017 23:42:10 +0100 Original-Received: from localhost ([::1]:48735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci7WB-0004TP-TM for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2017 17:42:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci7W1-0004RN-AN for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 17:42:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci7Vy-0002fJ-7e for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 17:42:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58932) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ci7Vy-0002fE-4K for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 17:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ci7Vx-0007a8-RU for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 17:42: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: Sun, 26 Feb 2017 22:42: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.148814890729124 (code B ref 25851); Sun, 26 Feb 2017 22:42:01 +0000 Original-Received: (at 25851) by debbugs.gnu.org; 26 Feb 2017 22:41:47 +0000 Original-Received: from localhost ([127.0.0.1]:57131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci7Vj-0007Zf-6S for submit@debbugs.gnu.org; Sun, 26 Feb 2017 17:41:47 -0500 Original-Received: from mail-it0-f65.google.com ([209.85.214.65]:36108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci7Vg-0007ZQ-Oa for 25851@debbugs.gnu.org; Sun, 26 Feb 2017 17:41:45 -0500 Original-Received: by mail-it0-f65.google.com with SMTP id w185so9858226ita.3 for <25851@debbugs.gnu.org>; Sun, 26 Feb 2017 14:41:44 -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; bh=L9mOqzkmMC0F3gG9P/pXz3j5mZr9LPOmxXaZLwP7myc=; b=d0W8D1WeZuxBxWCxqASFOG+agEnp3pALgawZGg23zvzVAJEg2o9AT157YkMzKOq2w5 llmOCS6ZUa1ud/N8Q6tHbVKH9nPX2dshQE6VSzB1boMIOqKb6vn99lH7QZBhW9/RVJDR Hxdk+cXYJodhVpKyJBAlh2jMReGI0r8sJVPxSnF8WQZm8w8Gye9WWPWsvCQ6zwyE1uck OxmA+xp/t3Y6Ef6Qh+SbUQu+EJAbbKuAGiAkBvanTyUwLQ/HOARqrKqkbOqxfIfs+DFt 3hDOxe376PC4c1F5RE8SOjuNJSD6wMX6YmolY2t79DLfxu7+4rz2S4wweC6Y7qYnnwgg yvHQ== 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; bh=L9mOqzkmMC0F3gG9P/pXz3j5mZr9LPOmxXaZLwP7myc=; b=oYICa/KI+sCHUcQA4b5yMAXCxSRv3PcIoeYFAKjR99jEckl1eEjhBFP4TWW4jveVCU Bqf44ILK8j5JZ5TSPZqMMqOFUPxBeYlN17jubcyB6FQipxJqcXkHK+0cxZug0XvytrkU KKcCo5F3MeJaA/cFKt0cX7MAFfJgvUjEu9ZZSDk3bVc42/I43MLZMq/MbXpFmJFy/qdm qbbUK7OUwnqpPAlmIxedyoF5oIWLCSPx4FtGzjG7DPNCUIeJ/VRdU/zTnMF0ObpBjnke mTbRMDxe7nQ2CUNW6iITy46U9H6108l4IWb8hQFjS521eaS4nD8777Cv/lEQJz5DNVHH 1rcg== X-Gm-Message-State: AMke39mYyt+s7Yv6nu42ZWtDEveE5CjebckuPF72jPeM/9dcrMVrW4UulxkbXSlTLwLO9w== X-Received: by 10.36.23.74 with SMTP id 71mr11322743ith.37.1488148899093; Sun, 26 Feb 2017 14:41:39 -0800 (PST) Original-Received: from moondust.localdomain.nodomain.none ([72.143.113.194]) by smtp.gmail.com with ESMTPSA id b25sm1731387iod.32.2017.02.26.14.41.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Feb 2017 14:41:38 -0800 (PST) In-Reply-To: <83fuj2smzr.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Feb 2017 10:17:28 +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:129847 Archived-At: At 10:17 +0200 on Saturday 2017-02-25, Eli Zaretskii wrote: > > So we are back at square one: we need to understand why the warning > isn't get silenced by this: > > /* Silence warning about visible children. */ > id = g_log_set_handler ("Gtk", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL > | G_LOG_FLAG_RECURSION, my_log_handler, NULL); > > Can you look into the source of g_warning and see why the above > doesn't avoid these warnings, and what should we do to avoid it? Hello Eli, I was unsuccessful in this assignment (so far at least). I suspect the answer is that GTK is using structured logging, but that is just a wild guess at this point. [I don't know how to do source-level debugging of code that I didn't build myself. Both glib and Gtk+ on my system were built/installed by the distribution's package manager and I have only the source code from upstream, not the source code for the exact versions on my system.] I did ascertain that the log handler `my_log_handler' that we install in the code snippet above is never called. For testing purposes, I also installed a catch-all handler, with g_log_set_default_handler(), and that doesn't get called either. I have no direct experience at all with either glib or Gtk+, but the documentation at [1] [I don't know for what version this is for, or if it's even relevant], seems to say that g_log_set_handler() has no effect if structured logging is turned on. It seems to say that structured logging is in effect if G_LOG_USE_STRUCTURED is defined. There is some indication that Gtk+3.22.8 might use the new structured logging. For example: $ grep -rn "G_LOG_USE_STRUCTURED" /data/projects/vc/gtk+-3.22.8/ /data/projects/vc/gtk+-3.22.8/gdk/mir/Makefile.in:526: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/mir/Makefile.am:9: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/Makefile.in:697: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/win32/Makefile.in:602: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/win32/Makefile.am:9: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/wayland/Makefile.in:537: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/wayland/Makefile.am:9: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/Makefile.am:38: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/x11/Makefile.in:535: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/x11/Makefile.am:9: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/quartz/Makefile.in:531: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/quartz/Makefile.am:8: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/broadway/Makefile.in:574: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gdk/broadway/Makefile.am:10: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gtk/Makefile.in:1325: -DG_LOG_USE_STRUCTURED=1 \ /data/projects/vc/gtk+-3.22.8/gtk/Makefile.am:7: -DG_LOG_USE_STRUCTURED=1 \ ... I don't have any more direct evidence at this stage. I might press on with this enquiry, but I admit I am way out of my depth at this stage. N.