From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58634: Long delay with blank screen whilst loading desktop at emacs startup Date: Wed, 19 Oct 2022 18:49:23 +0300 Message-ID: <83edv3zud8.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24729"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58634@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 17:51:36 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olBLx-000651-BZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 17:51:33 +0200 Original-Received: from localhost ([::1]:51894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olBLu-0006oR-E6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 11:51:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olBKc-0006m7-8N for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:50:12 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olBKU-0007e1-9m for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:50:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olBKU-0001Gn-5f for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:50: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: Wed, 19 Oct 2022 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58634 X-GNU-PR-Package: emacs Original-Received: via spool by 58634-submit@debbugs.gnu.org id=B58634.16661945794846 (code B ref 58634); Wed, 19 Oct 2022 15:50:02 +0000 Original-Received: (at 58634) by debbugs.gnu.org; 19 Oct 2022 15:49:39 +0000 Original-Received: from localhost ([127.0.0.1]:59800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olBK6-0001G6-Om for submit@debbugs.gnu.org; Wed, 19 Oct 2022 11:49:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olBK2-0001Fr-NT for 58634@debbugs.gnu.org; Wed, 19 Oct 2022 11:49:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olBJx-0007an-EE; Wed, 19 Oct 2022 11:49:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=OuSdnnwxOCVeuBWOXyz45UvIEnh1gxczMzNrXnsbQb4=; b=CAEOnB4Sc+eN MSG3ApzzkSxk4cLsc+J1OTtpQoQqkNHb8piT44xg4GvS8D/AmsZPjsSOxK5Zdk7jbZzVgp0mQMlKs iVlaLxQSoG5zlJd3yLl4YycjXXYh0HGtZtr8orKGdTdUS8dWvgQMalj6m9HEsQusdXnBI4v9BlCu9 yfc4FdUEzyDGrNZAOCaCp+kMpAeJdZKkeMimCXDjI3Gil3kuvGFB8zG9RnuMazjdMKrY6bwTOt3M2 0JlKv7ci1aXmWuzuDBaoe91B/RiUCP1M+oWKy6yeABXQ4nhaVfxy2mgHFCgsnCtDOLlkuWCDL2v/C /TAUp3+O4TEeI6DElrMwMg==; Original-Received: from [87.69.77.57] (port=3015 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olBJw-0002n3-P7; Wed, 19 Oct 2022 11:49:29 -0400 In-Reply-To: (message from Alan Mackenzie on Wed, 19 Oct 2022 13:28:42 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245879 Archived-At: > Date: Wed, 19 Oct 2022 13:28:42 +0000 > From: Alan Mackenzie > > In my current desktop file, I have 166 buffers. I'm using an up to date > Emacs 29. > > On loading this desktop into emacs -nw on X Windows, or into a linux > console, it takes a long time to load, around 28 seconds. Of that time, > my terminal window/screen is entirely blank for around 18 seconds, with > not even a mode line being displayed. And nothing in the echo-area, either? > Doing the same in a GUI run on X also takes around 28 seconds to load, > but during that time, random buffers are displayed on the screen, > complete with mode line. > > I think the native compiler is running in the background during this 28 > seconds, and thus contributes to the relatively long start up time. To test this hypothesis, leave Emacs alone running until list-processes shows an empty list, then restart Emacs. This time, you should not see the delay due to native compilation, so if there still is a delay, it is unlikely to be due to native compilation. In any case, you should be able to see whether it's native compilation by watching the emacs --batch processes that run on your system during that time. In general, even if the native compilation is running at startup, it should not delay the startup (barring some bug), because Emacs loads the *.elc files when *.eln are unavailable, without waiting for the compilation to complete. > This ~18 seconds of blank screen is likely to be disconcerting to some > users, and thus surely should be reckoned as a bug. So please help us understand what causes this, so we could fix it. Thanks.