From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#24091: 24.5; High CPU usage at startup while hidden Date: Sat, 13 Aug 2016 19:57:54 -0400 Message-ID: <877fbkw7b1.fsf@users.sourceforge.net> References: <24533f31-9fc2-b38e-aaeb-561616cdf77f@gmail.com> <87shut9pyk.fsf@users.sourceforge.net> <83lh0lq9n5.fsf@gnu.org> <83oa5fp1zb.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1471132699 32167 195.159.176.226 (13 Aug 2016 23:58:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2016 23:58:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: acairncross@gmail.com, clement.pit@gmail.com, 24091@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 14 01:58:15 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 1bYioh-0008A7-B0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Aug 2016 01:58:15 +0200 Original-Received: from localhost ([::1]:58960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYioe-0001IL-4z for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 19:58:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYioY-0001Gi-Au for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 19:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYioU-0000XJ-7U for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 19:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYioU-0000XF-3q for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 19:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bYioT-00044S-M0 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 19:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2016 23:58:01 +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.147113267515637 (code B ref 24091); Sat, 13 Aug 2016 23:58:01 +0000 Original-Received: (at 24091) by debbugs.gnu.org; 13 Aug 2016 23:57:55 +0000 Original-Received: from localhost ([127.0.0.1]:56636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYioM-000448-SR for submit@debbugs.gnu.org; Sat, 13 Aug 2016 19:57:55 -0400 Original-Received: from mail-it0-f43.google.com ([209.85.214.43]:37242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYioL-00043v-04 for 24091@debbugs.gnu.org; Sat, 13 Aug 2016 19:57:54 -0400 Original-Received: by mail-it0-f43.google.com with SMTP id f6so17429119ith.0 for <24091@debbugs.gnu.org>; Sat, 13 Aug 2016 16:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yTpFDjkuK5ZlcaquBGVk8ULp2LPS1eeSGtOXZPPCbBc=; b=OZOX99SFtog1AMuZkBUnybf5w4zEw8xOyk86HWOLTIFcVGGA7TWXK3Vt8QyUqFlLx5 pDvbSY1fKGkfOVLDZtJahw0G8jCbwj6AFqocqvi7hIyo79ui3eBlME5XA7rJc5dnvTH7 6cT85j+nMwFED2ZoBs7FzcLOKlEXaAWbciIh8Jikl++qWvCfMihJOCsrJN3kht9gaYwQ o0anbGM9Hjx5J+x6NQkkzm10Vgd3kjXqXYHu/Jqv3BvYBuAq9GiI6HaXTsoTk6xaXH0r eDq/EGRSWihYBPWRJ1+fFTq4owd0wfDyNEqtPoq9KdoOhzp6hawBQnx9d/GGofb4Zq7E QKMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=yTpFDjkuK5ZlcaquBGVk8ULp2LPS1eeSGtOXZPPCbBc=; b=c4xEqgjBbB8tzxwYhd0skhBK+JYGubnHqodB8aTrF8eC+JYo/XQxX6subtLfEO54u1 4qmLzgRFCwOAZ4IC+m0LWPgBz/WuTh99++h0hkxg7nMy1V35YKIdZ4f5xVN2capQaejX 2+w8VHyHp1g49yLntn9uYu1QUPnesTZE6paV9Pww3JdTYAq8QARh4/dQ8dpGMBjGpTr8 pmX8PlYp7sOtcMaOsMKoi5OBniXX3/zCXw/WXCbb5+QzrfXOqrZEC4M1e4lMDI9xYmPd prYKXQS59lDK5wZEteUI2jPMINzl15kJ25N1ZxcT5oaIgrP3K5s2TN3jFkU9lmMqhC4G dQEQ== X-Gm-Message-State: AEkoouuO8xecdHcHA2Krq1OQivSSF+hNjb+PJCSX3zKf4OtalfLVdqDQnjc3flv/t+4gqw== X-Received: by 10.36.252.193 with SMTP id b184mr6684835ith.4.1471132667205; Sat, 13 Aug 2016 16:57:47 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id v7sm4145223ita.9.2016.08.13.16.57.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 13 Aug 2016 16:57:46 -0700 (PDT) In-Reply-To: <83oa5fp1zb.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 30 Jul 2016 18:41:44 +0300") 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:122183 Archived-At: Eli Zaretskii writes: >> From: Noam Postavsky >> Date: Sat, 30 Jul 2016 09:54:55 -0400 >> Cc: acairncross@gmail.com, clement.pit@gmail.com, 24091@debbugs.gnu.org >> >> >> But it seems that FRAME_ICONIFIED_P is returning false, because I see >> >> that tries is never incremented. >> > >> > 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...