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: Fri, 20 Jan 2017 23:54:23 -0500 Message-ID: <87ziilui68.fsf@users.sourceforge.net> References: <24533f31-9fc2-b38e-aaeb-561616cdf77f@gmail.com> <83inv1fnf9.fsf@gnu.org> <83zinodghv.fsf@gnu.org> <83y438de6m.fsf@gnu.org> <57CBCE4F.5040705@gmx.at> <57CC1E5F.8010107@gmx.at> <57CC4435.7040503@gmx.at> <838tv5au9g.fsf@gnu.org> <87shons1mf.fsf@gmail.com> <87a8auzait.fsf@users.sourceforge.net> <83pojqaxjc.fsf@gnu.org> <1293E48B-0D9B-481C-AE7B-111B356C06BD@raeburn.org> <8337gi9wx9.fsf@gnu.org> <87tw8xw1jz.fsf@users.sourceforge.net> 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 1484974477 26476 195.159.176.226 (21 Jan 2017 04:54:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2017 04:54:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: dominik.schrempf@gmail.com, acairncross@gmail.com, clement.pit@gmail.com, 24091@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 21 05:54:29 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 1cUngn-0004WN-UV for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jan 2017 05:54:10 +0100 Original-Received: from localhost ([::1]:58509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUngq-0005RX-UJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jan 2017 23:54:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUngl-0005Qv-8T for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2017 23:54:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUngg-0006Q9-DF for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2017 23:54:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38615) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUngg-0006Q5-9v for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2017 23:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cUngg-0007s4-2z for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2017 23:54:02 -0500 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, 21 Jan 2017 04:54: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 patch Original-Received: via spool by 24091-submit@debbugs.gnu.org id=B24091.148497440530209 (code B ref 24091); Sat, 21 Jan 2017 04:54:02 +0000 Original-Received: (at 24091) by debbugs.gnu.org; 21 Jan 2017 04:53:25 +0000 Original-Received: from localhost ([127.0.0.1]:36814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUng5-0007r6-Hq for submit@debbugs.gnu.org; Fri, 20 Jan 2017 23:53:25 -0500 Original-Received: from mail-io0-f196.google.com ([209.85.223.196]:34786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUng3-0007qo-Fp; Fri, 20 Jan 2017 23:53:23 -0500 Original-Received: by mail-io0-f196.google.com with SMTP id c80so10014437iod.1; Fri, 20 Jan 2017 20:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=fGx9ZgGDSFmWko6RC/84AbHb5U0tKuwtgeOx3uSBYCk=; b=tVZ1MUB4PRJDOLMa28oVjWejIP+nwK1yfMfQlfMFdhkm8RN009QMybG7JQqaRcU6kr UQVp8+zy/t4eTho5v96FHaKxlB/wQjru5VcomgfcmfVnZJj9r7ncami5SFXwI8vOfeq/ bbTok4XTU1wbjM70JwgJjKJbGa7LbZsUykNvRURRzsFaL2PnoHhyY9KbWT5l9TOMWbs2 RiofHQRwENe3glduBqN60b8farzY9cWa9r3Svou59v2BDjv3BgH7mlXgzQJPSCJ1+acF T/EeqFv6TG2UAj7pDcN0kMLuKAPDjrEEfblZBl/9XV+EfVfqjc7bK1XeFheYM/4S28nZ qpiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=fGx9ZgGDSFmWko6RC/84AbHb5U0tKuwtgeOx3uSBYCk=; b=YORGJ5tInALmXDl05TMQSM+/43GC0brf7uoc+b8JvfVjS4HU0bASeKu/jr6Mfq6tqe rQYNQBcl6+D5/yFOmdHQ+lnaZQ7U3U6XHXCp/JjRF9mogXqRcIbXO9FROw1m7I7U1sKG KDC/2GpUcu9Hk71uYQq8AcWKCXJIREhgzwjf/NKPHYy4tnDcwqLPhBkVWSpqxRG6TErr jLw9FU5HEk2KrCIE44/PnCIbirJNeknq/PrRh26inj+hukbOJmo8+ab27LWuu4co6su4 1VytuIoRydwjO3oEJJ8sJ1N57uYTRherK/W9sX33BLtt0Z9vjIiX5demZWwP7BLWgiEq 7H0A== X-Gm-Message-State: AIkVDXIpfK/yaXor15GcW6G/REaBmbBDGd6NMWp23Iq2yT0r7I+V7nPU0FemTPhetAB0pw== X-Received: by 10.107.31.71 with SMTP id f68mr15705675iof.236.1484974397680; Fri, 20 Jan 2017 20:53:17 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f187sm2577214ita.7.2017.01.20.20.53.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jan 2017 20:53:16 -0800 (PST) In-Reply-To: (Ken Raeburn's message of "Fri, 20 Jan 2017 00:16:24 -0500") 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:128286 Archived-At: merge 24091 17237 tags 24091 fixed close 24091 26.1 quit Ken Raeburn writes: > On Jan 17, 2017, at 21:21, npostavs@users.sourceforge.net wrote: >>=20 >> Do we know about any operations that require the frame be visible? What >> happens when they're run with an invisible frame? Error? Corrupted >> display? Hang? > > If drawing is done to an unmapped window, the X server can discard the > data, but once the window is made visible, we should get an Expose > event which would cause us to repaint the window. The size and > position of the window could be set by the window manager, and > dropping the loop may mean we get to run a little more code than we > used to before we get notified of the changes. But these are things > we have to deal with anyway, not just at window creation. If we=E2=80=99= re > doing it right, AFAIK, we should be okay=E2=80=A6. Okay, pushed to master [1: 6a788d2], let's see if we're doing it right. PS Dominik I merged #17237 into this one since it appears to be the same problem which should be fixed by this patch, please report back if it's not. 1: 2017-01-20 23:36:26 -0500 6a788d2fc18c23dcfc5d0352649b2f690e9cbff7 Don't wait for frame to become visible