From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24091: 24.5; High CPU usage at startup while hidden Date: Tue, 16 Aug 2016 05:38:34 +0300 Message-ID: <83inv1fnf9.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1471315167 7048 195.159.176.226 (16 Aug 2016 02:39:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2016 02:39:27 +0000 (UTC) Cc: acairncross@gmail.com, clement.pit@gmail.com, 24091@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 16 04:39:22 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 1bZUHi-0001eB-7w for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Aug 2016 04:39:22 +0200 Original-Received: from localhost ([::1]:39719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZUHe-0004On-QV for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2016 22:39:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZUHS-0004MG-Vy for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 22:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZUHO-0002SA-QZ for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 22:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZUHO-0002S5-Ma for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 22:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bZUHO-000360-Eu for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 22:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2016 02:39: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.147131513111879 (code B ref 24091); Tue, 16 Aug 2016 02:39:02 +0000 Original-Received: (at 24091) by debbugs.gnu.org; 16 Aug 2016 02:38:51 +0000 Original-Received: from localhost ([127.0.0.1]:58680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZUHD-00035X-36 for submit@debbugs.gnu.org; Mon, 15 Aug 2016 22:38:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZUH9-00035I-Te for 24091@debbugs.gnu.org; Mon, 15 Aug 2016 22:38:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZUH3-0002Ie-Tn for 24091@debbugs.gnu.org; Mon, 15 Aug 2016 22:38:42 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZUGy-0002ED-PA; Mon, 15 Aug 2016 22:38:36 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2242 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bZUGw-0007SK-PR; Mon, 15 Aug 2016 22:38:35 -0400 In-reply-to: <877fbkw7b1.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:122262 Archived-At: > 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?