From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#24091: 24.5; High CPU usage at startup while hidden Date: Sat, 3 Sep 2016 13:29:39 -0400 Message-ID: References: <24533f31-9fc2-b38e-aaeb-561616cdf77f@gmail.com> <87shut9pyk.fsf@users.sourceforge.net> <83lh0lq9n5.fsf@gnu.org> <83oa5fp1zb.fsf@gnu.org> <877fbkw7b1.fsf@users.sourceforge.net> <83inv1fnf9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1472923823 19679 195.159.176.226 (3 Sep 2016 17:30:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Sep 2016 17:30:23 +0000 (UTC) Cc: Aiken , =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel , 24091@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 03 19:30:19 2016 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 1bgElm-0004TV-45 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Sep 2016 19:30:18 +0200 Original-Received: from localhost ([::1]:47250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgElj-0000L4-Py for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Sep 2016 13:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgElc-0000Gf-NV for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgElW-0006S7-T4 for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:30:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgElW-0006Rw-Qf for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bgElW-0005cG-Mj for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Sep 2016 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24091 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 24091-submit@debbugs.gnu.org id=B24091.147292378721539 (code B ref 24091); Sat, 03 Sep 2016 17:30:02 +0000 Original-Received: (at 24091) by debbugs.gnu.org; 3 Sep 2016 17:29:47 +0000 Original-Received: from localhost ([127.0.0.1]:48871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgElG-0005bL-Q5 for submit@debbugs.gnu.org; Sat, 03 Sep 2016 13:29:46 -0400 Original-Received: from mail-oi0-f46.google.com ([209.85.218.46]:34150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgElF-0005b6-7B for 24091@debbugs.gnu.org; Sat, 03 Sep 2016 13:29:45 -0400 Original-Received: by mail-oi0-f46.google.com with SMTP id m11so75309487oif.1 for <24091@debbugs.gnu.org>; Sat, 03 Sep 2016 10:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=t42L75qyz6Av/tWckDBKfgeG2Lm66VB/24p89/Ig1wQ=; b=URhKjmcrK82z3I6BCVsTL+9xQzyc4H+Ci0E+SpjST0+Iy8A6TI2hEU7HAuNa6PjKeN ioJJM6OYpN+HQZbFKqy5rnSEsWibNok88vzOrwGvUaEUMiZSak3Nus2TxjXnrQagcKrF bOwnD/hi6PWjGbMIVhiuu75aNnINEX/hPtwCC8k0dt80Fn/Ohwao3UX5L8ib4T8S5z26 cGGpQv5k4VsJjJ9hu+j/m1ie+mPD3ZGQOAQqv24d0yUSC27Z3SnORqUB93UBS6xsQnZL O//+Y6PxuiAwHU5Hg4Ra48XvrqjbOpg2azeOpw2VVYDxNaq3H+9u6WItmep6H4FVI6vv 4p0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=t42L75qyz6Av/tWckDBKfgeG2Lm66VB/24p89/Ig1wQ=; b=g3P9rK6X79hXR188aKGcIbAwVlzwFDWPOPqU+OYMG8WgDfvrCHqj2uXEU5PSvxNbO4 StmEK4QS8Sgu29CbKSVMjblvshk2GY3pLUITwYEnzoeEg0/sLvoEpJyoJlcXI8LWPRBx VxvGkwODOL/OODwYWg3niGQFC3d0i7yzECMIEnHCEP76E1Hs1KyxfEbfPnyyysUNWMyy SoidJfbWcjnlZnernXIAndH0T2VQ9eOqIHRDafsv26SXOaTHkYfwTqlzmj8xUChhLfdB XnucsqYJEVQSnVWJLWszkp+zDXBto697JG6+a+JWV8Xmqm1BZYcTnYZV8Q/dv5feynEI /K/w== X-Gm-Message-State: AE9vXwOarFtqLWEksUcUsLjyoeYgz7oqODzAEFQy1UkYTPizcyM1D2j1G+gGnnG4fW7/stYIFuVdcPtd2xkYWw== X-Received: by 10.202.81.77 with SMTP id f74mr2165959oib.40.1472923779519; Sat, 03 Sep 2016 10:29:39 -0700 (PDT) Original-Received: by 10.157.7.195 with HTTP; Sat, 3 Sep 2016 10:29:39 -0700 (PDT) In-Reply-To: <83inv1fnf9.fsf@gnu.org> X-Google-Sender-Auth: mlAz8qkrIoVuLWAL3-59MJtxDR4 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:122890 Archived-At: On Mon, Aug 15, 2016 at 10:38 PM, Eli Zaretskii wrote: >> From: npostavs@users.sourceforge.net >> Cc: 24091@debbugs.gnu.org, acairncross@gmail.com, clement.pit@gmail.com >> Date: Sat, 13 Aug 2016 19:57:54 -0400 >> >> >> > The question is: what happens if you bypass that loop and let Emacs >> >> > proceed with startup? Does it successfully finish the startup, or >> >> > does it error out or crash later on? >> >> >> >> Works fine, no crashes. >> >> >> >> > >> >> > If the former, we need to find a way to detect this special situation, >> >> > and maybe bypass the loop altogether. >> >> >> >> Hmm, not really sure where to start. >> > >> > I'd start by finding out why FRAME_ICONIFIED_P returns false. >> >> Well, it seems that's because Emacs never receives an UnmapNotify event. >> But that doesn't feel like I'm getting any closer to a solution... > > What events does Emacs get in that case? Emacs is getting PropertyNotify, ConfigureNotify, MapNotify, and ReparentNotify events.