From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Need help debugging Emacs: emacsclient will not draw its contents sometimes Date: Tue, 08 Sep 2015 20:18:26 +0300 Message-ID: <83fv2o7rtp.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441732735 7831 80.91.229.3 (8 Sep 2015 17:18:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 17:18:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jon Dufresne Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 08 19:18:45 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZMXc-0006di-UM for ged-emacs-devel@m.gmane.org; Tue, 08 Sep 2015 19:18:45 +0200 Original-Received: from localhost ([::1]:35965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMXX-0002q4-Pi for ged-emacs-devel@m.gmane.org; Tue, 08 Sep 2015 13:18:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMXD-0002pU-WD for emacs-devel@gnu.org; Tue, 08 Sep 2015 13:18:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZMX9-0003zs-1D for emacs-devel@gnu.org; Tue, 08 Sep 2015 13:18:19 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:41001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZMX8-0003zj-Pe for emacs-devel@gnu.org; Tue, 08 Sep 2015 13:18:14 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NUD00200BZCJO00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Tue, 08 Sep 2015 20:18:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUD002O2C2CAL90@a-mtaout20.012.net.il>; Tue, 08 Sep 2015 20:18:13 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189725 Archived-At: > Date: Tue, 8 Sep 2015 06:00:25 -0700 > From: Jon Dufresne > > I run Emacs using the Emacs daemon. I regularly connect to the daemon > with emacsclient. Frequently, the client is started from an external > program, such as during a mercurial commit. _Sometimes the emacsclient > frame will not draw its contents_, leaving Emacs in a useless state. > This only occurs after the Emacs daemon has been running for hours and > has already successfully started many emacsclients. When this occurs, > my window manager shows that the program is running and has drawn an > outline of where Emacs should be, but there are no contents. After the > first occurrence, all new emacsclients will suffer the same fate and > will not draw their contents. To Emacs return to a useful state, I > restart the Emacs daemon. This means I lose the open buffers of my > currently running Emacs. > > Unfortunately, as I can't reliably reproduce this on demand, it is > difficult and time consuming to tests different versions of init.el. > > Emacs version: > GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.16.2) of > 2015-04-22 on buildhw-10.phx2.fedoraproject.org > > I have attached a debugger to the running Emacs after this has > occurred. I see the following backtrace below. The backtrace shows that Emacs is idle, waiting for input, which is normal. Try typing "finish" repeatedly to step out of the functions shown in the backtrace, until some of them doesn't return. Then tell here which one didn't.